Interface PersistentObject

All Superinterfaces:
Cloneable, 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 Serializable, 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 Details

    • 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 an InvalidPersistentObjException exception.
      Throws:
      InvalidPersistentObjException - Thrown when instance is not valid.
    • getNotPersistentFieldNames

      String[] getNotPersistentFieldNames()
      Returns:
      The names of the field from this object which should not be serialized.
    • clone

      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.