| java.lang.Object org.kohsuke.rngom.nc.NameClass
All known Subclasses: org.kohsuke.rngom.nc.NullNameClass, org.kohsuke.rngom.nc.NsNameExceptNameClass, org.kohsuke.rngom.nc.ChoiceNameClass, org.kohsuke.rngom.nc.NsNameClass, org.kohsuke.rngom.nc.SimpleNameClass, org.kohsuke.rngom.nc.AnyNameExceptNameClass, org.kohsuke.rngom.nc.AnyNameClass,
ANY | final public static NameClass ANY(Code) | | Sigleton instance that represents "anyName".
|
NULL | final public static NameClass NULL(Code) | | Sigleton instance that accepts no name.
This instance is useful when doing boolean arithmetic over
name classes (such as computing an inverse of a given name class, etc),
even though it can never appear in a RELAX NG surface syntax.
Internally, this instance is also used for:
- Used to recover from errors during parsing.
- Mark element patterns with <notAllowed/> content model.
|
SPECIFICITY_ANY_NAME | final static int SPECIFICITY_ANY_NAME(Code) | | |
SPECIFICITY_NAME | final static int SPECIFICITY_NAME(Code) | | |
SPECIFICITY_NONE | final static int SPECIFICITY_NONE(Code) | | |
SPECIFICITY_NS_NAME | final static int SPECIFICITY_NS_NAME(Code) | | |
contains | abstract public boolean contains(QName name)(Code) | | Returns true if the given
QName is a valid name
for this QName.
|
containsSpecificity | abstract public int containsSpecificity(QName name)(Code) | | |
hasOverlapWith | final public boolean hasOverlapWith(NameClass nc2)(Code) | | Returns true if the intersection between this name class
and the specified name class is non-empty.
|
isOpen | abstract public boolean isOpen()(Code) | | Returns true if the name class accepts infinite number of
QName s.
Intuitively, this method returns true if the name class is
some sort of wildcard.
|
listNames | public Set<QName> listNames()(Code) | | If the name class is closed (IOW !
NameClass.isOpen() ),
return the set of names in this name class. Otherwise the behavior
is undefined.
|
|
|