Class: Ea::Sources::Qea::Xref::PropertyDefinition
- Inherits:
-
Struct
- Object
- Struct
- Ea::Sources::Qea::Xref::PropertyDefinition
- Defined in:
- lib/ea/sources/qea/xref/property_definition.rb
Overview
Tagged-value / property definition record. Produced when the
Description contains one or more @PROP=@NAME=..@ENDNAME;
blocks for non-legend properties.
Example source:
@PROP=@NAME=isActive@ENDNAME;@TYPE=Boolean@ENDTYPE;
@VALU=@ENDVALU;@PRMT=@ENDPRMT;@ENDPROP;
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
-
#parameter ⇒ Object
Returns the value of attribute parameter.
-
#type ⇒ Object
Returns the value of attribute type.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#boolean? ⇒ Boolean
True when the property is declared as Boolean.
-
#default_value? ⇒ Boolean
True when the value field is non-empty.
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name
14 15 16 |
# File 'lib/ea/sources/qea/xref/property_definition.rb', line 14 def name @name end |
#parameter ⇒ Object
Returns the value of attribute parameter
14 15 16 |
# File 'lib/ea/sources/qea/xref/property_definition.rb', line 14 def parameter @parameter end |
#type ⇒ Object
Returns the value of attribute type
14 15 16 |
# File 'lib/ea/sources/qea/xref/property_definition.rb', line 14 def type @type end |
#value ⇒ Object
Returns the value of attribute value
14 15 16 |
# File 'lib/ea/sources/qea/xref/property_definition.rb', line 14 def value @value end |
Instance Method Details
#boolean? ⇒ Boolean
Returns true when the property is declared as Boolean.
22 23 24 |
# File 'lib/ea/sources/qea/xref/property_definition.rb', line 22 def boolean? type == "Boolean" end |
#default_value? ⇒ Boolean
Returns true when the value field is non-empty.
17 18 19 |
# File 'lib/ea/sources/qea/xref/property_definition.rb', line 17 def default_value? !value.nil? && !value.empty? end |