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
public class CharactersEventImpl extends BaseEventImpl implements Characters
-
-
Field Summary
-
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
Constructors Constructor 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.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description CharactersasCharacters()static CharactersEventImplcreateIgnorableWS(Location loc, String content)static CharactersEventImplcreateNonIgnorableWS(Location loc, String content)booleanequals(Object o)Declared abstract to force redefinition by sub-classesStringgetData()intgetEventType()inthashCode()Declared abstract to force redefinition by sub-classesbooleanisCData()booleanisCharacters()booleanisIgnorableWhiteSpace()booleanisWhiteSpace()voidsetWhitespaceStatus(boolean status)voidwriteAsEncodedUnicode(Writer w)protected static voidwriteEscapedXMLText(Writer w, String text)voidwriteUsing(XMLStreamWriter2 w)-
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
-
-
-
-
Method Detail
-
createIgnorableWS
public static final CharactersEventImpl createIgnorableWS(Location loc, String content)
-
createNonIgnorableWS
public static final CharactersEventImpl createNonIgnorableWS(Location loc, String content)
-
asCharacters
public Characters asCharacters()
- Specified by:
asCharactersin interfaceXMLEvent- Overrides:
asCharactersin classBaseEventImpl
-
getEventType
public int getEventType()
- Specified by:
getEventTypein interfaceXMLEvent- Specified by:
getEventTypein classBaseEventImpl
-
isCharacters
public boolean isCharacters()
- Specified by:
isCharactersin interfaceXMLEvent- Overrides:
isCharactersin classBaseEventImpl
-
writeAsEncodedUnicode
public void writeAsEncodedUnicode(Writer w) throws XMLStreamException
- Specified by:
writeAsEncodedUnicodein interfaceXMLEvent- Specified by:
writeAsEncodedUnicodein classBaseEventImpl- Throws:
XMLStreamException
-
writeUsing
public void writeUsing(XMLStreamWriter2 w) throws XMLStreamException
- Specified by:
writeUsingin interfaceXMLEvent2- Specified by:
writeUsingin classBaseEventImpl- Throws:
XMLStreamException
-
getData
public String getData()
- Specified by:
getDatain interfaceCharacters
-
isCData
public boolean isCData()
- Specified by:
isCDatain interfaceCharacters
-
isIgnorableWhiteSpace
public boolean isIgnorableWhiteSpace()
- Specified by:
isIgnorableWhiteSpacein interfaceCharacters
-
isWhiteSpace
public boolean isWhiteSpace()
- Specified by:
isWhiteSpacein interfaceCharacters
-
setWhitespaceStatus
public void setWhitespaceStatus(boolean status)
-
equals
public boolean equals(Object o)
Description copied from class:BaseEventImplDeclared abstract to force redefinition by sub-classes- Specified by:
equalsin classBaseEventImpl
-
hashCode
public int hashCode()
Description copied from class:BaseEventImplDeclared abstract to force redefinition by sub-classes- Specified by:
hashCodein classBaseEventImpl
-
writeEscapedXMLText
protected static void writeEscapedXMLText(Writer w, String text) throws IOException
- Throws:
IOException
-
-