public final class PITargetEvent extends DocumentEvent
DocumentEvent.Type
source, type
Constructor and Description |
---|
PITargetEvent()
Constructs an event intended to be used several times with different
field values.
|
PITargetEvent(ProcessingInstruction source)
Contructs an event.
|
Modifier and Type | Method and Description |
---|---|
ProcessingInstruction |
getProcessingInstructionSource()
Returns the processing instruction for which the target has changed.
|
String |
getTarget()
Convenience method: returns the target of the newly inserted
processing instruction.
|
void |
initialize(ProcessingInstruction source)
Initializes this event.
|
String |
toString()
Returns a string representation of this event which can be
used when debugging.
|
copy, getSource, getType, initialize
public PITargetEvent()
initialize(com.xmlmind.xml.doc.ProcessingInstruction)
to initialize its fields.public PITargetEvent(ProcessingInstruction source)
source
- the modified processing instructionpublic void initialize(ProcessingInstruction source)
source
- the modified processing instructionpublic ProcessingInstruction getProcessingInstructionSource()
public String getTarget()
public String toString()
DocumentEvent
toString
in class DocumentEvent