public abstract class BaseEventImpl extends Object implements XMLEvent2
| Modifier and Type | Field and Description |
|---|---|
protected Location |
mLocation
Location where token started; exact definition may depends
on event type.
|
ATTRIBUTE, CDATA, CHARACTERS, COMMENT, DTD, END_DOCUMENT, END_ELEMENT, ENTITY_DECLARATION, ENTITY_REFERENCE, NAMESPACE, NOTATION_DECLARATION, PROCESSING_INSTRUCTION, SPACE, START_DOCUMENT, START_ELEMENT| Modifier | Constructor and Description |
|---|---|
protected |
BaseEventImpl(Location loc) |
| Modifier and Type | Method and Description |
|---|---|
protected static int |
addHash(Iterator it,
int baseHash) |
Characters |
asCharacters() |
EndElement |
asEndElement() |
StartElement |
asStartElement() |
abstract boolean |
equals(Object o)
Declared abstract to force redefinition by sub-classes
|
abstract int |
getEventType() |
Location |
getLocation() |
QName |
getSchemaType() |
abstract int |
hashCode()
Declared abstract to force redefinition by sub-classes
|
boolean |
isAttribute() |
boolean |
isCharacters() |
boolean |
isEndDocument() |
boolean |
isEndElement() |
boolean |
isEntityReference() |
boolean |
isNamespace() |
boolean |
isProcessingInstruction() |
boolean |
isStartDocument() |
boolean |
isStartElement() |
protected static boolean |
iteratedEquals(Iterator it1,
Iterator it2) |
protected static boolean |
stringsWithNullsEqual(String s1,
String s2)
Comparison method that will consider null Strings to be
equivalent to empty Strings for comparison purposes; and
compare equality with that caveat.
|
protected void |
throwFromIOE(IOException ioe) |
String |
toString() |
abstract void |
writeAsEncodedUnicode(Writer w) |
abstract void |
writeUsing(XMLStreamWriter2 w) |
protected final Location mLocation
protected BaseEventImpl(Location loc)
public Characters asCharacters()
asCharacters in interface XMLEventpublic EndElement asEndElement()
asEndElement in interface XMLEventpublic StartElement asStartElement()
asStartElement in interface XMLEventpublic abstract int getEventType()
getEventType in interface XMLEventpublic Location getLocation()
getLocation in interface XMLEventpublic QName getSchemaType()
getSchemaType in interface XMLEventpublic boolean isAttribute()
isAttribute in interface XMLEventpublic boolean isCharacters()
isCharacters in interface XMLEventpublic boolean isEndDocument()
isEndDocument in interface XMLEventpublic boolean isEndElement()
isEndElement in interface XMLEventpublic boolean isEntityReference()
isEntityReference in interface XMLEventpublic boolean isNamespace()
isNamespace in interface XMLEventpublic boolean isProcessingInstruction()
isProcessingInstruction in interface XMLEventpublic boolean isStartDocument()
isStartDocument in interface XMLEventpublic boolean isStartElement()
isStartElement in interface XMLEventpublic abstract void writeAsEncodedUnicode(Writer w) throws XMLStreamException
writeAsEncodedUnicode in interface XMLEventXMLStreamExceptionpublic abstract void writeUsing(XMLStreamWriter2 w) throws XMLStreamException
writeUsing in interface XMLEvent2XMLStreamExceptionpublic abstract boolean equals(Object o)
public abstract int hashCode()
protected void throwFromIOE(IOException ioe) throws XMLStreamException
XMLStreamExceptionprotected static boolean stringsWithNullsEqual(String s1, String s2)
protected static int addHash(Iterator it, int baseHash)
Copyright © 2015 fasterxml.com. All Rights Reserved.