public final class ProcessingInstructionEvent extends DocumentEvent
DocumentEvent.Type
source, type
Constructor and Description |
---|
ProcessingInstructionEvent()
Constructs an event intended to be used several times with different
field values.
|
ProcessingInstructionEvent(Object source,
DocumentEvent.Type type,
String oldTarget)
Contructs an event.
|
Modifier and Type | Method and Description |
---|---|
String |
getNewTarget()
Returns current target.
|
String |
getOldTarget()
Returns previous target.
|
ProcessingInstruction |
getProcessingInstructionSource()
Returns the processing instruction for which the target has changed.
|
void |
initialize(Object source,
DocumentEvent.Type type,
String oldTarget)
Initializes this event.
|
String |
toString()
Returns a string representation of this event which can be
used when debugging.
|
copy, getSource, getType, initialize
public ProcessingInstructionEvent()
initialize(java.lang.Object, com.xmlmind.xml.doc.DocumentEvent.Type, java.lang.String)
to initialize its fields.public ProcessingInstructionEvent(Object source, DocumentEvent.Type type, String oldTarget)
source
- the modified processing instructiontype
- the type of the eventoldTarget
- previous targetpublic void initialize(Object source, DocumentEvent.Type type, String oldTarget)
source
- the modified processing instructiontype
- the type of the eventoldTarget
- previous targetpublic ProcessingInstruction getProcessingInstructionSource()
public String getOldTarget()
public String getNewTarget()
public String toString()
DocumentEvent
toString
in class DocumentEvent