|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.relaxng.pattern.Pattern
com.caucho.relaxng.pattern.ChoicePattern
public class ChoicePattern
Relax element pattern
| Field Summary |
|---|
| Fields inherited from class com.caucho.relaxng.pattern.Pattern |
|---|
L |
| Constructor Summary | |
|---|---|
ChoicePattern()
Creates a new choice pattern. |
|
| Method Summary | |
|---|---|
void |
addChild(Pattern child)
Adds an element. |
Item |
createItem(GrammarPattern grammar)
Creates the production item. |
boolean |
equals(java.lang.Object o)
|
Pattern |
getChild(int i)
Returns the n-th child. |
int |
getSize()
Returns the number of children. |
java.lang.String |
getTagName()
Returns the Relax schema name. |
boolean |
hasData()
Returns true if it contains a data element. |
boolean |
hasElement()
Returns true if it contains a data element. |
boolean |
hasEmpty()
|
java.lang.String |
toProduction()
Returns a string for the production. |
java.lang.String |
toString()
Debugging. |
| Methods inherited from class com.caucho.relaxng.pattern.Pattern |
|---|
addNameChild, createNameItem, endElement, error, getElementName, getLocation, getParent, setElementName, setFilename, setLine, setParent |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ChoicePattern()
| Method Detail |
|---|
public int getSize()
public Pattern getChild(int i)
public boolean hasEmpty()
public boolean hasData()
hasData in class Patternpublic boolean hasElement()
hasElement in class Pattern
public void addChild(Pattern child)
throws RelaxException
addChild in class PatternRelaxExceptionpublic java.lang.String getTagName()
getTagName in class Pattern
public Item createItem(GrammarPattern grammar)
throws RelaxException
createItem in class PatternRelaxExceptionpublic java.lang.String toProduction()
toProduction in class Patternpublic boolean equals(java.lang.Object o)
equals in class Patternpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||