public final class WebXmlVersion extends Object implements Comparable
| Modifier and Type | Field and Description |
|---|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Object other) |
org.jdom.Namespace |
getNamespace()
Return the namespace of this web xml file, or null if none.
|
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.
|
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(String thePublicId)
Returns the version corresponding to the given public ID.
|
public static final WebXmlVersion V2_2
public static final WebXmlVersion V2_3
public static final WebXmlVersion V2_4
public static final WebXmlVersion V2_5
public int compareTo(Object other)
compareTo in interface ComparableComparable.compareTo(T)public String getVersion()
public String getPublicId()
public String getSystemId()
public String toString()
toString in class ObjectObject.toString()public static WebXmlVersion valueOf(org.jdom.DocType theDocType) throws NullPointerException
theDocType - The document typenull if the doctype is
not recognizedNullPointerException - If the document type is nullpublic static WebXmlVersion valueOf(org.jdom.Element rootElement)
rootElement - The elementpublic static WebXmlVersion valueOf(String thePublicId)
thePublicId - The public IDnull if the ID is not
recognizedpublic org.jdom.Namespace getNamespace()
Copyright © 2004-2013 Codehaus. All Rights Reserved.