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
-
Field Summary
Fields inherited from class com.sun.xml.fastinfoset.stax.events.EventBase
_eventType, _locationFields 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 -
Method Summary
Modifier and TypeMethodDescriptiongetData()Get the character data of this eventbooleanisCData()booleanReturn true if this is ignorableWhiteSpace.booleanReturns true if this set of Characters are all whitespace.voidvoidsetIgnorable(boolean isIgnorable) voidsetSpace(boolean isSpace) toString()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, writeAsEncodedUnicodeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface javax.xml.stream.events.XMLEvent
asCharacters, asEndElement, asStartElement, getEventType, getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement, writeAsEncodedUnicode
-
Constructor Details
-
CharactersEvent
public CharactersEvent() -
CharactersEvent
- Parameters:
data- Character Data.
-
CharactersEvent
- Parameters:
data- Character Data.isCData- true if is CData
-
-
Method Details
-
getData
Get the character data of this event- Specified by:
getDatain interfaceCharacters
-
setData
-
isCData
public boolean isCData()- Specified by:
isCDatain interfaceCharacters- Returns:
- boolean returns true if the data is CData
-
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)
-