Class Script
java.lang.Object
ru.cg.webbpm.studio.subsystems.page_designer.serialization.api.beans.Script
- All Implemented Interfaces:
ArrayItemWithPrototype<Script>
,PropertyContext
- Author:
- Abdulin Ildar
-
Constructor Summary
ConstructorsConstructorDescriptionScript
(String id, ClassRef classRef, Script prototype, ClassMetadata metadata, Map<String, PropertyValue> propertyValues) Script
(String id, ClassRef classRef, Script prototype, ClassMetadata metadata, ComplexValue values) Script
(ClassMetadata type) -
Method Summary
Modifier and TypeMethodDescriptioncopy()
Create a copy of this elementboolean
deepEquals
(Object o) Makes comparison for all instance attributesboolean
getId()
Return object ID.getProperty
(String name) Get the prototype of this objectint
hashCode()
inherit()
Create a new object that inherits from this objectboolean
boolean
boolean
Check if this object is marked as removed.void
Mark object as removed, changing its state if needed TODO WEBBPMNEXT-5447 remove thisvoid
setEnabled
(boolean b) void
setExpanded
(boolean expanded) void
setRemoved
(boolean removed)
-
Constructor Details
-
Script
public Script(String id, ClassRef classRef, Script prototype, ClassMetadata metadata, ComplexValue values) -
Script
public Script(String id, ClassRef classRef, Script prototype, ClassMetadata metadata, Map<String, PropertyValue> propertyValues) -
Script
-
-
Method Details
-
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<Script>
- Returns:
- object ID
-
getClassRef
-
getMetadata
-
isEnabled
public boolean isEnabled() -
setEnabled
public void setEnabled(boolean b) -
setRemoved
public void setRemoved(boolean removed) -
isExpanded
public boolean isExpanded() -
setExpanded
public void setExpanded(boolean expanded) -
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<Script>
- Returns:
- true if object is removed TODO WEBBPMNEXT-5447 remove this
-
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<Script>
-
getPrototype
Description copied from interface:ArrayItemWithPrototype
Get the prototype of this object- Specified by:
getPrototype
in interfaceArrayItemWithPrototype<Script>
- Returns:
- object's prototype
-
inherit
Description copied from interface:ArrayItemWithPrototype
Create a new object that inherits from this object- Specified by:
inherit
in interfaceArrayItemWithPrototype<Script>
- Returns:
- new object
-
copy
Description copied from interface:ArrayItemWithPrototype
Create a copy of this element- Specified by:
copy
in interfaceArrayItemWithPrototype<Script>
- Returns:
- shallow copy of the element TODO WEBBPMNEXT-5447 revise this
-
getProperties
- Specified by:
getProperties
in interfacePropertyContext
-
equals
-
hashCode
public int hashCode() -
deepEquals
Description copied from interface:ArrayItemWithPrototype
Makes comparison for all instance attributes- Specified by:
deepEquals
in interfaceArrayItemWithPrototype<Script>
- Returns:
- true if equals
-
getProperty
-