com.caucho.relaxng.program
Class TextItem

java.lang.Object
  extended by com.caucho.relaxng.program.Item
      extended by com.caucho.relaxng.program.TextItem

public class TextItem
extends Item

Generates programs from patterns.


Field Summary
protected static L10N L
           
static TextItem TEXT
           
 
Fields inherited from class com.caucho.relaxng.program.Item
log
 
Method Summary
 boolean allowEmpty()
          Text allows the empty match.
 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.
 int hashCode()
          Returns the hash code for the empty item.
 boolean isSimpleSyntax()
          True for simple syntax.
 Item text(java.lang.CharSequence text)
          Text repeats
 java.lang.String toString()
           
 java.lang.String toSyntaxDescription(int depth)
          Returns the pretty printed syntax.
 
Methods inherited from class com.caucho.relaxng.program.Item
addSyntaxNewline, allowAttribute, allowsElement, attributeEnd, attributeSet, emptyItemIterator, endElement, error, getItemsIterator, groupContinuation, inElementContinuation, interleaveContinuation, itemIterator, requiredFirstSet, setAttribute, startElement
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

L

protected static final L10N L

TEXT

public static final TextItem TEXT
Method Detail

firstSet

public void firstSet(java.util.HashSet<QName> set)
Returns the first set, the set of element names possible.

Overrides:
firstSet in class Item

allowEmpty

public boolean allowEmpty()
Text allows the empty match.

Overrides:
allowEmpty in class Item

text

public Item text(java.lang.CharSequence text)
Text repeats

Overrides:
text in class Item

toSyntaxDescription

public java.lang.String toSyntaxDescription(int depth)
Returns the pretty printed syntax.

Overrides:
toSyntaxDescription in class Item

isSimpleSyntax

public boolean isSimpleSyntax()
True for simple syntax.

Overrides:
isSimpleSyntax in class Item

hashCode

public int hashCode()
Returns the hash code for the empty item.

Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Returns true if the object is an empty item.

Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object