javanet.staxutils.events
Class ProcessingInstructionEvent
java.lang.Object
javanet.staxutils.events.AbstractXMLEvent
javanet.staxutils.events.ProcessingInstructionEvent
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Cloneable, ExtendedXMLEvent, javax.xml.stream.events.ProcessingInstruction, javax.xml.stream.events.XMLEvent, javax.xml.stream.XMLStreamConstants
public class ProcessingInstructionEvent
- extends AbstractXMLEvent
- implements javax.xml.stream.events.ProcessingInstruction
ProcessingInstruction event implementation.
- Version:
- $Revision: 1.2 $
- Author:
- Christian Niles
- See Also:
- Serialized Form
|
Field Summary |
protected java.lang.String |
data
The instruction data. |
protected java.lang.String |
target
The PI target. |
| 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 |
|
Method Summary |
java.lang.String |
getData()
|
int |
getEventType()
Returns XMLStreamConstants.PROCESSING_INSTRUCTION. |
java.lang.String |
getTarget()
|
| 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 |
target
protected java.lang.String target
- The PI target.
data
protected java.lang.String data
- The instruction data.
ProcessingInstructionEvent
public ProcessingInstructionEvent(java.lang.String target,
java.lang.String data)
ProcessingInstructionEvent
public ProcessingInstructionEvent(java.lang.String target,
java.lang.String data,
javax.xml.stream.Location location)
ProcessingInstructionEvent
public ProcessingInstructionEvent(javax.xml.stream.events.ProcessingInstruction that)
getEventType
public int getEventType()
- Returns
XMLStreamConstants.PROCESSING_INSTRUCTION.
- Specified by:
getEventType in interface javax.xml.stream.events.XMLEvent
getTarget
public java.lang.String getTarget()
- Specified by:
getTarget in interface javax.xml.stream.events.ProcessingInstruction
getData
public java.lang.String getData()
- Specified by:
getData in interface javax.xml.stream.events.ProcessingInstruction
Copyright © 2013. All Rights Reserved.