Package org.codehaus.stax2.ri.evt
Class CharactersEventImpl
java.lang.Object
org.codehaus.stax2.ri.evt.BaseEventImpl
org.codehaus.stax2.ri.evt.CharactersEventImpl
- All Implemented Interfaces:
Characters
,XMLEvent
,XMLStreamConstants
,XMLEvent2
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final String
(package private) final boolean
(package private) final boolean
(package private) boolean
(package private) boolean
Fields inherited from class org.codehaus.stax2.ri.evt.BaseEventImpl
mLocation
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
ConstructorsModifierConstructorDescriptionCharactersEventImpl
(Location loc, String content, boolean cdata) Constructor for regular unspecified (but non-CDATA) characters event type, which may or may not be all whitespace, but is not specified as ignorable white space.private
CharactersEventImpl
(Location loc, String content, boolean cdata, boolean allWS, boolean ignorableWS) Constructor for creating white space characters... -
Method Summary
Modifier and TypeMethodDescriptionstatic final CharactersEventImpl
createIgnorableWS
(Location loc, String content) static final CharactersEventImpl
createNonIgnorableWS
(Location loc, String content) boolean
Declared abstract to force redefinition by sub-classesgetData()
int
int
hashCode()
Declared abstract to force redefinition by sub-classesboolean
isCData()
boolean
boolean
boolean
void
setWhitespaceStatus
(boolean status) void
protected static void
writeEscapedXMLText
(Writer w, String text) void
Methods inherited from class org.codehaus.stax2.ri.evt.BaseEventImpl
addHash, asEndElement, asStartElement, getLocation, getSchemaType, isAttribute, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement, iteratedEquals, stringsWithNullsEqual, throwFromIOE, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface javax.xml.stream.events.XMLEvent
asEndElement, asStartElement, getLocation, getSchemaType, isAttribute, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement
-
Field Details
-
mContent
-
mIsCData
final boolean mIsCData -
mIgnorableWS
final boolean mIgnorableWS -
mWhitespaceChecked
boolean mWhitespaceChecked -
mIsWhitespace
boolean mIsWhitespace
-
-
Constructor Details
-
CharactersEventImpl
Constructor for regular unspecified (but non-CDATA) characters event type, which may or may not be all whitespace, but is not specified as ignorable white space. -
CharactersEventImpl
private CharactersEventImpl(Location loc, String content, boolean cdata, boolean allWS, boolean ignorableWS) Constructor for creating white space characters...
-
-
Method Details
-
createIgnorableWS
-
createNonIgnorableWS
-
asCharacters
- Specified by:
asCharacters
in interfaceXMLEvent
- Overrides:
asCharacters
in classBaseEventImpl
-
getEventType
public int getEventType()- Specified by:
getEventType
in interfaceXMLEvent
- Specified by:
getEventType
in classBaseEventImpl
-
isCharacters
public boolean isCharacters()- Specified by:
isCharacters
in interfaceXMLEvent
- Overrides:
isCharacters
in classBaseEventImpl
-
writeAsEncodedUnicode
- Specified by:
writeAsEncodedUnicode
in interfaceXMLEvent
- Specified by:
writeAsEncodedUnicode
in classBaseEventImpl
- Throws:
XMLStreamException
-
writeUsing
- Specified by:
writeUsing
in interfaceXMLEvent2
- Specified by:
writeUsing
in classBaseEventImpl
- Throws:
XMLStreamException
-
getData
- Specified by:
getData
in interfaceCharacters
-
isCData
public boolean isCData()- Specified by:
isCData
in interfaceCharacters
-
isIgnorableWhiteSpace
public boolean isIgnorableWhiteSpace()- Specified by:
isIgnorableWhiteSpace
in interfaceCharacters
-
isWhiteSpace
public boolean isWhiteSpace()- Specified by:
isWhiteSpace
in interfaceCharacters
-
setWhitespaceStatus
public void setWhitespaceStatus(boolean status) -
equals
Description copied from class:BaseEventImpl
Declared abstract to force redefinition by sub-classes- Specified by:
equals
in classBaseEventImpl
-
hashCode
public int hashCode()Description copied from class:BaseEventImpl
Declared abstract to force redefinition by sub-classes- Specified by:
hashCode
in classBaseEventImpl
-
writeEscapedXMLText
- Throws:
IOException
-