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
public class StartDocumentEvent extends AbstractXMLEvent implements StartDocument
StartDocument
implementation.- Version:
- $Revision: 1.2 $
- Author:
- Christian Niles
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_ENCODING
Default encoding returned bygetCharacterEncodingScheme()
.static String
DEFAULT_SYSTEM_ID
Default system id returned bygetSystemId()
.static String
DEFAULT_VERSION
Default XML version returned bygetVersion()
.protected String
encoding
The document encoding, ornull
if none was specified.protected Boolean
standalone
The document standalone value, ornull
if none was specified.protected String
version
The XML version, ornull
if none was specified.-
Fields inherited from class javanet.staxutils.events.AbstractXMLEvent
location, schemaType
-
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 Constructor Description StartDocumentEvent()
StartDocumentEvent(String encoding, Boolean standalone, String version, Location location)
StartDocumentEvent(String encoding, Boolean standalone, String version, Location location, QName schemaType)
StartDocumentEvent(String encoding, Location location)
StartDocumentEvent(StartDocument that)
Copy constructor.StartDocumentEvent(Location location)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
encodingSet()
String
getCharacterEncodingScheme()
int
getEventType()
ReturnsXMLStreamConstants.START_DOCUMENT
.String
getSystemId()
String
getVersion()
boolean
isStandalone()
boolean
standaloneSet()
-
Methods 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, writeEvent
-
Methods inherited from class java.lang.Object
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, isNamespace, isProcessingInstruction, isStartDocument, isStartElement, writeAsEncodedUnicode
-
-
-
-
Field Detail
-
DEFAULT_VERSION
public static final String DEFAULT_VERSION
Default XML version returned bygetVersion()
.- See Also:
- Constant Field Values
-
DEFAULT_SYSTEM_ID
public static final String DEFAULT_SYSTEM_ID
Default system id returned bygetSystemId()
.- See Also:
- Constant Field Values
-
DEFAULT_ENCODING
public static final String DEFAULT_ENCODING
Default encoding returned bygetCharacterEncodingScheme()
.- See Also:
- Constant Field Values
-
encoding
protected String encoding
The document encoding, ornull
if none was specified.
-
standalone
protected Boolean standalone
The document standalone value, ornull
if none was specified.
-
version
protected String version
The XML version, ornull
if none was specified.
-
-
Constructor Detail
-
StartDocumentEvent
public StartDocumentEvent()
-
StartDocumentEvent
public StartDocumentEvent(Location location)
-
StartDocumentEvent
public StartDocumentEvent(String encoding, Boolean standalone, String version, Location location)
-
StartDocumentEvent
public StartDocumentEvent(String encoding, Boolean standalone, String version, Location location, QName schemaType)
-
StartDocumentEvent
public StartDocumentEvent(StartDocument that)
Copy constructor.- Parameters:
that
- TheStartDocument
event to copy.
-
-
Method Detail
-
getEventType
public int getEventType()
ReturnsXMLStreamConstants.START_DOCUMENT
.- Specified by:
getEventType
in interfaceXMLEvent
-
encodingSet
public boolean encodingSet()
- Specified by:
encodingSet
in interfaceStartDocument
-
getCharacterEncodingScheme
public String getCharacterEncodingScheme()
- Specified by:
getCharacterEncodingScheme
in interfaceStartDocument
-
getSystemId
public String getSystemId()
- Specified by:
getSystemId
in interfaceStartDocument
-
getVersion
public String getVersion()
- Specified by:
getVersion
in interfaceStartDocument
-
isStandalone
public boolean isStandalone()
- Specified by:
isStandalone
in interfaceStartDocument
-
standaloneSet
public boolean standaloneSet()
- Specified by:
standaloneSet
in interfaceStartDocument
-
-