Package javanet.staxutils.events
Class StartDocumentEvent
java.lang.Object
javanet.staxutils.events.AbstractXMLEvent
javanet.staxutils.events.StartDocumentEvent
- All Implemented Interfaces:
Serializable,Cloneable,ExtendedXMLEvent,StartDocument,XMLEvent,XMLStreamConstants
StartDocument implementation.- Version:
- $Revision: 1.2 $
- Author:
- Christian Niles
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDefault encoding returned bygetCharacterEncodingScheme().static final StringDefault system id returned bygetSystemId().static final StringDefault XML version returned bygetVersion().protected StringThe document encoding, ornullif none was specified.protected BooleanThe document standalone value, ornullif none was specified.protected StringThe XML version, ornullif none was specified.Fields inherited from class javanet.staxutils.events.AbstractXMLEvent
location, schemaTypeFields 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
ConstructorsConstructorDescriptionStartDocumentEvent(String encoding, Boolean standalone, String version, Location location) StartDocumentEvent(String encoding, Boolean standalone, String version, Location location, QName schemaType) StartDocumentEvent(String encoding, Location location) Copy constructor.StartDocumentEvent(Location location) -
Method Summary
Modifier and TypeMethodDescriptionbooleanintReturnsXMLStreamConstants.START_DOCUMENT.booleanbooleanMethods inherited from class javanet.staxutils.events.AbstractXMLEvent
asCharacters, asEndElement, asStartElement, clone, getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement, matches, toString, writeAsEncodedUnicode, writeEventMethods inherited from class java.lang.Object
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, isNamespace, isProcessingInstruction, isStartDocument, isStartElement, writeAsEncodedUnicode
-
Field Details
-
DEFAULT_VERSION
Default XML version returned bygetVersion().- See Also:
-
DEFAULT_SYSTEM_ID
Default system id returned bygetSystemId().- See Also:
-
DEFAULT_ENCODING
Default encoding returned bygetCharacterEncodingScheme().- See Also:
-
encoding
The document encoding, ornullif none was specified. -
standalone
The document standalone value, ornullif none was specified. -
version
The XML version, ornullif none was specified.
-
-
Constructor Details
-
StartDocumentEvent
public StartDocumentEvent() -
StartDocumentEvent
-
StartDocumentEvent
-
StartDocumentEvent
-
StartDocumentEvent
-
StartDocumentEvent
Copy constructor.- Parameters:
that- TheStartDocumentevent to copy.
-
-
Method Details
-
getEventType
public int getEventType()ReturnsXMLStreamConstants.START_DOCUMENT.- Specified by:
getEventTypein interfaceXMLEvent
-
encodingSet
public boolean encodingSet()- Specified by:
encodingSetin interfaceStartDocument
-
getCharacterEncodingScheme
- Specified by:
getCharacterEncodingSchemein interfaceStartDocument
-
getSystemId
- Specified by:
getSystemIdin interfaceStartDocument
-
getVersion
- Specified by:
getVersionin interfaceStartDocument
-
isStandalone
public boolean isStandalone()- Specified by:
isStandalonein interfaceStartDocument
-
standaloneSet
public boolean standaloneSet()- Specified by:
standaloneSetin interfaceStartDocument
-