Class ChoiceNameClass

    • Constructor Detail

      • ChoiceNameClass

        public ChoiceNameClass​(NameClass nameClass1,
                               NameClass nameClass2)
    • Method Detail

      • contains

        public boolean contains​(javax.xml.namespace.QName name)
        Description copied from class: NameClass
        Returns true if the given QName is a valid name for this QName.
        Specified by:
        contains in class NameClass
      • containsSpecificity

        public int containsSpecificity​(javax.xml.namespace.QName name)
        Specified by:
        containsSpecificity in class NameClass
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • isOpen

        public boolean isOpen()
        Description copied from class: NameClass
        Returns true if the name class accepts infinite number of QNames.

        Intuitively, this method returns true if the name class is some sort of wildcard.

        Specified by:
        isOpen in class NameClass