com.caucho.relaxng.program
Class NameClassItem

java.lang.Object
  extended by com.caucho.relaxng.program.NameClassItem
Direct Known Subclasses:
AnyNameItem, ChoiceNameItem, NameItem, NsNameItem

public abstract class NameClassItem
extends java.lang.Object

Matches names.


Field Summary
protected static L10N L
           
protected static java.util.logging.Logger log
           
 
Constructor Summary
NameClassItem()
           
 
Method Summary
protected  RelaxException error(java.lang.String msg)
          Throws an error.
 void firstSet(java.util.HashSet<QName> set)
          Adds to the first set, the set of element names possible.
abstract  boolean matches(QName name)
          Returns true if the name matches.
abstract  java.lang.String toSyntaxDescription(java.lang.String prefix)
          Returns the pretty printed syntax.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

L

protected static final L10N L

log

protected static final java.util.logging.Logger log
Constructor Detail

NameClassItem

public NameClassItem()
Method Detail

firstSet

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


matches

public abstract boolean matches(QName name)
Returns true if the name matches.


toSyntaxDescription

public abstract java.lang.String toSyntaxDescription(java.lang.String prefix)
Returns the pretty printed syntax.


error

protected RelaxException error(java.lang.String msg)
Throws an error.