public class AttributePattern extends Pattern
Constructor and Description |
---|
AttributePattern()
Creates a new attribute pattern.
|
Modifier and Type | Method and Description |
---|---|
void |
addChild(Pattern child)
Adds an attribute.
|
void |
addNameChild(NameClassPattern child)
Adds an element.
|
Item |
createItem(GrammarPattern grammar)
Creates the program (somewhat bogus)
|
void |
endElement()
Ends the element.
|
boolean |
equals(java.lang.Object o) |
NameClassPattern |
getNameChild()
get the name child
|
java.lang.String |
getTagName()
Returns the Relax schema name.
|
java.lang.String |
toProduction()
Returns a string for the production.
|
java.lang.String |
toString()
Debugging.
|
createNameItem, error, getElementName, getLocation, getParent, hasData, hasElement, setElementName, setFilename, setLine, setParent
public java.lang.String getTagName()
getTagName
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