public final class EmptyItem extends Item
Constructor and Description |
---|
EmptyItem() |
Modifier and Type | Method and Description |
---|---|
boolean |
allowEmpty()
The empty item can produce empty.
|
static EmptyItem |
create()
Creates the empty item.
|
boolean |
equals(java.lang.Object o)
Returns true if the object is an empty item.
|
void |
firstSet(java.util.HashSet<QName> set)
Adds to the first set, the set of element names possible.
|
int |
hashCode()
Returns the hash code for the empty item.
|
boolean |
isSimpleSyntax()
True for simple syntax.
|
Item |
setAttribute(QName name,
java.lang.String value)
Sets an attribute.
|
java.lang.String |
toString() |
java.lang.String |
toSyntaxDescription(int depth)
Returns the pretty printed syntax.
|
addSyntaxNewline, allowAttribute, allowsElement, attributeEnd, attributeSet, emptyItemIterator, endElement, error, getItemsIterator, groupContinuation, inElementContinuation, interleaveContinuation, itemIterator, requiredFirstSet, startElement, text
protected static final L10N L
public static EmptyItem create()
public void firstSet(java.util.HashSet<QName> set)
public final boolean allowEmpty()
allowEmpty
in class Item
public Item setAttribute(QName name, java.lang.String value)
setAttribute
in class Item
name
- the name of the attributevalue
- the value of the attributepublic java.lang.String toSyntaxDescription(int depth)
toSyntaxDescription
in class Item
public 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