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, nameFields 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.AttrCast or wrap the given attribute to anAttrinstance.intgetValue()booleanboolean(package private) voidwrite(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, writeAsEncodedUnicodeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods 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 anAttrinstance. -
isAttribute
public boolean isAttribute()- Specified by:
isAttributein interfaceXMLEvent- Overrides:
isAttributein classTransformedEvent<Attribute>
-
getEventType
public int getEventType()- Specified by:
getEventTypein interfaceXMLEvent
-
getValue
-
getDTDType
- Specified by:
getDTDTypein interfaceAttribute
-
isSpecified
public boolean isSpecified()- Specified by:
isSpecifiedin interfaceAttribute
-
write
Description copied from class:TransformedEventImplementation ofTransformedEvent.writeAsEncodedUnicode(Writer)andTransformedEvent.toString().- Specified by:
writein classTransformedEvent<Attribute>- Throws:
IOException
-