Class CharactersEvent
- java.lang.Object
-
- com.sun.xml.fastinfoset.stax.events.EventBase
-
- com.sun.xml.fastinfoset.stax.events.CharactersEvent
-
- All Implemented Interfaces:
Characters,XMLEvent,XMLStreamConstants
public class CharactersEvent extends EventBase implements Characters
-
-
Field Summary
-
Fields inherited from class com.sun.xml.fastinfoset.stax.events.EventBase
_eventType, _location
-
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 CharactersEvent()CharactersEvent(String data)CharactersEvent(String data, boolean isCData)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetData()Get the character data of this eventbooleanisCData()booleanisIgnorableWhiteSpace()Return true if this is ignorableWhiteSpace.booleanisWhiteSpace()Returns true if this set of Characters are all whitespace.voidsetData(String data)voidsetIgnorable(boolean isIgnorable)voidsetSpace(boolean isSpace)StringtoString()-
Methods inherited from class com.sun.xml.fastinfoset.stax.events.EventBase
asCharacters, asEndElement, asStartElement, getEventType, getLocation, getSchemaType, getSystemId, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement, setEventType, setLocation, writeAsEncodedUnicode
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface javax.xml.stream.events.XMLEvent
asCharacters, asEndElement, asStartElement, getEventType, getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement, writeAsEncodedUnicode
-
-
-
-
Method Detail
-
getData
public String getData()
Get the character data of this event- Specified by:
getDatain interfaceCharacters
-
setData
public void setData(String data)
-
isCData
public boolean isCData()
- Specified by:
isCDatain interfaceCharacters- Returns:
- boolean returns true if the data is CData
-
toString
public String toString()
-
isIgnorableWhiteSpace
public boolean isIgnorableWhiteSpace()
Return true if this is ignorableWhiteSpace. If this event is ignorableWhiteSpace its event type will be SPACE.- Specified by:
isIgnorableWhiteSpacein interfaceCharacters- Returns:
- boolean true if this is ignorableWhiteSpace.
-
isWhiteSpace
public boolean isWhiteSpace()
Returns true if this set of Characters are all whitespace. Whitspace inside a document is reported as CHARACTERS. This method allows checking of CHARACTERS events to see if they are composed of only whitespace characters- Specified by:
isWhiteSpacein interfaceCharacters- Returns:
- boolean true if this set of Characters are all whitespace
-
setSpace
public void setSpace(boolean isSpace)
-
setIgnorable
public void setIgnorable(boolean isIgnorable)
-
-