Class: Quark::MdkRuntime::EnvironmentVariable
Overview
EnvironmentVariable is a Supplier of Strings that come from the environment.
Constant Summary
DatawireQuarkCore::Static::Unassigned
Instance Attribute Summary collapse
Instance Method Summary
collapse
_lazy_statics, static, unlazy_statics
#to_s
Constructor Details
Returns a new instance of EnvironmentVariable.
775
776
777
778
779
780
781
782
|
# File 'lib/mdk_runtime.rb', line 775
def initialize(variableName, value)
self.__init_fields__
(self).variableName = variableName
(self)._value = value
nil
end
|
Instance Attribute Details
#_value ⇒ Object
Returns the value of attribute _value.
768
769
770
|
# File 'lib/mdk_runtime.rb', line 768
def _value
@_value
end
|
#variableName ⇒ Object
Returns the value of attribute variableName.
768
769
770
|
# File 'lib/mdk_runtime.rb', line 768
def variableName
@variableName
end
|
Instance Method Details
#__init_fields__ ⇒ Object
845
846
847
848
849
850
851
|
# File 'lib/mdk_runtime.rb', line 845
def __init_fields__()
self.variableName = nil
self._value = nil
nil
end
|
#_getClass ⇒ Object
813
814
815
816
817
818
|
# File 'lib/mdk_runtime.rb', line 813
def _getClass()
return "mdk_runtime.EnvironmentVariable"
nil
end
|
#_getField(name) ⇒ Object
820
821
822
823
824
825
826
827
828
829
830
831
|
# File 'lib/mdk_runtime.rb', line 820
def _getField(name)
if ((name) == ("variableName"))
return (self).variableName
end
if ((name) == ("_value"))
return (self)._value
end
return nil
nil
end
|
#_setField(name, value) ⇒ Object
833
834
835
836
837
838
839
840
841
842
843
|
# File 'lib/mdk_runtime.rb', line 833
def _setField(name, value)
if ((name) == ("variableName"))
(self).variableName = ::DatawireQuarkCore.cast(value) { ::String }
end
if ((name) == ("_value"))
(self)._value = ::DatawireQuarkCore.cast(value) { ::String }
end
nil
end
|
#get ⇒ Object
794
795
796
797
798
799
|
# File 'lib/mdk_runtime.rb', line 794
def get()
return (self)._value
nil
end
|
#isDefined ⇒ Object
787
788
789
790
791
792
|
# File 'lib/mdk_runtime.rb', line 787
def isDefined()
return (self.get()) != (nil)
nil
end
|
#orElseGet(alternative) ⇒ Object
801
802
803
804
805
806
807
808
809
810
811
|
# File 'lib/mdk_runtime.rb', line 801
def orElseGet(alternative)
result = self.get()
if ((result) != (nil))
return result
else
return alternative
end
nil
end
|