Package com.sun.msv.grammar
Class SimpleNameClass
java.lang.Object
com.sun.msv.grammar.NameClass
com.sun.msv.grammar.SimpleNameClass
- All Implemented Interfaces:
Serializable
a NameClass that accepts only one fixed name.
- See Also:
-
Field Summary
FieldsFields inherited from class com.sun.msv.grammar.NameClass
ALL, LOCALNAME_WILDCARD, NAMESPACE_WILDCARD, NONE
-
Constructor Summary
ConstructorsConstructorDescriptionSimpleNameClass
(StringPair name) SimpleNameClass
(String namespaceURI, String localName) -
Method Summary
Modifier and TypeMethodDescriptionboolean
checks if this name class accepts given namespace:localName pair.toString()
visit
(NameClassVisitor visitor) visitor pattern support
-
Field Details
-
namespaceURI
-
localName
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
-
Constructor Details
-
SimpleNameClass
-
SimpleNameClass
-
-
Method Details
-
accepts
Description copied from class:NameClass
checks if this name class accepts given namespace:localName pair.- Specified by:
accepts
in classNameClass
- Parameters:
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.- Returns:
- true if the pair is accepted, false otherwise.
-
visit
Description copied from class:NameClass
visitor pattern support -
toStringPair
-
toString
-