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, 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
ConstructorsConstructorDescriptionEnd(EndElement event, QName name, List<Namespace> namespaces) Wraps the given event with potentially different name and namespaces. -
Method Summary
Modifier and TypeMethodDescriptionintboolean(package private) voidwrite(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, writeAsEncodedUnicodeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface javax.xml.stream.events.EndElement
getNameMethods 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:
isEndElementin interfaceXMLEvent- Overrides:
isEndElementin classTransformedEvent<EndElement>
-
asEndElement
- Specified by:
asEndElementin interfaceXMLEvent- Overrides:
asEndElementin classTransformedEvent<EndElement>
-
getEventType
public int getEventType()- Specified by:
getEventTypein interfaceXMLEvent
-
getNamespaces
- Specified by:
getNamespacesin interfaceEndElement
-
write
Description copied from class:TransformedEventImplementation ofTransformedEvent.writeAsEncodedUnicode(Writer)andTransformedEvent.toString().- Specified by:
writein classTransformedEvent<EndElement>- Throws:
IOException
-