Class XMLSecNamespaceImpl
java.lang.Object
org.apache.xml.security.stax.impl.stax.XMLSecEventBaseImpl
org.apache.xml.security.stax.impl.stax.XMLSecNamespaceImpl
- All Implemented Interfaces:
Comparable<XMLSecNamespace>
,Attribute
,Namespace
,XMLEvent
,XMLStreamConstants
,XMLSecEvent
,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
FieldsModifier and TypeFieldDescriptionprivate String
private QName
private final String
private static final Map<String,
Map<String, XMLSecNamespace>> Fields inherited from class org.apache.xml.security.stax.impl.stax.XMLSecEventBaseImpl
parentXMLSecStartELement
Fields inherited from interface javax.xml.stream.XMLStreamConstants
ATTRIBUTE, CDATA, CHARACTERS, COMMENT, DTD, END_DOCUMENT, END_ELEMENT, ENTITY_DECLARATION, ENTITY_REFERENCE, NAMESPACE, NOTATION_DECLARATION, PROCESSING_INSTRUCTION, SPACE, START_DOCUMENT, START_ELEMENT
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
boolean
int
static XMLSecNamespace
getInstance
(String prefix, String uri) getName()
getValue()
int
hashCode()
boolean
boolean
boolean
toString()
void
writeAsEncodedUnicode
(Writer writer) private void
writeEncoded
(Writer writer, 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 Details
-
XMLSEC_NS_MAP
-
prefix
-
uri
-
qName
-
-
Constructor Details
-
XMLSecNamespaceImpl
-
-
Method Details
-
getInstance
-
compareTo
- Specified by:
compareTo
in interfaceComparable<XMLSecNamespace>
-
equals
-
hashCode
public int hashCode() -
getName
-
getValue
-
getDTDType
- Specified by:
getDTDType
in interfaceAttribute
-
isSpecified
public boolean isSpecified()- Specified by:
isSpecified
in interfaceAttribute
-
getNamespaceURI
- Specified by:
getNamespaceURI
in interfaceNamespace
-
getPrefix
-
isDefaultNamespaceDeclaration
public boolean isDefaultNamespaceDeclaration()- Specified by:
isDefaultNamespaceDeclaration
in interfaceNamespace
-
getEventType
public int getEventType()- Specified by:
getEventType
in interfaceXMLEvent
-
isNamespace
public boolean isNamespace()- Specified by:
isNamespace
in interfaceXMLEvent
- Overrides:
isNamespace
in classXMLSecEventBaseImpl
-
writeAsEncodedUnicode
- Specified by:
writeAsEncodedUnicode
in interfaceXMLEvent
- Overrides:
writeAsEncodedUnicode
in classXMLSecEventBaseImpl
- Throws:
XMLStreamException
-
writeEncoded
- Throws:
IOException
-
toString
-