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
-
-
Field Summary
-
Fields inherited from class org.apache.xml.security.stax.impl.stax.XMLSecEventBaseImpl
parentXMLSecStartELement
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(XMLSecNamespace o)
boolean
equals(java.lang.Object obj)
java.lang.String
getDTDType()
int
getEventType()
static XMLSecNamespace
getInstance(java.lang.String prefix, java.lang.String uri)
javax.xml.namespace.QName
getName()
java.lang.String
getNamespaceURI()
java.lang.String
getPrefix()
java.lang.String
getValue()
int
hashCode()
boolean
isDefaultNamespaceDeclaration()
boolean
isNamespace()
boolean
isSpecified()
java.lang.String
toString()
void
writeAsEncodedUnicode(java.io.Writer writer)
-
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
-
-
-
-
Method Detail
-
getInstance
public static XMLSecNamespace getInstance(java.lang.String prefix, java.lang.String uri)
-
compareTo
public int compareTo(XMLSecNamespace o)
- Specified by:
compareTo
in interfacejava.lang.Comparable<XMLSecNamespace>
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
getName
public javax.xml.namespace.QName getName()
- Specified by:
getName
in interfacejavax.xml.stream.events.Attribute
-
getValue
public java.lang.String getValue()
- Specified by:
getValue
in interfacejavax.xml.stream.events.Attribute
-
getDTDType
public java.lang.String getDTDType()
- Specified by:
getDTDType
in interfacejavax.xml.stream.events.Attribute
-
isSpecified
public boolean isSpecified()
- Specified by:
isSpecified
in interfacejavax.xml.stream.events.Attribute
-
getNamespaceURI
public java.lang.String getNamespaceURI()
- Specified by:
getNamespaceURI
in interfacejavax.xml.stream.events.Namespace
-
getPrefix
public java.lang.String getPrefix()
- Specified by:
getPrefix
in interfacejavax.xml.stream.events.Namespace
-
isDefaultNamespaceDeclaration
public boolean isDefaultNamespaceDeclaration()
- Specified by:
isDefaultNamespaceDeclaration
in interfacejavax.xml.stream.events.Namespace
-
getEventType
public int getEventType()
- Specified by:
getEventType
in interfacejavax.xml.stream.events.XMLEvent
-
isNamespace
public boolean isNamespace()
- Specified by:
isNamespace
in interfacejavax.xml.stream.events.XMLEvent
- Overrides:
isNamespace
in classXMLSecEventBaseImpl
-
writeAsEncodedUnicode
public void writeAsEncodedUnicode(java.io.Writer writer) throws javax.xml.stream.XMLStreamException
- Specified by:
writeAsEncodedUnicode
in interfacejavax.xml.stream.events.XMLEvent
- Overrides:
writeAsEncodedUnicode
in classXMLSecEventBaseImpl
- Throws:
javax.xml.stream.XMLStreamException
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-