public class AttributeItem extends Item
Constructor and Description |
---|
AttributeItem(NameClassItem name) |
Modifier and Type | Method and Description |
---|---|
boolean |
allowAttribute(QName name,
java.lang.String value)
Returns true if the attribute is allowed.
|
boolean |
allowEmpty()
The attribute does not allow the empty match.
|
Item |
attributeEnd()
Returns the item after the attribute ends.
|
void |
attributeSet(java.util.HashSet<QName> set)
Returns the attribute set, the set of attribute names possible.
|
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.
|
NameClassItem |
getNameClassItem() |
int |
hashCode()
Returns the hash code for the empty item.
|
protected boolean |
isSimpleSyntax()
Returns true for an element with simple syntax.
|
Item |
setAttribute(QName name,
java.lang.String value)
Returns the next item on the match.
|
java.lang.String |
toString() |
java.lang.String |
toSyntaxDescription(int depth)
Returns the pretty printed syntax.
|
addSyntaxNewline, allowsElement, emptyItemIterator, endElement, error, getItemsIterator, groupContinuation, inElementContinuation, interleaveContinuation, itemIterator, requiredFirstSet, startElement, text
protected static final L10N L
public AttributeItem(NameClassItem name)
public NameClassItem getNameClassItem()
public void firstSet(java.util.HashSet<QName> set)
public boolean allowEmpty()
allowEmpty
in class Item
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 attributeRelaxException
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 attributeRelaxException
public Item attributeEnd()
attributeEnd
in class Item
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