Class SimpleListOfStringsExternalPersistentObject
java.lang.Object
ro.sync.exml.workspace.api.options.SimpleListOfStringsExternalPersistentObject
- All Implemented Interfaces:
Serializable
,Cloneable
,ExternalPersistentObject
,PersistentObject
@API(type=EXTENDABLE,
src=PUBLIC)
public class SimpleListOfStringsExternalPersistentObject
extends Object
implements ExternalPersistentObject
A persistent object which holds a list of strings. Used as an example and for tests.
- See Also:
-
Constructor Details
-
SimpleListOfStringsExternalPersistentObject
public SimpleListOfStringsExternalPersistentObject()
-
-
Method Details
-
getItems
- Returns:
- Returns the items list.
-
addItem
Add an item.- Parameters:
item
- The item to add.
-
checkValid
Description copied from interface:PersistentObject
Check if object is valid to be used. Method is called after it is deserialized from options. If not then throw anInvalidPersistentObjException
exception.- Specified by:
checkValid
in interfacePersistentObject
- Throws:
InvalidPersistentObjException
- Thrown when instance is not valid.- See Also:
-
getNotPersistentFieldNames
- Specified by:
getNotPersistentFieldNames
in interfacePersistentObject
- Returns:
- The names of the field from this object which should not be serialized.
- See Also:
-
clone
Description copied from interface:PersistentObject
Forces all the persistent objects to be cloneable.- Specified by:
clone
in interfacePersistentObject
- Overrides:
clone
in classObject
- Returns:
- A clone of this object. The clone and the original are disjunct. They share only immutable objects, like Strings, Integers, etc.
- See Also:
-
toString
-