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 XMLEvent
public EndElement asEndElement()
asEndElement
in interface XMLEvent
public StartElement asStartElement()
asStartElement
in interface XMLEvent
public abstract int getEventType()
getEventType
in interface XMLEvent
public Location getLocation()
getLocation
in interface XMLEvent
public QName getSchemaType()
getSchemaType
in interface XMLEvent
public boolean isAttribute()
isAttribute
in interface XMLEvent
public boolean isCharacters()
isCharacters
in interface XMLEvent
public boolean isEndDocument()
isEndDocument
in interface XMLEvent
public boolean isEndElement()
isEndElement
in interface XMLEvent
public boolean isEntityReference()
isEntityReference
in interface XMLEvent
public boolean isNamespace()
isNamespace
in interface XMLEvent
public boolean isProcessingInstruction()
isProcessingInstruction
in interface XMLEvent
public boolean isStartDocument()
isStartDocument
in interface XMLEvent
public boolean isStartElement()
isStartElement
in interface XMLEvent
public abstract void writeAsEncodedUnicode(Writer w) throws XMLStreamException
writeAsEncodedUnicode
in interface XMLEvent
XMLStreamException
public abstract void writeUsing(XMLStreamWriter2 w) throws XMLStreamException
writeUsing
in interface XMLEvent2
XMLStreamException
public abstract boolean equals(Object o)
public abstract int hashCode()
protected void throwFromIOE(IOException ioe) throws XMLStreamException
XMLStreamException
protected static boolean stringsWithNullsEqual(String s1, String s2)
protected static int addHash(Iterator it, int baseHash)
Copyright © 2015 fasterxml.com. All Rights Reserved.