|
||||||||||
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.GroupItem
public class GroupItem
Generates programs from patterns.
Field Summary | |
---|---|
protected static L10N |
L
|
Fields inherited from class com.caucho.relaxng.program.Item |
---|
log |
Method Summary | |
---|---|
boolean |
allowAttribute(QName name,
java.lang.String value)
Returns true if the attribute is allowed. |
boolean |
allowEmpty()
Allows empty if both allow empty. |
boolean |
allowsElement(QName name)
Returns true if the element is allowed somewhere in the item. |
Item |
attributeEnd()
Returns the next item after the attributes end. |
void |
attributeSet(java.util.HashSet<QName> set)
Returns the attribute set, the set of attribute names possible. |
static Item |
create(Item first,
Item second)
|
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 |
int |
hashCode()
Returns the hash code for the empty item. |
protected boolean |
isSimpleSyntax()
Returns true for an element with simple syntax. |
void |
requiredFirstSet(java.util.HashSet<QName> set)
Adds to the first set the set of element names required. |
Item |
setAttribute(QName name,
java.lang.String value)
Sets an attribute. |
Item |
startElement(QName name)
Returns the next item when an element of the given name is returned |
Item |
text(java.lang.CharSequence string)
Returns the next item when some text data is available. |
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, endElement, error, groupContinuation, inElementContinuation, interleaveContinuation, itemIterator |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected static final L10N L
Method Detail |
---|
public static Item create(Item first, Item second)
public void firstSet(java.util.HashSet<QName> set)
firstSet
in class Item
public void requiredFirstSet(java.util.HashSet<QName> set)
requiredFirstSet
in class Item
public java.util.Iterator<Item> getItemsIterator()
getItemsIterator
in class Item
public Item startElement(QName name) throws RelaxException
startElement
in class Item
name
- the name of the elementcontItem
- the continuation item
RelaxException
public Item text(java.lang.CharSequence string) throws RelaxException
text
in class Item
string
- the text data
RelaxException
public 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 Item
name
- 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 Item
name
- the name of the attributevalue
- the value of the attribute
RelaxException
public Item attributeEnd()
attributeEnd
in class Item
public boolean allowEmpty()
allowEmpty
in class Item
public boolean allowsElement(QName name)
allowsElement
in class Item
name
- the name of the element
public java.lang.String toSyntaxDescription(int depth)
toSyntaxDescription
in class Item
protected boolean isSimpleSyntax()
isSimpleSyntax
in class Item
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public 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 |