Package com.sun.tools.rngom.nc
Class SimpleNameClass
java.lang.Object
com.sun.tools.rngom.nc.NameClass
com.sun.tools.rngom.nc.SimpleNameClass
- All Implemented Interfaces:
ParsedNameClass
,Serializable
- See Also:
-
Field Summary
-
Constructor Summary
ConstructorDescriptionSimpleNameClass
(String nsUri, String localPart) SimpleNameClass
(String nsUri, String localPart, String prefix) SimpleNameClass
(QName name) -
Method Summary
Modifier and TypeMethodDescription<V> V
accept
(NameClassVisitor<V> visitor) Visitor pattern support.boolean
Returns true if the givenQName
is a valid name for this QName.int
containsSpecificity
(QName name) boolean
int
hashCode()
boolean
isOpen()
Returns true if the name class accepts infinite number ofQName
s.Methods inherited from class com.sun.tools.rngom.nc.NameClass
hasOverlapWith, listNames
-
Field Details
-
name
-
-
Constructor Details
-
SimpleNameClass
-
SimpleNameClass
-
SimpleNameClass
-
-
Method Details
-
contains
Description copied from class:NameClass
Returns true if the givenQName
is a valid name for this QName. -
containsSpecificity
- Specified by:
containsSpecificity
in classNameClass
-
hashCode
public int hashCode() -
equals
-
accept
Description copied from class:NameClass
Visitor pattern support. -
isOpen
public boolean isOpen()Description copied from class:NameClass
Returns true if the name class accepts infinite number ofQName
s.Intuitively, this method returns true if the name class is some sort of wildcard.
-