org.apache.xerces.impl.dtd
Class XMLDTDDescription
- org.apache.xerces.xni.grammars.XMLDTDDescription, org.apache.xerces.xni.XMLResourceIdentifier
public class XMLDTDDescription
implements org.apache.xerces.xni.grammars.XMLDTDDescription
boolean | equals(Object desc) - Compares this grammar with the given grammar.
|
String | getGrammarType()
|
String | getRootName()
|
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...
|
void | setPossibleRoots(Vector possibleRoots)
|
void | setRootName(String rootName)
|
clear , getBaseSystemId , getExpandedSystemId , getLiteralSystemId , getNamespace , getPublicId , hashCode , setBaseSystemId , setExpandedSystemId , setLiteralSystemId , setNamespace , setPublicId , setValues , 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(org.apache.xerces.xni.XMLResourceIdentifier id,
String rootName)
XMLDTDDescription
public XMLDTDDescription(org.apache.xerces.xni.parser.XMLInputSource source)
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
desc
- The description of the grammar to be compared with
- True if they are equal, else false
getGrammarType
public String getGrammarType()
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...
- hashCode in interface XMLResourceIdentifierImpl
- The hash code
setPossibleRoots
public void setPossibleRoots(Vector possibleRoots)
setRootName
public void setRootName(String rootName)
Copyright B) 1999-2004 Apache XML Project. All Rights Reserved.