| Method from org.apache.cactus.integration.ant.deployment.application.ApplicationXmlVersion Detail: |
public int compareTo(Object theOther) {
if (theOther == this)
{
return 0;
}
ApplicationXmlVersion otherVersion = (ApplicationXmlVersion) theOther;
if (otherVersion == V1_3)
{
return -1;
}
return 1;
}
|
public boolean equals(Object theOther) {
return super.equals(theOther);
}
|
public String getPublicId() {
return publicId;
}
Returns the public ID of the document type corresponding to the
descriptor version. |
public String getSystemId() {
return systemId;
}
Returns the system ID of the document type corresponding to the
descriptor version. |
public String getVersion() {
return this.version;
}
|
public int hashCode() {
return super.hashCode();
}
|
public String toString() {
return getVersion();
}
|
public static ApplicationXmlVersion valueOf(DocumentType theDocType) throws NullPointerException {
return valueOf(theDocType.getPublicId());
}
Returns the version corresponding to the given document type. |
public static ApplicationXmlVersion valueOf(String thePublicId) {
if (V1_2.getPublicId().equals(thePublicId))
{
return ApplicationXmlVersion.V1_2;
}
else if (V1_3.getPublicId().equals(thePublicId))
{
return ApplicationXmlVersion.V1_3;
}
return null;
}
Returns the version corresponding to the given public ID. |