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, setParentpublic java.lang.String getTagName()
getTagName 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