| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: True if they are equal, else falseThe description of the grammar to be compared with desc)Overrides java. |
| public String | getGrammarType()
Implements org. |
| public String | Returns: the root name of this DTD or null if root name is unknownImplements org. |
| public int | Returns: The hash codeOverrides org. |
| public void | |
| public void | |
| public void |
| fPossibleRoots | back to summary |
|---|---|
| protected ArrayList<E> fPossibleRoots | |
| fRootName | back to summary |
|---|---|
| protected String fRootName | |
| XMLDTDDescription | back to summary |
|---|---|
| public XMLDTDDescription(XMLResourceIdentifier id, String rootName) | |
| XMLDTDDescription | back to summary |
|---|---|
| public XMLDTDDescription(String publicId, String literalId, String baseId, String expandedId, String rootName) | |
| XMLDTDDescription | back to summary |
|---|---|
| public XMLDTDDescription(XMLInputSource source) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object desc) Overrides java. 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
| |
| getGrammarType | back to summary |
|---|---|
| public String getGrammarType() Implements org. Doc from org. Return the type of this grammar.
| |
| getRootName | back to summary |
|---|---|
| public String getRootName() Implements org. Doc from org. Return the root name of this DTD.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides org. 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...
| |
| setPossibleRoots | back to summary |
|---|---|
| public void setPossibleRoots(ArrayList<E> possibleRoots) Set possible roots | |
| setPossibleRoots | back to summary |
|---|---|
| public void setPossibleRoots(Vector<E> possibleRoots) Set possible roots | |
| setRootName | back to summary |
|---|---|
| public void setRootName(String rootName) Set the root name | |