Package com.sun.msv.grammar
Class ChoiceNameClass
java.lang.Object
com.sun.msv.grammar.NameClass
com.sun.msv.grammar.ChoiceNameClass
- All Implemented Interfaces:
Serializable
Union of two NameClasses.
- Author:
- Kohsuke KAWAGUCHI
- See Also:
-
Field Summary
FieldsFields inherited from class com.sun.msv.grammar.NameClass
ALL, LOCALNAME_WILDCARD, NAMESPACE_WILDCARD, NONE
-
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
nc1
-
nc2
-
-
Constructor Details
-
ChoiceNameClass
-
-
Method Details
-
accepts
accepts a name if it is accepted by nc1 or nc2.- 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.localPart
- 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 -
toString
-