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 TypeMethodDescriptionvoidclear()static ArrayItemcomplex(FieldMetadata metadata, PropertyValue parentPropValue) copy()Create a copy of this elementbooleandeepEquals(Object obj) Makes comparison for all instance attributesbooleangetId()Return object ID.Get the prototype of this objectgetValue()inthashCode()inherit()Create a new object that inherits from this objectbooleanCheck if this object is marked as removed.voidMark object as removed, changing its state if needed TODO WEBBPMNEXT-5447 remove thisvoidsetRemoved(boolean removed) voidsetValue(PropertyValue value)
-
Constructor Details
-
ArrayItem
-
ArrayItem
-
ArrayItem
-
ArrayItem
-
ArrayItem
-
-
Method Details
-
complex
-
getId
Description copied from interface:ArrayItemWithPrototypeReturn object ID. It must be guaranteed that IDs are unique inside any list- Specified by:
getIdin interfaceArrayItemWithPrototype<ArrayItem>- Returns:
- object ID
-
getValue
-
setValue
-
getPrototype
Description copied from interface:ArrayItemWithPrototypeGet the prototype of this object- Specified by:
getPrototypein interfaceArrayItemWithPrototype<ArrayItem>- Returns:
- object's prototype
-
inherit
Description copied from interface:ArrayItemWithPrototypeCreate a new object that inherits from this object- Specified by:
inheritin interfaceArrayItemWithPrototype<ArrayItem>- Returns:
- new object
-
copy
Description copied from interface:ArrayItemWithPrototypeCreate a copy of this element- Specified by:
copyin interfaceArrayItemWithPrototype<ArrayItem>- Returns:
- shallow copy of the element TODO WEBBPMNEXT-5447 revise this
-
isRemoved
public boolean isRemoved()Description copied from interface:ArrayItemWithPrototypeCheck if this object is marked as removed. Removed objects are preserved for list inheritance- Specified by:
isRemovedin 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:ArrayItemWithPrototypeMark object as removed, changing its state if needed TODO WEBBPMNEXT-5447 remove this- Specified by:
markRemovedin interfaceArrayItemWithPrototype<ArrayItem>
-
clear
public void clear() -
equals
-
deepEquals
Description copied from interface:ArrayItemWithPrototypeMakes comparison for all instance attributes- Specified by:
deepEqualsin interfaceArrayItemWithPrototype<ArrayItem>- Returns:
- true if equals
-
hashCode
public int hashCode()
-