public class ElementItem extends Item
Constructor and Description |
---|
ElementItem(ElementPattern element,
NameClassItem nameItem) |
Modifier and Type | Method and Description |
---|---|
boolean |
allowEmpty()
The element does not allow the empty match.
|
boolean |
allowsElement(QName name)
Returns true if the element is allowed somewhere in the item.
|
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
|
NameClassItem |
getNameClassItem() |
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)
Returns the first set, the set of element names possible.
|
void |
setChildrenItem(Item item) |
Item |
startElement(QName name)
Returns the next item on the match.
|
java.lang.String |
toString() |
java.lang.String |
toSyntaxDescription(int depth)
Returns the pretty printed syntax.
|
addSyntaxNewline, allowAttribute, attributeEnd, attributeSet, emptyItemIterator, endElement, error, groupContinuation, inElementContinuation, interleaveContinuation, itemIterator, setAttribute, text
protected static final L10N L
public ElementItem(ElementPattern element, NameClassItem nameItem)
public NameClassItem getNameClassItem()
public void setChildrenItem(Item item)
public void firstSet(java.util.HashSet<QName> set)
public void requiredFirstSet(java.util.HashSet<QName> set)
requiredFirstSet
in class Item
public boolean allowEmpty()
allowEmpty
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 elementRelaxException
public boolean allowsElement(QName name)
allowsElement
in class Item
name
- the name of the elementpublic 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