Package ch.ivyteam.ivy.scripting.objects
Class CompositeObject
- java.lang.Object
-
- ch.ivyteam.ivy.scripting.objects.NestedObject
-
- ch.ivyteam.ivy.scripting.objects.CompositeObject
-
- All Implemented Interfaces:
AutoInitializable,IIvyDataObject,Serializable,Cloneable
public abstract class CompositeObject extends NestedObject implements AutoInitializable
An CompositeObject is the base class for process data classes. They inherit from CompositeObject, but are generated on the fly. So, here we do not see any sub classes which could- See Also:
- Serialized Form
- API:
- This is a public API.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CompositeObjectclone()Clones this object.CompositeObjectdeepClone()Creates a deep clone.Objectget(String fieldName)Returns the value of a field.voidset(String fieldName, Object value)Sets the value of a field.-
Methods inherited from class ch.ivyteam.ivy.scripting.objects.NestedObject
equals, hashCode, toString
-
-
-
-
Method Detail
-
get
public Object get(String fieldName) throws NoSuchFieldException
Returns the value of a field.- Parameters:
fieldName- The field name whose value should be returned.- Returns:
- The value of the given field.
- Throws:
NoSuchFieldException- API:
- This public API is available in IvyScript and Java. It has the visibility NOVICE.
-
set
public void set(String fieldName, Object value) throws NoSuchFieldException
Sets the value of a field.- Parameters:
fieldName- The name of the field whose value should be set.value- The new field value.- Throws:
NoSuchFieldExceptionRuntimeException- API:
- This public API is available in IvyScript and Java. It has the visibility NOVICE.
-
clone
public CompositeObject clone()
Clones this object.- Specified by:
clonein interfaceIIvyDataObject- Overrides:
clonein classNestedObject- Returns:
- a shadow clone.
- See Also:
Object.clone()- API:
- This public API is available in IvyScript and Java. It has the visibility NOVICE.
-
deepClone
public CompositeObject deepClone()
Description copied from class:NestedObjectCreates a deep clone.- Specified by:
deepClonein interfaceIIvyDataObject- Overrides:
deepClonein classNestedObject- Returns:
- a deep clone.
- See Also:
NestedObject.deepClone()- API:
- This public API is available in IvyScript and Java. It has the visibility NOVICE.
-
-