public final class ApplicationXmlVersion extends Object implements Comparable
| Modifier and Type | Field and Description |
|---|---|
static ApplicationXmlVersion |
V1_2
Instance for version 1.2.
|
static ApplicationXmlVersion |
V1_3
Instance for version 1.3.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Object other) |
boolean |
equals(Object theOther) |
String |
getPublicId()
Returns the public ID of the document type corresponding to the descriptor version.
|
String |
getSystemId()
Returns the system ID of the document type corresponding to the descriptor version.
|
String |
getVersion()
Returns the tag name.
|
int |
hashCode() |
String |
toString() |
static ApplicationXmlVersion |
valueOf(DocumentType theDocType)
Returns the version corresponding to the given document type.
|
static ApplicationXmlVersion |
valueOf(String thePublicId)
Returns the version corresponding to the given public ID.
|
public static final ApplicationXmlVersion V1_2
public static final ApplicationXmlVersion V1_3
public int compareTo(Object other)
compareTo in interface ComparableComparable.compareTo(T)public boolean equals(Object theOther)
equals in class ObjectObject.toString()public int hashCode()
hashCode in class ObjectObject.hashCode()public String getVersion()
public String getPublicId()
public String getSystemId()
public String toString()
toString in class ObjectObject.toString()public static ApplicationXmlVersion valueOf(DocumentType theDocType) throws NullPointerException
theDocType - The document typenull if the doctype is
not recognizedNullPointerException - If the document type is nullpublic static ApplicationXmlVersion valueOf(String thePublicId)
thePublicId - The public IDnull if the ID is not
recognizedCopyright © 2004-2013 Codehaus. All Rights Reserved.