ndiff.metadelta
Class TOperation
java.lang.Object
ndiff.metadelta.Operation
ndiff.metadelta.TOperation
public class TOperation
- extends Operation
- Author:
- schirinz
Wrapper per le operazioni sul testo
Field Summary |
java.lang.Integer |
length
|
java.lang.Integer |
pStart
|
Fields inherited from class ndiff.metadelta.Operation |
CHANGE_VALUE_ATT, CONTEXT_MOVE_FROM, CONTEXT_MOVE_TO, DELETE_ATT, DELETE_NODE, DELETE_TEXT, DELETE_TREE, INSERT_ATT, INSERT_NODE, INSERT_TEXT, INSERT_TREE, MOVE_FROM, MOVE_TO, nodeA, nodeB, refContent, type |
Constructor Summary |
TOperation(byte type,
Dnode nodeA,
Dnode nodeB,
int pStart,
int length)
Costruttore per operazioni sul testo |
Method Summary |
void |
dump(DOMDocument Ndelta)
Aggiunge la strttura XML relativa all'operazione e la collega come ultimo figlio dell'elemento
root del DOMdocument delta |
java.lang.String |
show()
Ritorna una stringa per la fase di Debug, con le informazioni relative all'operazione |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
pStart
public java.lang.Integer pStart
length
public java.lang.Integer length
TOperation
public TOperation(byte type,
Dnode nodeA,
Dnode nodeB,
int pStart,
int length)
- Costruttore per operazioni sul testo
- Parameters:
type
- Tipo di operazionenodeA
- nodo del documento originale a cui si riferisce l'operazionenodeB
- nodo del documento modificato a cui si riferisce l'operazionepStart
- Offset del testo a cui si riferisce l'operazionelength
- Lunghezza del testo a cui si riferisce l'operazione
dump
public void dump(DOMDocument Ndelta)
- Description copied from class:
Operation
- Aggiunge la strttura XML relativa all'operazione e la collega come ultimo figlio dell'elemento
root del DOMdocument delta
- Specified by:
dump
in class Operation
- Parameters:
Ndelta
- DOMdocument relativo al delta, a cui aggiungere l'operazione
show
public java.lang.String show()
- Description copied from class:
Operation
- Ritorna una stringa per la fase di Debug, con le informazioni relative all'operazione
- Specified by:
show
in class Operation
- Returns:
- Ritorna una stringa che rappresenta l'operazione(Usato per il debug)