Python scripting OLP Core - Attributes Setters

OlpCorePythonSetLiteralAttribute, derived from OlpCorePythonLiteralAttribute

Previous  Chapter  Next

 

Methods

 

SetOlpProperty(attributeProperties: AttributeProperties)

 

 

o

attributeProperties

attribute properties to be set

 

Sets attribute properties.

 

SetReadOnly(isReadOnly: bool)

 

 

o

isReadOnly

true, if the attribute must be read only, false otherwise

 

Sets whether or not this attribute is globally read-only.

 


 

SetName(name: string)

 

 

o

name

the attribute name

 

Sets attribute name.

 


 

SetGroupName(groupName: string)

 

 

o

name

the attribute group name

 

Sets attribute group name.

 


 

SetValueUnitType(valueUnitType: int)

 

 

o

valueUnitType

new value unit type to be used

 

Sets the type of unit the value is give in. See AttributeValueUnitType for details and default units.

 


 

 

SetValue(value: string)

 

 

o

value

attribute value

 

Sets the value of the attribute.


 

SetValues(value: list)

 

 

o

values

list of literal string values

 

Sets the value array.


 

SetIndex(index: int)

 

 

o

index

new index to be set, must be valid

 

Sets the literal at the given index active. If the index is out of range, it will be ignored.

 


 


Previous
Previous page
Chapter
Chapter page
Next
Next page