Class: Operaton::Bpm::Engine::Variable::TypedValue
- Inherits:
-
Object
- Object
- Operaton::Bpm::Engine::Variable::TypedValue
- Defined in:
- lib/operaton/bpm/engine/variable/typed_value.rb
Overview
Mirrors org.operaton.bpm.engine.variable.value.TypedValue
Direct Known Subclasses
FileValue, NullValue, ObjectValue, PrimitiveTypeValue, UntypedValue
Instance Attribute Summary collapse
-
#is_transient ⇒ Object
writeonly
Sets the attribute is_transient.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(value, type, is_transient = false) ⇒ TypedValue
constructor
A new instance of TypedValue.
- #to_s ⇒ Object
- #transient? ⇒ Boolean
Constructor Details
#initialize(value, type, is_transient = false) ⇒ TypedValue
Returns a new instance of TypedValue.
13 14 15 16 17 |
# File 'lib/operaton/bpm/engine/variable/typed_value.rb', line 13 def initialize(value, type, is_transient = false) @value = value @type = type @is_transient = is_transient end |
Instance Attribute Details
#is_transient=(value) ⇒ Object (writeonly)
Sets the attribute is_transient
23 24 25 |
# File 'lib/operaton/bpm/engine/variable/typed_value.rb', line 23 def is_transient=(value) @is_transient = value end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
11 12 13 |
# File 'lib/operaton/bpm/engine/variable/typed_value.rb', line 11 def type @type end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
11 12 13 |
# File 'lib/operaton/bpm/engine/variable/typed_value.rb', line 11 def value @value end |
Instance Method Details
#to_s ⇒ Object
25 26 27 |
# File 'lib/operaton/bpm/engine/variable/typed_value.rb', line 25 def to_s "Value '#{value}' of type '#{type}', isTransient=#{transient?}" end |
#transient? ⇒ Boolean
19 20 21 |
# File 'lib/operaton/bpm/engine/variable/typed_value.rb', line 19 def transient? @is_transient end |