|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.relaxng.program.Item
com.caucho.relaxng.program.ChoiceItem
public class ChoiceItem
Generates programs from patterns.
| Field Summary | |
|---|---|
protected static L10N |
L
|
| Fields inherited from class com.caucho.relaxng.program.Item |
|---|
log |
| Constructor Summary | |
|---|---|
ChoiceItem()
|
|
| Method Summary | |
|---|---|
void |
addItem(Item item)
|
boolean |
allowAttribute(QName name,
java.lang.String value)
Returns true if the attribute is allowed. |
boolean |
allowEmpty()
Allows empty if any item allows empty. |
boolean |
allowsElement(QName name)
Returns true if the element is allowed somewhere in the item. |
Item |
attributeEnd()
Returns true if the item can match empty. |
void |
attributeSet(java.util.HashSet<QName> set)
Returns the first set, the set of attribute names possible. |
static Item |
create(Item left,
Item right)
|
Item |
endElement()
Returns the next item when the element closes |
boolean |
equals(java.lang.Object o)
Returns true if the object is an empty item. |
void |
firstSet(java.util.HashSet<QName> set)
Returns the first set, the set of element names possible. |
java.util.Iterator<Item> |
getItemsIterator()
Return all possible child items or null |
Item |
getMin()
|
Item |
groupContinuation(Item cont)
Adds a group continuation. |
int |
hashCode()
Returns the hash code for the empty item. |
Item |
inElementContinuation(Item cont)
Adds an inElement continuation. |
Item |
interleaveContinuation(Item cont)
Interleaves a continuation. |
protected boolean |
isSimpleSyntax()
Returns true for an element with simple syntax. |
void |
requiredFirstSet(java.util.HashSet<QName> set)
Returns the first set, the set of element names possible. |
Item |
setAttribute(QName name,
java.lang.String value)
Sets an attribute. |
Item |
startElement(QName name)
Returns the next item on the match. |
Item |
text(java.lang.CharSequence data)
Returns the next item on the match. |
java.lang.String |
toString()
|
java.lang.String |
toSyntaxDescription(int depth)
Returns the pretty printed syntax. |
| Methods inherited from class com.caucho.relaxng.program.Item |
|---|
addSyntaxNewline, emptyItemIterator, error, itemIterator |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected static final L10N L
| Constructor Detail |
|---|
public ChoiceItem()
| Method Detail |
|---|
public static Item create(Item left,
Item right)
public void addItem(Item item)
public Item getMin()
public void firstSet(java.util.HashSet<QName> set)
firstSet in class Itempublic void requiredFirstSet(java.util.HashSet<QName> set)
requiredFirstSet in class Itempublic boolean allowEmpty()
allowEmpty in class Itempublic Item interleaveContinuation(Item cont)
interleaveContinuation in class Itempublic Item inElementContinuation(Item cont)
inElementContinuation in class Itempublic Item groupContinuation(Item cont)
groupContinuation in class Itempublic java.util.Iterator<Item> getItemsIterator()
getItemsIterator in class Item
public Item startElement(QName name)
throws RelaxException
startElement in class Itemname - the name of the element
RelaxExceptionpublic void attributeSet(java.util.HashSet<QName> set)
attributeSet in class Item
public boolean allowAttribute(QName name,
java.lang.String value)
throws RelaxException
allowAttribute in class Itemname - the name of the attributevalue - the value of the attribute
RelaxException
public Item setAttribute(QName name,
java.lang.String value)
throws RelaxException
setAttribute in class Itemname - the name of the attributevalue - the value of the attribute
RelaxExceptionpublic Item attributeEnd()
attributeEnd in class Item
public Item text(java.lang.CharSequence data)
throws RelaxException
text in class ItemRelaxException
public Item endElement()
throws RelaxException
endElement in class ItemRelaxExceptionpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic boolean allowsElement(QName name)
allowsElement in class Itemname - the name of the element
public java.lang.String toSyntaxDescription(int depth)
toSyntaxDescription in class Itemprotected boolean isSimpleSyntax()
isSimpleSyntax in class Itempublic 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 | |||||||||