|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavanet.staxutils.events.AbstractXMLEvent
javanet.staxutils.events.AttributeEvent
public class AttributeEvent
Attribute
event implementation.
Field Summary |
---|
Fields inherited from class javanet.staxutils.events.AbstractXMLEvent |
---|
location, schemaType |
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 | |
---|---|
AttributeEvent(Attribute that)
Copy constructor. |
|
AttributeEvent(QName name,
String value)
Constructs an AttributeEvent with the specified name and value. |
|
AttributeEvent(QName name,
String value,
Attribute that)
Copy constructor that optionally allows the name and/or value to be changed. |
|
AttributeEvent(QName name,
String value,
boolean specified)
Constructs a new AttributeEvent . |
|
AttributeEvent(QName name,
String value,
boolean specified,
String dtdType,
Location location,
QName schemaType)
Constructs a new AttributeEvent . |
|
AttributeEvent(QName name,
String value,
Location location)
Constructs a new AttributeEvent . |
|
AttributeEvent(QName name,
String value,
Location location,
QName schemaType)
Constructs a new AttributeEvent . |
Method Summary | |
---|---|
String |
getDTDType()
|
int |
getEventType()
Returns XMLStreamConstants.ATTRIBUTE . |
QName |
getName()
|
String |
getValue()
|
boolean |
isSpecified()
|
Methods inherited from class javanet.staxutils.events.AbstractXMLEvent |
---|
asCharacters, asEndElement, asStartElement, clone, getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement, matches, toString, writeAsEncodedUnicode, writeEvent |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface javax.xml.stream.events.XMLEvent |
---|
asCharacters, asEndElement, asStartElement, getLocation, getSchemaType, isAttribute, isCharacters, isEndDocument, isEndElement, isEntityReference, isNamespace, isProcessingInstruction, isStartDocument, isStartElement, writeAsEncodedUnicode |
Constructor Detail |
---|
public AttributeEvent(QName name, String value)
AttributeEvent
with the specified name and value.
name
- The qualified attribute name.value
- The attribute value.public AttributeEvent(QName name, String value, boolean specified)
AttributeEvent
.
name
- The qualified attribute name.value
- The attribute value.specified
- Whether the attribute was specified in the document
(true
false).public AttributeEvent(QName name, String value, Location location)
AttributeEvent
.
name
- The qualified attribute name.value
- The attribute value.location
- The Location
of the attribute.public AttributeEvent(QName name, String value, Location location, QName schemaType)
AttributeEvent
.
name
- The qualified attribute name.value
- The attribute value.location
- The Location
of the attribute.schemaType
- The attribute type as specified in the schema.public AttributeEvent(QName name, String value, boolean specified, String dtdType, Location location, QName schemaType)
AttributeEvent
.
name
- The qualified attribute name.value
- The attribute value.specified
- Whether the attribute was specified in the document
(true
false).location
- The Location
of the attribute.dtdType
- The attribute type as specified in the DTD.schemaType
- The attribute type as specified in the schema.public AttributeEvent(QName name, String value, Attribute that)
name
- The new attribute name, or null
to use the name from
the provided attribute.value
- The new attribute value, or null
to use the value
from the provided attribute.that
- The Attribute
event to copy.public AttributeEvent(Attribute that)
that
- The Attribute
event to copy.Method Detail |
---|
public int getEventType()
XMLStreamConstants.ATTRIBUTE
.
getEventType
in interface XMLEvent
public QName getName()
getName
in interface Attribute
public String getValue()
getValue
in interface Attribute
public boolean isSpecified()
isSpecified
in interface Attribute
public String getDTDType()
getDTDType
in interface Attribute
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |