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, 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 TypeMethodDescriptionint
getValue()
boolean
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, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, 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, 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:
isNamespace
in interfaceXMLEvent
- Overrides:
isNamespace
in classTransformedEvent<Attribute>
-
getEventType
public int getEventType()- Specified by:
getEventType
in interfaceXMLEvent
-
getNamespaceURI
- Specified by:
getNamespaceURI
in interfaceNamespace
-
getValue
-
getDTDType
- Specified by:
getDTDType
in interfaceAttribute
-
isSpecified
public boolean isSpecified()- Specified by:
isSpecified
in interfaceAttribute
-
getPrefix
-
isDefaultNamespaceDeclaration
public boolean isDefaultNamespaceDeclaration()- Specified by:
isDefaultNamespaceDeclaration
in interfaceNamespace
-
write
Description copied from class:TransformedEvent
Implementation ofTransformedEvent.writeAsEncodedUnicode(Writer)
andTransformedEvent.toString()
.- Specified by:
write
in classTransformedEvent<Attribute>
- Throws:
IOException
-