|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sun.msv.grammar.NameClass
validator of (namespaceURI,localPart) pair. This is equivalent to RELAX NG's "name class".
Field Summary | |
static String |
LOCALNAME_WILDCARD
|
static String |
NAMESPACE_WILDCARD
wildcard should be accepted by any name class. |
Constructor Summary | |
NameClass()
|
Method Summary | |
boolean |
accepts(StringPair name)
|
abstract boolean |
accepts(String namespaceURI,
String localName)
checks if this name class accepts given namespace:localName pair. |
boolean |
includes(NameClass rhs)
Returns true if this name class is a superset of another name class. |
static NameClass |
intersection(NameClass lhs,
NameClass rhs)
Computes the intersection of two name classes. |
boolean |
isNull()
Returns true if this name class doesn't accept anything. |
NameClass |
simplify()
Computes the equivalent but simple name class. |
static NameClass |
union(NameClass lhs,
NameClass rhs)
Computes the union of two name classes. |
abstract Object |
visit(NameClassVisitor visitor)
visitor pattern support |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String LOCALNAME_WILDCARD
public static final String NAMESPACE_WILDCARD
Constructor Detail |
public NameClass()
Method Detail |
public final boolean accepts(StringPair name)
public abstract boolean accepts(String namespaceURI, String localName)
namespaceURI
- namespace URI to be tested. If this value equals to
NAMESPACE_WILDCARD, implementation must assume that
valid namespace is specified. this twist will be used for
error diagnosis.localName
- local part to be tested. As with namespaceURI, LOCALNAME_WILDCARD
will acts as a wild card.
public final boolean includes(NameClass rhs)
public static NameClass intersection(NameClass lhs, NameClass rhs)
public boolean isNull()
public NameClass simplify()
public static NameClass union(NameClass lhs, NameClass rhs)
public abstract Object visit(NameClassVisitor visitor)
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |