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.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(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.
|
String |
toString() |
static WebXmlVersion |
valueOf(DocumentType theDocType)
Returns the version corresponding to the given document type.
|
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 int compareTo(Object other)
compareTo
in interface Comparable
Comparable.compareTo(T)
public String getVersion()
public String getPublicId()
public String getSystemId()
public String toString()
toString
in class Object
Object.toString()
public static WebXmlVersion valueOf(DocumentType theDocType) throws NullPointerException
theDocType
- The document typenull
if the doctype is
not recognizedNullPointerException
- If the document type is null
public static WebXmlVersion valueOf(String thePublicId)
thePublicId
- The public IDnull
if the ID is not
recognizedCopyright © 2004-2013 Codehaus. All Rights Reserved.