|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoracle.sysman.dbTarget.db.changemgr.emo.docaccess.ApplyOneDiffResult
public class ApplyOneDiffResult
Encapsulates the result of applying one difference from a Diff SXML document to a target SXML document. XMLAccesor.applyDiffs() returns an array contining one of these objects for each difference applied. Clients that implement the ApplyDiffListener.applyDiffResult() method are called with an ApplyOneDiffResult object before each difference is applied, and may examine the conflict (if any) and accept or reject the difference.
Field Summary | |
---|---|
static int |
CONFLICT_EXISTS_DIFFERENT
Indicates that the item to be added already exists and is different, or the item to be removed is different |
static int |
CONFLICT_EXISTS_SAME
Indicates that the item to be added already exists and is the same (this may not be considered a conflict) |
static int |
CONFLICT_MODIFIED_DIFFERENT
Indicates that the item to be modified has already been modified to a different value |
static int |
CONFLICT_MODIFIED_PREVIOUSLY
Indicates that the item to be modified has already been modified to the old valuerecorded in the difference |
static int |
CONFLICT_MODIFIED_SAME
Indicates that the item to be modified has already been modified to the same value (this may not be considered a conflict) |
static int |
CONFLICT_NONE
Indicates that no conflict was detected |
static int |
CONFLICT_NOT_EXIST
Indicates that the item to be removed or modified does not exist |
static int |
DIFF_ADD
Indicates that the difference adds a subobject (such as a column, constraint, or optional section) to an object |
static int |
DIFF_MODIFY
Indicates that the difference modifies the value of an attribute |
static int |
DIFF_NONE
No difference (this is not normally seen) |
static int |
DIFF_REMOVE
Indicates that the difference removes a subobject (such as a column, constraint, or optional section) from an object |
Constructor Summary | |
---|---|
ApplyOneDiffResult(int diffType)
Constructs an ApplyOneDiffResult object.with a default conflict type of CONFLICT_NONE. |
|
ApplyOneDiffResult(int diffType,
int conflictType)
Constructs an ApplyOneDiffResult object. |
Method Summary | |
---|---|
int |
getConflictType()
Returns the conflict type. |
oracle.xml.parser.v2.XMLNode |
getDiffNode()
Returns the difference node associated with the difference |
int |
getDiffType()
Returns the difference type. |
boolean |
getDoChange()
Indicate whether a difference should be applied or not. |
oracle.xml.parser.v2.XMLNode |
getTargetNode()
Returns the target node associated with the apply-diff operation |
java.lang.String |
getXpath()
Returns the xpath associated with the difference. |
void |
setConflictType(int conflictType)
Sets the conflict type. |
void |
setDiffNode(oracle.xml.parser.v2.XMLNode node)
Sets the difference node associated with the difference |
void |
setDoChange(boolean doIt)
Called by the client to indicate whether a difference should be applied or not, in interactive conflict resolution. |
void |
setTargetNode(oracle.xml.parser.v2.XMLNode node)
Sets the target node associated with the apply-diff operation |
void |
setXpath(java.lang.String xpath)
Sets the xpath associated with the difference. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int DIFF_NONE
public static final int DIFF_REMOVE
public static final int DIFF_ADD
public static final int DIFF_MODIFY
public static final int CONFLICT_NONE
public static final int CONFLICT_NOT_EXIST
public static final int CONFLICT_EXISTS_SAME
public static final int CONFLICT_EXISTS_DIFFERENT
public static final int CONFLICT_MODIFIED_SAME
public static final int CONFLICT_MODIFIED_DIFFERENT
public static final int CONFLICT_MODIFIED_PREVIOUSLY
Constructor Detail |
---|
public ApplyOneDiffResult(int diffType, int conflictType)
diffType
- One of:
conflictType
- One of:
public ApplyOneDiffResult(int diffType)
diffType
- One of:
Method Detail |
---|
public int getDiffType()
public void setConflictType(int conflictType)
conflictType
- One of:
public int getConflictType()
public void setXpath(java.lang.String xpath)
xpath
- the xpathpublic java.lang.String getXpath()
public void setDiffNode(oracle.xml.parser.v2.XMLNode node)
node
- the difference nodepublic oracle.xml.parser.v2.XMLNode getDiffNode()
public void setTargetNode(oracle.xml.parser.v2.XMLNode node)
node
- the target nodepublic oracle.xml.parser.v2.XMLNode getTargetNode()
public void setDoChange(boolean doIt)
doIt
- true if the change should be applied,
false if it should not be applied.public boolean getDoChange()
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |