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 CompositeObject
clone()
Clones this object.CompositeObject
deepClone()
Creates a deep clone.Object
get(String fieldName)
Returns the value of a field.void
set(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:
NoSuchFieldException
RuntimeException
- API:
- This public API is available in IvyScript and Java. It has the visibility NOVICE.
-
clone
public CompositeObject clone()
Clones this object.- Specified by:
clone
in interfaceIIvyDataObject
- Overrides:
clone
in 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:NestedObject
Creates a deep clone.- Specified by:
deepClone
in interfaceIIvyDataObject
- Overrides:
deepClone
in classNestedObject
- Returns:
- a deep clone.
- See Also:
NestedObject.deepClone()
- API:
- This public API is available in IvyScript and Java. It has the visibility NOVICE.
-
-