|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<XMLVersion> org.jopendocument.dom.XMLVersion
public enum XMLVersion
Encapsulate all namespaces for a particular version of xml.
Enum Constant Summary | |
---|---|
OD
|
|
OOo
|
Field Summary | |
---|---|
static org.jdom.Namespace |
DIALOG_NS
|
static org.jdom.Namespace |
LIBRARY_NS
|
Method Summary | |
---|---|
org.jdom.Namespace[] |
getALL()
|
static XMLVersion |
getDefault()
|
org.jdom.Namespace |
getLibrariesNS()
|
org.jdom.Namespace |
getManifest()
|
org.jdom.Namespace |
getMETA()
|
String |
getName()
|
org.jdom.Namespace |
getNS(String prefix)
|
static XMLVersion |
getOD()
Namespaces for OpenDocument/OpenOffice.org 2.x. |
org.jdom.Namespace |
getOFFICE()
|
static XMLVersion |
getOOo()
Namespaces for OpenOffice.org 1.x. |
static XMLVersion |
getParent(org.jdom.Namespace ns)
Find the NS to which belongs the passed namespace. |
org.jdom.Namespace |
getSTYLE()
|
org.jdom.Namespace |
getTABLE()
|
org.jdom.Namespace |
getTEXT()
|
static XMLVersion |
getVersion(org.jdom.Document doc)
|
static XMLVersion |
getVersion(org.jdom.Element elem)
Infer the version of an XML element from its namespace. |
protected void |
put(String prefix,
String uri)
|
protected void |
putMandatory(String office,
String style,
String text,
String table)
|
static XMLVersion |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static XMLVersion[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final XMLVersion OOo
public static final XMLVersion OD
Field Detail |
---|
public static final org.jdom.Namespace LIBRARY_NS
public static final org.jdom.Namespace DIALOG_NS
Method Detail |
---|
public static XMLVersion[] values()
for (XMLVersion c : XMLVersion.values()) System.out.println(c);
public static XMLVersion valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullprotected final void putMandatory(String office, String style, String text, String table)
protected final void put(String prefix, String uri)
public final org.jdom.Namespace getNS(String prefix)
public final String getName()
public final org.jdom.Namespace getManifest()
public org.jdom.Namespace getOFFICE()
public org.jdom.Namespace getSTYLE()
public org.jdom.Namespace getTEXT()
public org.jdom.Namespace getTABLE()
public org.jdom.Namespace getMETA()
public org.jdom.Namespace[] getALL()
public org.jdom.Namespace getLibrariesNS()
public static final XMLVersion getOOo()
public static final XMLVersion getOD()
public static final XMLVersion getParent(org.jdom.Namespace ns)
ns
- the namespace, eg office=http://openoffice.org/2000/office.
null
if none is found.public static final XMLVersion getVersion(org.jdom.Document doc)
public static final XMLVersion getVersion(org.jdom.Element elem)
elem
- the element to be tested, eg <text:line-break/>.
IllegalArgumentException
- if the namespace is unknown.public static XMLVersion getDefault()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |