Package ro.sync.options
Interface PersistentObject
-
- All Superinterfaces:
java.lang.Cloneable
,java.io.Serializable
- All Known Subinterfaces:
EditorTemplate
,EditorTemplateWithContent
,ExternalPersistentObject
- All Known Implementing Classes:
ProfileConditionGroupPO
,ProfileConditionInfoPO
,ProfileConditionsSetInfoPO
,ProfileConditionValuePO
,ProfilingAttributesPresentingColorsPO
,ProfilingAttributeStylePO
,SimpleListOfStringsExternalPersistentObject
@API(type=EXTENDABLE, src=PRIVATE) public interface PersistentObject extends java.io.Serializable, java.lang.Cloneable
Defines an object that can be stored in the options. It has to be a simple object, containing only primitive types, other PersistentObjects, or arrays of these types or classes from the java.lang, except the Object class.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
checkValid()
Check if object is valid to be used.java.lang.Object
clone()
Forces all the persistent objects to be cloneable.java.lang.String[]
getNotPersistentFieldNames()
-
-
-
Method Detail
-
checkValid
void checkValid() throws InvalidPersistentObjException
Check if object is valid to be used. Method is called after it is deserialized from options. If not then throw anInvalidPersistentObjException
exception.- Throws:
InvalidPersistentObjException
- Thrown when instance is not valid.
-
getNotPersistentFieldNames
java.lang.String[] getNotPersistentFieldNames()
- Returns:
- The names of the field from this object which should not be serialized.
-
clone
java.lang.Object clone()
Forces all the persistent objects to be cloneable.- Returns:
- A clone of this object. The clone and the original are disjunct. They share only immutable objects, like Strings, Integers, etc.
-
-