public class CharactersEventImpl extends BaseEventImpl implements Characters
mLocation
ATTRIBUTE, 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, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
asEndElement, asStartElement, getLocation, getSchemaType, isAttribute, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement
public static final CharactersEventImpl createIgnorableWS(Location loc, String content)
public static final CharactersEventImpl createNonIgnorableWS(Location loc, String content)
public Characters asCharacters()
asCharacters
in interface XMLEvent
asCharacters
in class BaseEventImpl
public int getEventType()
getEventType
in interface XMLEvent
getEventType
in class BaseEventImpl
public boolean isCharacters()
isCharacters
in interface XMLEvent
isCharacters
in class BaseEventImpl
public void writeAsEncodedUnicode(Writer w) throws XMLStreamException
writeAsEncodedUnicode
in interface XMLEvent
writeAsEncodedUnicode
in class BaseEventImpl
XMLStreamException
public void writeUsing(XMLStreamWriter2 w) throws XMLStreamException
writeUsing
in interface XMLEvent2
writeUsing
in class BaseEventImpl
XMLStreamException
public String getData()
getData
in interface Characters
public boolean isCData()
isCData
in interface Characters
public boolean isIgnorableWhiteSpace()
isIgnorableWhiteSpace
in interface Characters
public boolean isWhiteSpace()
isWhiteSpace
in interface Characters
public void setWhitespaceStatus(boolean status)
public boolean equals(Object o)
BaseEventImpl
equals
in class BaseEventImpl
public int hashCode()
BaseEventImpl
hashCode
in class BaseEventImpl
protected static void writeEscapedXMLText(Writer w, String text) throws IOException
IOException
Copyright © 2015 fasterxml.com. All Rights Reserved.