Package org.apache.sis.xml
Class TransformedEvent.NS
- All Implemented Interfaces:
Attribute,Namespace,XMLEvent,XMLStreamConstants
- Enclosing class:
- TransformedEvent<E extends XMLEvent>
Wrapper over a namespace emitted during the reading or writing of an XML document.
This wrapper is used for changing the namespace URI. The wrapped
TransformedEvent.event
should be a Namespace, but this class accepts also the Attribute
super-type for allowing the TransformedEvent.Type attribute to create synthetic namespaces.-
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
FieldsFields 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 TypeMethodDescriptionintgetValue()booleanbooleanboolean(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, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, 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, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isProcessingInstruction, isStartDocument, isStartElement, writeAsEncodedUnicode
-
Field Details
-
namespaceURI
The URI of the namespace.
-
-
Constructor Details
-
NS
Wraps the given event with a different prefix and URI.
-
-
Method Details
-
isNamespace
public boolean isNamespace()- Specified by:
isNamespacein interfaceXMLEvent- Overrides:
isNamespacein classTransformedEvent<Attribute>
-
getEventType
public int getEventType()- Specified by:
getEventTypein interfaceXMLEvent
-
getNamespaceURI
- Specified by:
getNamespaceURIin interfaceNamespace
-
getValue
-
getDTDType
- Specified by:
getDTDTypein interfaceAttribute
-
isSpecified
public boolean isSpecified()- Specified by:
isSpecifiedin interfaceAttribute
-
getPrefix
-
isDefaultNamespaceDeclaration
public boolean isDefaultNamespaceDeclaration()- Specified by:
isDefaultNamespaceDeclarationin interfaceNamespace
-
write
Description copied from class:TransformedEventImplementation ofTransformedEvent.writeAsEncodedUnicode(Writer)andTransformedEvent.toString().- Specified by:
writein classTransformedEvent<Attribute>- Throws:
IOException
-