|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.codehaus.cargo.module.ejb.EjbJarXmlVersion
public final class EjbJarXmlVersion
Enumerated type that represents the version of the deployment descriptor of a ejb descriptor (ejb-jar.xml).
Field Summary | |
---|---|
static EjbJarXmlVersion |
V2_0
Instance for version 2.0. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final EjbJarXmlVersion V2_0
Method Detail |
---|
public int compareTo(Object other)
compareTo
in interface Comparable
Comparable.compareTo(T)
public boolean equals(Object other)
equals
in class Object
Object.toString()
public int hashCode()
hashCode
in class Object
Object.hashCode()
public String getVersion()
public String getPublicId()
public String getSystemId()
public String toString()
toString
in class Object
Object.toString()
public static EjbJarXmlVersion valueOf(DocumentType docType) throws NullPointerException
docType
- The document type
null
if the doctype is
not recognized
NullPointerException
- If the document type is null
public static EjbJarXmlVersion valueOf(String publicId)
publicId
- The public ID
null
if the ID is not
recognized
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |