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 XMLSecEventBaseImpl
XMLSecEventBaseImpl.LocationImpl -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Stringprivate QNameprivate final Stringprivate static final Map<String, Map<String, XMLSecNamespace>> Fields inherited from class XMLSecEventBaseImpl
parentXMLSecStartELementFields inherited from interface 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 TypeMethodDescriptionintbooleanintstatic XMLSecNamespacegetInstance(String prefix, String uri) getName()getValue()inthashCode()booleanbooleanbooleantoString()voidwriteAsEncodedUnicode(Writer writer) private voidwriteEncoded(Writer writer, String text) Methods inherited from class XMLSecEventBaseImpl
asCharacters, asEndElement, asStartElement, getDocumentLevel, getElementPath, getElementPath, getEmptyIterator, getLocation, getParentXMLSecStartElement, getSchemaType, getStartElementAtLevel, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isProcessingInstruction, isStartDocument, isStartElement, setParentXMLSecStartElementMethods inherited from interface XMLEvent
getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isProcessingInstruction, isStartDocument, isStartElementMethods inherited from interface 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:
compareToin interfaceComparable<XMLSecNamespace>
-
equals
-
hashCode
-
getName
-
getValue
-
getDTDType
- Specified by:
getDTDTypein interfaceAttribute
-
isSpecified
public boolean isSpecified()- Specified by:
isSpecifiedin interfaceAttribute
-
getNamespaceURI
- Specified by:
getNamespaceURIin interfaceNamespace
-
getPrefix
-
isDefaultNamespaceDeclaration
public boolean isDefaultNamespaceDeclaration()- Specified by:
isDefaultNamespaceDeclarationin interfaceNamespace
-
getEventType
public int getEventType()- Specified by:
getEventTypein interfaceXMLEvent
-
isNamespace
public boolean isNamespace()- Specified by:
isNamespacein interfaceXMLEvent- Overrides:
isNamespacein classXMLSecEventBaseImpl
-
writeAsEncodedUnicode
- Specified by:
writeAsEncodedUnicodein interfaceXMLEvent- Overrides:
writeAsEncodedUnicodein classXMLSecEventBaseImpl- Throws:
XMLStreamException
-
writeEncoded
- Throws:
IOException
-
toString
-