BEA WebLogic Server 9.0 API Reference
weblogic.apache.xerces.impl.dtd
Class XMLDTDDescription
java.lang.Object
weblogic.apache.xerces.util.XMLResourceIdentifierImpl
weblogic.apache.xerces.impl.dtd.XMLDTDDescription
- All Implemented Interfaces:
- XMLGrammarDescription, XMLResourceIdentifier
- public class XMLDTDDescription
- extends XMLResourceIdentifierImpl
- implements XMLGrammarDescription
Methods inherited from class weblogic.apache.xerces.util.XMLResourceIdentifierImpl |
clear, getBaseSystemId, getExpandedSystemId, getLiteralSystemId, getPublicId, setBaseSystemId, setExpandedSystemId, setLiteralSystemId, setPublicId, setValues, toString |
fPossibleRoots
protected Vector fPossibleRoots
fRootName
protected String fRootName
XMLDTDDescription
public XMLDTDDescription(String publicId,
String literalId,
String baseId,
String expandedId,
String rootName)
XMLDTDDescription
public XMLDTDDescription(XMLInputSource source)
XMLDTDDescription
public XMLDTDDescription(XMLResourceIdentifier id,
String rootName)
equals
public boolean equals(Object desc)
- Compares this grammar with the given grammar. Currently, we compare
as follows:
- if grammar type not equal return false immediately
- try and find a common root name:
- if both have roots, use them
- else if one has a root, examine other's possible root's for a match;
- else try all combinations
- test fExpandedSystemId and fPublicId as above
- Parameters:
desc
- The description of the grammar to be compared with
- Returns:
- True if they are equal, else false
getGrammarType
public String getGrammarType()
- Specified by:
getGrammarType
in interface XMLGrammarDescription
getRootName
public String getRootName()
hashCode
public int hashCode()
- Returns the hash code of this grammar
Because our .equals method is so complex, we just return a very
simple hash that might avoid calls to the equals method a bit...
- Overrides:
hashCode
in class XMLResourceIdentifierImpl
- Returns:
- The hash code
setPossibleRoots
public void setPossibleRoots(Vector possibleRoots)
setRootName
public void setRootName(String rootName)