Class NamespaceNameClass

  • All Implemented Interfaces:
    java.io.Serializable

    public class NamespaceNameClass
    extends NameClass
    NameClass that matchs any names in a particular namespace.
    See Also:
    Serialized Form
    • Field Detail

      • namespaceURI

        public final java.lang.String namespaceURI
    • Constructor Detail

      • NamespaceNameClass

        public NamespaceNameClass​(java.lang.String namespaceURI)
    • Method Detail

      • accepts

        public boolean accepts​(java.lang.String namespaceURI,
                               java.lang.String localName)
        accepts a name if its namespace URI matches to the namespaceURI field.
        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.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object