|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.codehaus.cargo.module.webapp.WebXmlVersion
public final class WebXmlVersion
Enumerated type that represents the version of the web deployment descriptor.
| Field Summary | |
|---|---|
static WebXmlVersion |
V2_2
Instance for version 2.2. |
static WebXmlVersion |
V2_3
Instance for version 2.3. |
static WebXmlVersion |
V2_4
Instance for version 2.4. |
static WebXmlVersion |
V2_5
Instance for version 2.5. |
| Method Summary | |
|---|---|
int |
compareTo(java.lang.Object other)
|
org.jdom.Namespace |
getNamespace()
Return the namespace of this web xml file, or null if none. |
java.lang.String |
getPublicId()
Returns the public ID of the document type corresponding to the descriptor version. |
java.lang.String |
getSystemId()
Returns the system ID of the document type corresponding to the descriptor version. |
java.lang.String |
getVersion()
Returns the tag name. |
java.lang.String |
toString()
|
static WebXmlVersion |
valueOf(org.jdom.DocType theDocType)
Returns the version corresponding to the given document type. |
static WebXmlVersion |
valueOf(org.jdom.Element rootElement)
Returns the version corresponding to the given element. |
static WebXmlVersion |
valueOf(java.lang.String thePublicId)
Returns the version corresponding to the given public ID. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final WebXmlVersion V2_2
public static final WebXmlVersion V2_3
public static final WebXmlVersion V2_4
public static final WebXmlVersion V2_5
| Method Detail |
|---|
public int compareTo(java.lang.Object other)
compareTo in interface java.lang.ComparableComparable.compareTo(T)public java.lang.String getVersion()
public java.lang.String getPublicId()
public java.lang.String getSystemId()
public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()
public static WebXmlVersion valueOf(org.jdom.DocType theDocType)
throws java.lang.NullPointerException
theDocType - The document type
null if the doctype is
not recognized
java.lang.NullPointerException - If the document type is nullpublic static WebXmlVersion valueOf(org.jdom.Element rootElement)
rootElement - The element
public static WebXmlVersion valueOf(java.lang.String thePublicId)
thePublicId - The public ID
null if the ID is not
recognizedpublic org.jdom.Namespace getNamespace()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||