| java.lang.Object com.sun.xml.stream.events.DummyEvent
All known Subclasses: com.sun.xml.stream.events.ProcessingInstructionEvent, com.sun.xml.stream.events.CharacterEvent, com.sun.xml.stream.events.CommentEvent, com.sun.xml.stream.events.EndDocumentEvent, com.sun.xml.stream.events.NotationDeclarationImpl, com.sun.xml.stream.events.EntityReferenceEvent, com.sun.xml.stream.events.AttributeImpl, com.sun.xml.stream.events.StartElementEvent, com.sun.xml.stream.events.EndElementEvent, com.sun.xml.stream.events.DTDEvent, com.sun.xml.stream.events.NamedEvent, com.sun.xml.stream.events.EntityDeclarationImpl, com.sun.xml.stream.events.StartDocumentEvent,
DummyEvent | abstract public class DummyEvent implements XMLEvent(Code) | | DummyEvent is an abstract class. It provides functionality for most of the
function of XMLEvent.
author: Neeraj Bajaj Sun Microsystems,Inc. author: K.Venugopal Sun Microsystems,Inc. |
DummyEvent | public DummyEvent()(Code) | | |
DummyEvent | public DummyEvent(int i)(Code) | | |
asCharacters | public Characters asCharacters()(Code) | | Returns this event as Characters, may result in
a class cast exception if this event is not Characters.
|
asEndElement | public EndElement asEndElement()(Code) | | Returns this event as an end element event, may result in
a class cast exception if this event is not a end element.
|
asStartElement | public StartElement asStartElement()(Code) | | Returns this event as a start element event, may result in
a class cast exception if this event is not a start element.
|
getEventType | public int getEventType()(Code) | | |
getSchemaType | public QName getSchemaType()(Code) | | This method is provided for implementations to provide
optional type information about the associated event.
It is optional and will return null if no information
is available.
|
isAttribute | public boolean isAttribute()(Code) | | A utility function to check if this event is an Attribute.
See Also: Attribute |
isCharacterData | public boolean isCharacterData()(Code) | | |
isCharacters | public boolean isCharacters()(Code) | | A utility function to check if this event is Characters.
See Also: Characters |
isEndDocument | public boolean isEndDocument()(Code) | | |
isEndElement | public boolean isEndElement()(Code) | | |
isEntityReference | public boolean isEntityReference()(Code) | | |
isNamespace | public boolean isNamespace()(Code) | | A utility function to check if this event is a Namespace.
See Also: Namespace |
isProcessingInstruction | public boolean isProcessingInstruction()(Code) | | |
isStartDocument | public boolean isStartDocument()(Code) | | |
isStartElement | public boolean isStartElement()(Code) | | |
setEventType | protected void setEventType(int eventType)(Code) | | |
writeAsEncodedUnicode | public void writeAsEncodedUnicode(Writer writer) throws javax.xml.stream.XMLStreamException(Code) | | This method will write the XMLEvent as per the XML 1.0 specification as Unicode characters.
No indentation or whitespace should be outputted.
Any user defined event type SHALL have this method
called when being written to on an output stream.
Built in Event types MUST implement this method,
but implementations MAY choose not call these methods
for optimizations reasons when writing out built in
Events to an output stream.
The output generated MUST be equivalent in terms of the
infoset expressed.
Parameters: writer - The writer that will output the data throws: XMLStreamException - if there is a fatal error writing the event |
|
|