public final class EjbJarXmlVersion extends Object implements Comparable
| Modifier and Type | Field and Description |
|---|---|
static EjbJarXmlVersion |
V2_0
Instance for version 2.0.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Object other) |
boolean |
equals(Object other) |
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 EjbJarXmlVersion |
valueOf(DocumentType docType)
Returns the version corresponding to the given document type.
|
static EjbJarXmlVersion |
valueOf(String publicId)
Returns the version corresponding to the given public ID.
|
public static final EjbJarXmlVersion V2_0
public int compareTo(Object other)
compareTo in interface ComparableComparable.compareTo(T)public boolean equals(Object other)
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 EjbJarXmlVersion valueOf(DocumentType docType) throws NullPointerException
docType - The document typenull if the doctype is
not recognizedNullPointerException - If the document type is nullpublic static EjbJarXmlVersion valueOf(String publicId)
publicId - The public IDnull if the ID is not
recognizedCopyright © 2004-2013 Codehaus. All Rights Reserved.