public class InElementItem extends Item
a { b . c, d } e| Modifier and Type | Method and Description |
|---|---|
boolean |
allowAttribute(QName name,
java.lang.String value)
Sets an attribute.
|
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 true if the element is allowed to end here.
|
void |
attributeSet(java.util.HashSet<QName> set)
Returns the first set, the set of attribute names possible.
|
static InElementItem |
create(Item eltItem,
Item contItem) |
Item |
endElement()
Returns the next item when the element is completes.
|
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.
|
Item |
getContinuationItem() |
Item |
getElementItem() |
Item |
getFirst() |
java.util.Iterator<Item> |
getItemsIterator()
Return all possible child items or null
|
Item |
getSecond() |
Item |
groupContinuation(Item cont)
Adds a continuation
|
int |
hashCode()
Returns the hash code for the empty item.
|
Item |
inElementContinuation(Item cont)
Adds a continuation
|
Item |
interleaveContinuation(Item cont)
Interleaves a continuation.
|
boolean |
isSimpleSyntax()
Returns true if the syntax description is simple
|
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 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.
|
addSyntaxNewline, emptyItemIterator, error, itemIteratorprotected static final L10N L
public static InElementItem create(Item eltItem, Item contItem)
public Item getFirst()
public Item getSecond()
public Item getElementItem()
public Item getContinuationItem()
public Item interleaveContinuation(Item cont)
interleaveContinuation in class Itempublic Item inElementContinuation(Item cont)
inElementContinuation in class Itempublic Item groupContinuation(Item cont)
groupContinuation in class Itempublic void firstSet(java.util.HashSet<QName> set)
public void requiredFirstSet(java.util.HashSet<QName> set)
requiredFirstSet in class Itempublic boolean allowEmpty()
allowEmpty in class Itempublic java.util.Iterator<Item> getItemsIterator()
getItemsIterator in class Itempublic Item startElement(QName name) throws RelaxException
startElement in class Itemname - the name of the elementRelaxExceptionpublic Item text(java.lang.CharSequence string) throws RelaxException
text in class Itemstring - the text dataRelaxExceptionpublic void attributeSet(java.util.HashSet<QName> set)
attributeSet in class Itempublic boolean allowAttribute(QName name, java.lang.String value) throws RelaxException
allowAttribute in class Itemname - the name of the attributevalue - the value of the attributeRelaxExceptionpublic Item setAttribute(QName name, java.lang.String value) throws RelaxException
setAttribute in class Itemname - the name of the attributevalue - the value of the attributeRelaxExceptionpublic Item attributeEnd()
attributeEnd in class Itempublic Item endElement() throws RelaxException
endElement in class ItemRelaxExceptionpublic boolean allowsElement(QName name)
allowsElement in class Itemname - the name of the elementpublic java.lang.String toSyntaxDescription(int depth)
toSyntaxDescription in class Itempublic boolean isSimpleSyntax()
isSimpleSyntax in class Itempublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object