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, setParent
public ElementPattern(java.lang.String defName)
public java.lang.String getTagName()
getTagName
in class Pattern
public java.lang.String getDefName()
public boolean hasElement()
hasElement
in class Pattern
public void addNameChild(NameClassPattern child) throws RelaxException
addNameChild
in class Pattern
RelaxException
public NameClassPattern getNameChild() throws RelaxException
RelaxException
public void addChild(Pattern child) throws RelaxException
addChild
in class Pattern
RelaxException
public void endElement() throws RelaxException
endElement
in class Pattern
RelaxException
public Item createItem(GrammarPattern grammar) throws RelaxException
createItem
in class Pattern
RelaxException
public java.lang.String toProduction()
toProduction
in class Pattern
public java.lang.String toString()
toString
in class java.lang.Object