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 XMLSecNamespaceattributeNamespaceprivate javax.xml.namespace.QNamenameprivate java.lang.Stringvalue-
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 intcompareTo(XMLSecAttribute o)booleanequals(java.lang.Object obj)XMLSecNamespacegetAttributeNamespace()java.lang.StringgetDTDType()intgetEventType()javax.xml.namespace.QNamegetName()java.lang.StringgetValue()inthashCode()booleanisAttribute()booleanisSpecified()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, 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:
compareToin interfacejava.lang.Comparable<XMLSecAttribute>
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
getAttributeNamespace
public XMLSecNamespace getAttributeNamespace()
- Specified by:
getAttributeNamespacein interfaceXMLSecAttribute
-
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
-
getEventType
public int getEventType()
- Specified by:
getEventTypein interfacejavax.xml.stream.events.XMLEvent
-
isAttribute
public boolean isAttribute()
- Specified by:
isAttributein interfacejavax.xml.stream.events.XMLEvent- Overrides:
isAttributein 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
-
-