Package org.apache.sis.xml
Class TransformedEvent.End
- All Implemented Interfaces:
EndElement
,XMLEvent
,XMLStreamConstants
- Enclosing class:
TransformedEvent<E extends XMLEvent>
Wrapper over an element emitted during the reading or writing of an XML document.
This wrapper is used for changing the namespace and sometimes the name of the element.
-
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
FieldsModifier and TypeFieldDescriptionThe namespaces, may or may not be the same than the wrapped event.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
ConstructorsConstructorDescriptionEnd
(EndElement event, QName name, List<Namespace> namespaces) Wraps the given event with potentially different name and namespaces. -
Method Summary
Modifier and TypeMethodDescriptionint
boolean
(package private) void
write
(Appendable out) Implementation ofTransformedEvent.writeAsEncodedUnicode(Writer)
andTransformedEvent.toString()
.Methods inherited from class org.apache.sis.xml.TransformedEvent
asCharacters, asStartElement, getLocation, getName, getSchemaType, isAttribute, isCharacters, isEndDocument, 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.EndElement
getName
Methods inherited from interface javax.xml.stream.events.XMLEvent
asCharacters, asStartElement, getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement, writeAsEncodedUnicode
-
Field Details
-
namespaces
The namespaces, may or may not be the same than the wrapped event.
-
-
Constructor Details
-
End
End(EndElement event, QName name, List<Namespace> namespaces) Wraps the given event with potentially different name and namespaces.
-
-
Method Details
-
isEndElement
public boolean isEndElement()- Specified by:
isEndElement
in interfaceXMLEvent
- Overrides:
isEndElement
in classTransformedEvent<EndElement>
-
asEndElement
- Specified by:
asEndElement
in interfaceXMLEvent
- Overrides:
asEndElement
in classTransformedEvent<EndElement>
-
getEventType
public int getEventType()- Specified by:
getEventType
in interfaceXMLEvent
-
getNamespaces
- Specified by:
getNamespaces
in interfaceEndElement
-
write
Description copied from class:TransformedEvent
Implementation ofTransformedEvent.writeAsEncodedUnicode(Writer)
andTransformedEvent.toString()
.- Specified by:
write
in classTransformedEvent<EndElement>
- Throws:
IOException
-