Class SimpleNameClass

    • Field Detail

      • namespaceURI

        public final String namespaceURI
      • localName

        public final String localName
    • Constructor Detail

      • SimpleNameClass

        public SimpleNameClass​(StringPair name)
      • SimpleNameClass

        public SimpleNameClass​(String namespaceURI,
                               String localName)
    • Method Detail

      • accepts

        public boolean accepts​(String namespaceURI,
                               String localName)
        Description copied from class: NameClass
        checks if this name class accepts given namespace:localName pair.
        Specified by:
        accepts in class NameClass
        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.