Package org.apache.sis.xml
Class TransformedEvent.Attr
- All Implemented Interfaces:
Attribute
,XMLEvent
,XMLStreamConstants
- Direct Known Subclasses:
TransformedEvent.Type
- Enclosing class:
TransformedEvent<E extends XMLEvent>
Wrapper over an attribute emitted during the reading or writing of an XML document.
This wrapper is used for changing the namespace of the attribute.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.sis.xml.TransformedEvent
TransformedEvent.Attr, TransformedEvent.End, TransformedEvent.NS, TransformedEvent.Start, TransformedEvent.Type
-
Field Summary
Fields inherited from class org.apache.sis.xml.TransformedEvent
event, name
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 TypeMethodDescription(package private) static TransformedEvent.Attr
Cast or wrap the given attribute to anAttr
instance.int
getValue()
boolean
boolean
(package private) void
write
(Appendable out) Implementation ofTransformedEvent.writeAsEncodedUnicode(Writer)
andTransformedEvent.toString()
.Methods inherited from class org.apache.sis.xml.TransformedEvent
asCharacters, asEndElement, asStartElement, getLocation, getName, getSchemaType, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement, name, toString, writeAsEncodedUnicode
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface javax.xml.stream.events.XMLEvent
asCharacters, asEndElement, asStartElement, getLocation, getSchemaType, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement, writeAsEncodedUnicode
-
Constructor Details
-
Attr
Wraps the given event with a different name.
-
-
Method Details
-
castOrWrap
Cast or wrap the given attribute to anAttr
instance. -
isAttribute
public boolean isAttribute()- Specified by:
isAttribute
in interfaceXMLEvent
- Overrides:
isAttribute
in classTransformedEvent<Attribute>
-
getEventType
public int getEventType()- Specified by:
getEventType
in interfaceXMLEvent
-
getValue
-
getDTDType
- Specified by:
getDTDType
in interfaceAttribute
-
isSpecified
public boolean isSpecified()- Specified by:
isSpecified
in interfaceAttribute
-
write
Description copied from class:TransformedEvent
Implementation ofTransformedEvent.writeAsEncodedUnicode(Writer)
andTransformedEvent.toString()
.- Specified by:
write
in classTransformedEvent<Attribute>
- Throws:
IOException
-