|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object kaos.core.csi.registration.ModificationResultImpl
public class ModificationResultImpl
Contains the modification type, its succes/failure flag and the description and error code for the modification failure.
Field Summary |
---|
Fields inherited from interface kaos.core.csi.registration.ModificationResult |
---|
ADD, ADD_ELEMENT_TO_LIST, ADD_ELEMENT_TO_TABLE, ADD_ELEMENTS_TO_LIST, ADD_ELEMENTS_TO_TABLE, DELETE, DELETE_ELEMENT_FROM_LIST, DELETE_ELEMENT_FROM_TABLE, DELETE_ELEMENTS_FROM_LIST, DELETE_ELEMENTS_FROM_TABLE, REPLACE |
Constructor Summary | |
---|---|
ModificationResultImpl()
Constructor. |
Method Summary | |
---|---|
int |
getModificationFailureCode()
Return the error code of the modification failure. |
java.lang.String |
getModificationFailureDescription()
Return the description of modification failure. |
java.lang.String |
getModificationType()
Returns a String specifying the type of modification. |
boolean |
isSuccess()
Obtain the success/failure status of the modification. |
void |
setModificationFailureCode(int code)
Store the error code of the modification failure. |
void |
setModificationFailureDescription(java.lang.String desc)
Store the description of modification failure. |
void |
setModificationType(java.lang.String type)
Set the type of the modification. |
void |
setSuccess(boolean flag)
Set the success/failure status of the modification. |
java.lang.String |
toString()
A utility method to create a String representation of the ModificationResult. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ModificationResultImpl()
Method Detail |
---|
public java.lang.String getModificationType()
getModificationType
in interface ModificationResult
public void setModificationType(java.lang.String type)
setModificationType
in interface ModificationResult
type
- String containing the type of modification.public void setSuccess(boolean flag)
setSuccess
in interface ModificationResult
flag
- boolean indicating modification success/failure; true means success.public boolean isSuccess()
isSuccess
in interface ModificationResult
public java.lang.String getModificationFailureDescription()
getModificationFailureDescription
in interface ModificationResult
public void setModificationFailureDescription(java.lang.String desc)
setModificationFailureDescription
in interface ModificationResult
desc
- String containing the description of modification failure.public int getModificationFailureCode()
getModificationFailureCode
in interface ModificationResult
public void setModificationFailureCode(int code)
setModificationFailureCode
in interface ModificationResult
code
- int containing the error code of the modification failure.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 |