public class CharactersEvent extends Object
Modifier and Type | Class and Description |
---|---|
static class |
JsonXmlEvent.Attribute
Helper class representing an attribute of the xml event.
|
Constructor and Description |
---|
CharactersEvent(String text,
Location location) |
Modifier and Type | Method and Description |
---|---|
List<JsonXmlEvent.Attribute> |
getAttributes()
Returns a list of attributes of this event.
|
int |
getEventType()
Returns the type of this event.
|
Location |
getLocation()
Returns the location of this event in JSON stream.
|
QName |
getName()
Returns the name of this event if this event is of
XMLStreamConstants.START_ELEMENT or XMLStreamConstants
.END_ELEMENT type. |
String |
getPrefix()
Returns the prefix of the name of this event if this event is of
XMLStreamConstants.START_ELEMENT
or XMLStreamConstants.END_ELEMENT type. |
String |
getText()
Returns the text of this event if this event is of
XMLStreamConstants.CHARACTERS type. |
void |
setAttributes(List<JsonXmlEvent.Attribute> attributes) |
void |
setName(QName name) |
void |
setText(String text) |
String |
toString() |
public List<JsonXmlEvent.Attribute> getAttributes()
XMLStreamConstants.START_ELEMENT
type to
return a non-null value. null
value of this property can also mean that the list of attributes has not been
initialized yet.null
value if this event is of incorrect type or the list of attributes has not
been initialized yet.public int getEventType()
public Location getLocation()
public QName getName()
XMLStreamConstants.START_ELEMENT
or XMLStreamConstants
.END_ELEMENT
type.null
value.public String getPrefix()
XMLStreamConstants.START_ELEMENT
or XMLStreamConstants.END_ELEMENT
type.null
value.public String getText()
XMLStreamConstants.CHARACTERS
type.null
value.public void setAttributes(List<JsonXmlEvent.Attribute> attributes)
public void setName(QName name)
public void setText(String text)
Copyright © 2013 Oracle Corporation. All rights reserved.