Class ArrayItem
java.lang.Object
ru.cg.webbpm.studio.subsystems.script_editor.serialization.api.bean.ArrayItem
- All Implemented Interfaces:
ArrayItemWithPrototype<ArrayItem>
- Author:
- krylov
-
Constructor Summary
ConstructorsConstructorDescriptionArrayItem
(String id, ArrayItem prototype, PropertyValue value) ArrayItem
(String id, PropertyValue value, boolean removed, ArrayItem prototype) ArrayItem
(PropertyValue value) -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
static ArrayItem
complex
(FieldMetadata metadata, PropertyValue parentPropValue) copy()
Create a copy of this elementboolean
deepEquals
(Object obj) Makes comparison for all instance attributesboolean
getId()
Return object ID.Get the prototype of this objectgetValue()
int
hashCode()
inherit()
Create a new object that inherits from this objectboolean
Check if this object is marked as removed.void
Mark object as removed, changing its state if needed TODO WEBBPMNEXT-5447 remove thisvoid
setRemoved
(boolean removed) void
setValue
(PropertyValue value)
-
Constructor Details
-
ArrayItem
-
ArrayItem
-
ArrayItem
-
ArrayItem
-
ArrayItem
-
-
Method Details
-
complex
-
getId
Description copied from interface:ArrayItemWithPrototype
Return object ID. It must be guaranteed that IDs are unique inside any list- Specified by:
getId
in interfaceArrayItemWithPrototype<ArrayItem>
- Returns:
- object ID
-
getValue
-
setValue
-
getPrototype
Description copied from interface:ArrayItemWithPrototype
Get the prototype of this object- Specified by:
getPrototype
in interfaceArrayItemWithPrototype<ArrayItem>
- Returns:
- object's prototype
-
inherit
Description copied from interface:ArrayItemWithPrototype
Create a new object that inherits from this object- Specified by:
inherit
in interfaceArrayItemWithPrototype<ArrayItem>
- Returns:
- new object
-
copy
Description copied from interface:ArrayItemWithPrototype
Create a copy of this element- Specified by:
copy
in interfaceArrayItemWithPrototype<ArrayItem>
- Returns:
- shallow copy of the element TODO WEBBPMNEXT-5447 revise this
-
isRemoved
public boolean isRemoved()Description copied from interface:ArrayItemWithPrototype
Check if this object is marked as removed. Removed objects are preserved for list inheritance- Specified by:
isRemoved
in interfaceArrayItemWithPrototype<ArrayItem>
- Returns:
- true if object is removed TODO WEBBPMNEXT-5447 remove this
-
setRemoved
public void setRemoved(boolean removed) -
markRemoved
public void markRemoved()Description copied from interface:ArrayItemWithPrototype
Mark object as removed, changing its state if needed TODO WEBBPMNEXT-5447 remove this- Specified by:
markRemoved
in interfaceArrayItemWithPrototype<ArrayItem>
-
clear
public void clear() -
equals
-
deepEquals
Description copied from interface:ArrayItemWithPrototype
Makes comparison for all instance attributes- Specified by:
deepEquals
in interfaceArrayItemWithPrototype<ArrayItem>
- Returns:
- true if equals
-
hashCode
public int hashCode()
-