Class XMLSecAttributeImpl
- java.lang.Object
-
- org.apache.xml.security.stax.impl.stax.XMLSecEventBaseImpl
-
- org.apache.xml.security.stax.impl.stax.XMLSecAttributeImpl
-
- All Implemented Interfaces:
java.lang.Comparable<XMLSecAttribute>
,javax.xml.stream.events.Attribute
,javax.xml.stream.events.XMLEvent
,javax.xml.stream.XMLStreamConstants
,XMLSecAttribute
,XMLSecEvent
public class XMLSecAttributeImpl extends XMLSecEventBaseImpl implements XMLSecAttribute
Class to let XML-Attributes 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 XMLSecNamespace
attributeNamespace
private javax.xml.namespace.QName
name
private java.lang.String
value
-
Fields inherited from class org.apache.xml.security.stax.impl.stax.XMLSecEventBaseImpl
parentXMLSecStartELement
-
-
Constructor Summary
Constructors Constructor Description XMLSecAttributeImpl(javax.xml.namespace.QName name, java.lang.String value)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(XMLSecAttribute o)
boolean
equals(java.lang.Object obj)
XMLSecNamespace
getAttributeNamespace()
java.lang.String
getDTDType()
int
getEventType()
javax.xml.namespace.QName
getName()
java.lang.String
getValue()
int
hashCode()
boolean
isAttribute()
boolean
isSpecified()
void
writeAsEncodedUnicode(java.io.Writer writer)
private void
writeEncoded(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, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement, setParentXMLSecStartElement
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface javax.xml.stream.events.XMLEvent
getLocation, getSchemaType, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, 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
-
name
private final javax.xml.namespace.QName name
-
value
private final java.lang.String value
-
attributeNamespace
private XMLSecNamespace attributeNamespace
-
-
Method Detail
-
compareTo
public int compareTo(XMLSecAttribute o)
- Specified by:
compareTo
in interfacejava.lang.Comparable<XMLSecAttribute>
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
getAttributeNamespace
public XMLSecNamespace getAttributeNamespace()
- Specified by:
getAttributeNamespace
in interfaceXMLSecAttribute
-
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
-
getEventType
public int getEventType()
- Specified by:
getEventType
in interfacejavax.xml.stream.events.XMLEvent
-
isAttribute
public boolean isAttribute()
- Specified by:
isAttribute
in interfacejavax.xml.stream.events.XMLEvent
- Overrides:
isAttribute
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
-
writeEncoded
private void writeEncoded(java.io.Writer writer, java.lang.String text) throws java.io.IOException
- Throws:
java.io.IOException
-
-