Class XMLSecNamespaceImpl

  • All Implemented Interfaces:
    java.lang.Comparable<XMLSecNamespace>, javax.xml.stream.events.Attribute, javax.xml.stream.events.Namespace, javax.xml.stream.events.XMLEvent, javax.xml.stream.XMLStreamConstants, XMLSecEvent, XMLSecNamespace

    public class XMLSecNamespaceImpl
    extends XMLSecEventBaseImpl
    implements XMLSecNamespace
    Class to let XML-Namespaces be comparable how it is requested by C14N
    • Field Detail

      • XMLSEC_NS_MAP

        private static final java.util.Map<java.lang.String,​java.util.Map<java.lang.String,​XMLSecNamespace>> XMLSEC_NS_MAP
      • prefix

        private java.lang.String prefix
      • uri

        private final java.lang.String uri
      • qName

        private javax.xml.namespace.QName qName
    • Constructor Detail

      • XMLSecNamespaceImpl

        private XMLSecNamespaceImpl​(java.lang.String prefix,
                                    java.lang.String uri)
    • Method Detail

      • getInstance

        public static XMLSecNamespace getInstance​(java.lang.String prefix,
                                                  java.lang.String uri)
      • equals

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

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

        public javax.xml.namespace.QName getName()
        Specified by:
        getName in interface javax.xml.stream.events.Attribute
      • getValue

        public java.lang.String getValue()
        Specified by:
        getValue in interface javax.xml.stream.events.Attribute
      • getDTDType

        public java.lang.String getDTDType()
        Specified by:
        getDTDType in interface javax.xml.stream.events.Attribute
      • isSpecified

        public boolean isSpecified()
        Specified by:
        isSpecified in interface javax.xml.stream.events.Attribute
      • getNamespaceURI

        public java.lang.String getNamespaceURI()
        Specified by:
        getNamespaceURI in interface javax.xml.stream.events.Namespace
      • getPrefix

        public java.lang.String getPrefix()
        Specified by:
        getPrefix in interface javax.xml.stream.events.Namespace
      • isDefaultNamespaceDeclaration

        public boolean isDefaultNamespaceDeclaration()
        Specified by:
        isDefaultNamespaceDeclaration in interface javax.xml.stream.events.Namespace
      • getEventType

        public int getEventType()
        Specified by:
        getEventType in interface javax.xml.stream.events.XMLEvent
      • isNamespace

        public boolean isNamespace()
        Specified by:
        isNamespace in interface javax.xml.stream.events.XMLEvent
        Overrides:
        isNamespace in class XMLSecEventBaseImpl
      • writeAsEncodedUnicode

        public void writeAsEncodedUnicode​(java.io.Writer writer)
                                   throws javax.xml.stream.XMLStreamException
        Specified by:
        writeAsEncodedUnicode in interface javax.xml.stream.events.XMLEvent
        Overrides:
        writeAsEncodedUnicode in class XMLSecEventBaseImpl
        Throws:
        javax.xml.stream.XMLStreamException
      • writeEncoded

        private void writeEncoded​(java.io.Writer writer,
                                  java.lang.String text)
                           throws java.io.IOException
        Throws:
        java.io.IOException
      • toString

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