| java.lang.Object com.caucho.relaxng.program.Item
All known Subclasses: com.caucho.relaxng.program.ElementItem, com.caucho.relaxng.program.AttributeItem, com.caucho.relaxng.program.DataItem, com.caucho.relaxng.program.ChoiceItem, com.caucho.relaxng.program.TextItem, com.caucho.relaxng.program.GroupItem, com.caucho.relaxng.program.ZeroOrMoreItem, com.caucho.relaxng.program.MemoItem, com.caucho.relaxng.program.InElementItem, com.caucho.relaxng.program.InterleaveItem, com.caucho.relaxng.program.EmptyItem,
Item | abstract public class Item (Code) | | Generates programs from patterns.
|
Field Summary | |
final protected static L10N | L | final protected static Logger | log |
L | final protected static L10N L(Code) | | |
addSyntaxNewline | protected void addSyntaxNewline(CharBuffer cb, int depth)(Code) | | Adds a syntax newline.
|
allowAttribute | public boolean allowAttribute(QName name, String value) throws RelaxException(Code) | | Sets an attribute.
Parameters: name - the name of the attribute Parameters: value - the value of the attribute the program for handling the element |
allowEmpty | public boolean allowEmpty()(Code) | | Returns true if the item can match empty.
|
allowsElement | public boolean allowsElement(QName name)(Code) | | Returns true if the element is allowed somewhere in the item.
allowsElement is used for error messages to give more information
in cases of order dependency.
Parameters: name - the name of the element true if the element is allowed somewhere |
attributeEnd | public Item attributeEnd()(Code) | | Returns true if the item can match empty.
|
attributeSet | public void attributeSet(HashSet<QName> set)(Code) | | Adds to the first set, the set of attribute names possible.
|
firstSet | public void firstSet(HashSet<QName> set)(Code) | | Adds to the first set the set of element names possible.
|
getItemsIterator | public Iterator<Item> getItemsIterator()(Code) | | Return all possible child items
|
groupContinuation | public Item groupContinuation(Item cont)(Code) | | Appends a group to a continuation.
|
inElementContinuation | public Item inElementContinuation(Item cont)(Code) | | Interleaves a continuation.
|
interleaveContinuation | public Item interleaveContinuation(Item cont)(Code) | | Interleaves a continuation.
|
isSimpleSyntax | protected boolean isSimpleSyntax()(Code) | | Returns true for an element with simple syntax.
|
requiredFirstSet | public void requiredFirstSet(HashSet<QName> set)(Code) | | Adds to the first set the set of element names required.
|
setAttribute | public Item setAttribute(QName name, String value) throws RelaxException(Code) | | Sets an attribute.
Parameters: name - the name of the attribute Parameters: value - the value of the attribute the program for handling the element |
startElement | public Item startElement(QName name) throws RelaxException(Code) | | Returns the next item when an element of the given name is returned
Parameters: name - the name of the element the program for handling the element |
toSyntaxDescription | public String toSyntaxDescription(int depth)(Code) | | Returns the pretty printed syntax.
|
|
|