public enum XmlVersionDeclaration extends java.lang.Enum<XmlVersionDeclaration> implements DocBookCompareDisplayable
Enum Constant and Description |
---|
SYSTEM
Use the 'B' document's xml version (as provided by the parser).
|
XML_1_0
Ensure the xml version is set to '1.0'.
|
XML_1_1
Ensure the xml version is set to '1.1'.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDisplayDescription()
Returns the user friendly String description of the XmlVersionDeclaration.
|
java.lang.String |
getDisplayName()
Returns the user friendly String name of the XmlVersionDeclaration.
|
static XmlVersionDeclaration |
getXmlVersionDeclaration(java.lang.String value)
Returns a XmlVersionDeclaration object from the supplied String value if appropriate.
|
static XmlVersionDeclaration |
parseValue(java.lang.String value)
Returns a XmlVersionDeclaration object from the supplied String value if appropriate.
|
java.lang.String |
toString()
Returns a String representation of XmlVersionDeclaration.
|
static XmlVersionDeclaration |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static XmlVersionDeclaration[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final XmlVersionDeclaration XML_1_0
public static final XmlVersionDeclaration XML_1_1
public static final XmlVersionDeclaration SYSTEM
public static XmlVersionDeclaration[] values()
for (XmlVersionDeclaration c : XmlVersionDeclaration.values()) System.out.println(c);
public static XmlVersionDeclaration valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String getDisplayName()
Returns the user friendly String name of the XmlVersionDeclaration.
getDisplayName
in interface DocBookCompareDisplayable
public java.lang.String getDisplayDescription()
Returns the user friendly String description of the XmlVersionDeclaration.
getDisplayDescription
in interface DocBookCompareDisplayable
public java.lang.String toString()
Returns a String representation of XmlVersionDeclaration.
toString
in class java.lang.Enum<XmlVersionDeclaration>
public static XmlVersionDeclaration getXmlVersionDeclaration(java.lang.String value)
Returns a XmlVersionDeclaration object from the supplied String value if appropriate.
This method should not be used under normal circumstances, enum instance values should be used instead.
value
- a String representation of a XmlVersionDeclaration valuepublic static XmlVersionDeclaration parseValue(java.lang.String value) throws java.lang.IllegalArgumentException
Returns a XmlVersionDeclaration object from the supplied String value if appropriate.
This method should not be used under normal circumstances, enum instance values should be used instead.
value
- a String representation of a XmlVersionDeclaration valuejava.lang.IllegalArgumentException
- Whenever the provided string does not represent one of this enum'e enumerated values.Copyright (c) 2010-2016 DeltaXML Ltd. All Rights Reserved.