public class ElementPattern extends Pattern
| Constructor and Description |
|---|
ElementPattern(java.lang.String defName)
Creates a new element pattern.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addChild(Pattern child)
Adds an element.
|
void |
addNameChild(NameClassPattern child)
Adds an element.
|
Item |
createItem(GrammarPattern grammar)
Creates the item, i.e.
|
void |
endElement()
Ends the element.
|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getDefName()
Returns the definition name.
|
NameClassPattern |
getNameChild()
Adds an element.
|
java.lang.String |
getTagName()
Returns the Relax schema name.
|
boolean |
hasElement()
Returns true if it contains an element.
|
java.lang.String |
toProduction()
Returns a string for the production.
|
java.lang.String |
toString()
Debugging.
|
createNameItem, error, getElementName, getLocation, getParent, hasData, setElementName, setFilename, setLine, setParentpublic ElementPattern(java.lang.String defName)
public java.lang.String getTagName()
getTagName in class Patternpublic java.lang.String getDefName()
public boolean hasElement()
hasElement in class Patternpublic void addNameChild(NameClassPattern child) throws RelaxException
addNameChild in class PatternRelaxExceptionpublic NameClassPattern getNameChild() throws RelaxException
RelaxExceptionpublic void addChild(Pattern child) throws RelaxException
addChild in class PatternRelaxExceptionpublic void endElement()
throws RelaxException
endElement in class PatternRelaxExceptionpublic Item createItem(GrammarPattern grammar) throws RelaxException
createItem in class PatternRelaxExceptionpublic java.lang.String toProduction()
toProduction in class Patternpublic java.lang.String toString()
toString in class java.lang.Object