Class DifferenceNameClass

    • Constructor Detail

    • Method Detail

      • accepts

        public boolean accepts​(String namespaceURI,
                               String localPart)
        accepts a name if it is accepted by nc1 and not by nc2.
        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.
        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.