public class CharactersEventImpl extends BaseEventImpl implements Characters
mLocationATTRIBUTE, CDATA, CHARACTERS, COMMENT, DTD, END_DOCUMENT, END_ELEMENT, ENTITY_DECLARATION, ENTITY_REFERENCE, NAMESPACE, NOTATION_DECLARATION, PROCESSING_INSTRUCTION, SPACE, START_DOCUMENT, START_ELEMENT| Constructor and Description |
|---|
CharactersEventImpl(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.
|
| Modifier and Type | Method and Description |
|---|---|
Characters |
asCharacters() |
static CharactersEventImpl |
createIgnorableWS(Location loc,
String content) |
static CharactersEventImpl |
createNonIgnorableWS(Location loc,
String content) |
boolean |
equals(Object o)
Declared abstract to force redefinition by sub-classes
|
String |
getData() |
int |
getEventType() |
int |
hashCode()
Declared abstract to force redefinition by sub-classes
|
boolean |
isCData() |
boolean |
isCharacters() |
boolean |
isIgnorableWhiteSpace() |
boolean |
isWhiteSpace() |
void |
setWhitespaceStatus(boolean status) |
void |
writeAsEncodedUnicode(Writer w) |
protected static void |
writeEscapedXMLText(Writer w,
String text) |
void |
writeUsing(XMLStreamWriter2 w) |
addHash, asEndElement, asStartElement, getLocation, getSchemaType, isAttribute, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement, iteratedEquals, stringsWithNullsEqual, throwFromIOE, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitasEndElement, asStartElement, getLocation, getSchemaType, isAttribute, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElementpublic static final CharactersEventImpl createIgnorableWS(Location loc, String content)
public static final CharactersEventImpl createNonIgnorableWS(Location loc, String content)
public Characters asCharacters()
asCharacters in interface XMLEventasCharacters in class BaseEventImplpublic int getEventType()
getEventType in interface XMLEventgetEventType in class BaseEventImplpublic boolean isCharacters()
isCharacters in interface XMLEventisCharacters in class BaseEventImplpublic void writeAsEncodedUnicode(Writer w) throws XMLStreamException
writeAsEncodedUnicode in interface XMLEventwriteAsEncodedUnicode in class BaseEventImplXMLStreamExceptionpublic void writeUsing(XMLStreamWriter2 w) throws XMLStreamException
writeUsing in interface XMLEvent2writeUsing in class BaseEventImplXMLStreamExceptionpublic String getData()
getData in interface Characterspublic boolean isCData()
isCData in interface Characterspublic boolean isIgnorableWhiteSpace()
isIgnorableWhiteSpace in interface Characterspublic boolean isWhiteSpace()
isWhiteSpace in interface Characterspublic void setWhitespaceStatus(boolean status)
public boolean equals(Object o)
BaseEventImplequals in class BaseEventImplpublic int hashCode()
BaseEventImplhashCode in class BaseEventImplprotected static void writeEscapedXMLText(Writer w, String text) throws IOException
IOExceptionCopyright © 2015 fasterxml.com. All Rights Reserved.