Class XMLSecNamespaceImpl
- java.lang.Object
-
- org.apache.xml.security.stax.impl.stax.XMLSecEventBaseImpl
-
- org.apache.xml.security.stax.impl.stax.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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.xml.security.stax.impl.stax.XMLSecEventBaseImpl
XMLSecEventBaseImpl.LocationImpl
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Stringprefixprivate javax.xml.namespace.QNameqNameprivate java.lang.Stringuriprivate static java.util.Map<java.lang.String,java.util.Map<java.lang.String,XMLSecNamespace>>XMLSEC_NS_MAP-
Fields inherited from class org.apache.xml.security.stax.impl.stax.XMLSecEventBaseImpl
parentXMLSecStartELement
-
-
Constructor Summary
Constructors Modifier Constructor Description privateXMLSecNamespaceImpl(java.lang.String prefix, java.lang.String uri)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(XMLSecNamespace o)booleanequals(java.lang.Object obj)java.lang.StringgetDTDType()intgetEventType()static XMLSecNamespacegetInstance(java.lang.String prefix, java.lang.String uri)javax.xml.namespace.QNamegetName()java.lang.StringgetNamespaceURI()java.lang.StringgetPrefix()java.lang.StringgetValue()inthashCode()booleanisDefaultNamespaceDeclaration()booleanisNamespace()booleanisSpecified()java.lang.StringtoString()voidwriteAsEncodedUnicode(java.io.Writer writer)private voidwriteEncoded(java.io.Writer writer, java.lang.String text)-
Methods inherited from class org.apache.xml.security.stax.impl.stax.XMLSecEventBaseImpl
asCharacters, asEndElement, asStartElement, getDocumentLevel, getElementPath, getElementPath, getEmptyIterator, getLocation, getParentXMLSecStartElement, getSchemaType, getStartElementAtLevel, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isProcessingInstruction, isStartDocument, isStartElement, setParentXMLSecStartElement
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface javax.xml.stream.events.XMLEvent
getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isProcessingInstruction, isStartDocument, isStartElement
-
Methods inherited from interface org.apache.xml.security.stax.ext.stax.XMLSecEvent
asCharacters, asEndElement, asStartElement, getDocumentLevel, getElementPath, getElementPath, getParentXMLSecStartElement, getStartElementAtLevel, setParentXMLSecStartElement
-
-
-
-
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
-
-
Method Detail
-
getInstance
public static XMLSecNamespace getInstance(java.lang.String prefix, java.lang.String uri)
-
compareTo
public int compareTo(XMLSecNamespace o)
- Specified by:
compareToin interfacejava.lang.Comparable<XMLSecNamespace>
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
getName
public javax.xml.namespace.QName getName()
- Specified by:
getNamein interfacejavax.xml.stream.events.Attribute
-
getValue
public java.lang.String getValue()
- Specified by:
getValuein interfacejavax.xml.stream.events.Attribute
-
getDTDType
public java.lang.String getDTDType()
- Specified by:
getDTDTypein interfacejavax.xml.stream.events.Attribute
-
isSpecified
public boolean isSpecified()
- Specified by:
isSpecifiedin interfacejavax.xml.stream.events.Attribute
-
getNamespaceURI
public java.lang.String getNamespaceURI()
- Specified by:
getNamespaceURIin interfacejavax.xml.stream.events.Namespace
-
getPrefix
public java.lang.String getPrefix()
- Specified by:
getPrefixin interfacejavax.xml.stream.events.Namespace
-
isDefaultNamespaceDeclaration
public boolean isDefaultNamespaceDeclaration()
- Specified by:
isDefaultNamespaceDeclarationin interfacejavax.xml.stream.events.Namespace
-
getEventType
public int getEventType()
- Specified by:
getEventTypein interfacejavax.xml.stream.events.XMLEvent
-
isNamespace
public boolean isNamespace()
- Specified by:
isNamespacein interfacejavax.xml.stream.events.XMLEvent- Overrides:
isNamespacein classXMLSecEventBaseImpl
-
writeAsEncodedUnicode
public void writeAsEncodedUnicode(java.io.Writer writer) throws javax.xml.stream.XMLStreamException- Specified by:
writeAsEncodedUnicodein interfacejavax.xml.stream.events.XMLEvent- Overrides:
writeAsEncodedUnicodein classXMLSecEventBaseImpl- 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:
toStringin classjava.lang.Object
-
-