public class TypeAttr extends Type
TypeAttr
class represents a type of attribute.defaultValue, name, unit, value
Constructor and Description |
---|
TypeAttr()
Initializes a newly created empty
TypeAttr . |
Modifier and Type | Method and Description |
---|---|
void |
changeValue(java.lang.String value)
Sets the new value of the type (standard and temporary value) and marks the
attribute as chosen. |
java.lang.String |
getOwnerName()
Return the name of the owner element - parameter or attribute.
|
void |
setAttr(Attribute attr) |
void |
setDefault()
Sets the
default and temporary value of the type and its unit. |
void |
setValuesFromTemporary()
Sets values of the type and its unit after their temporary values.
|
void |
updateValue()
Sets the new temporary value of the type.
|
assignDefaultFromValue, clone, getDefaultValue, getKeyFromValue, getName, getUnit, getValue, getValueList, setDefaultValue, setLoadedValue, setName, setUnit, setValue, setValueList
public void setValuesFromTemporary()
public void changeValue(java.lang.String value)
attribute
as chosen.changeValue
in class Type
value
- a new value of the type.public void updateValue()
updateValue
in class Type
public void setAttr(Attribute attr)
public void setDefault()
default and temporary value
of the type and its unit.setDefault
in class Type
public java.lang.String getOwnerName()
Type
getOwnerName
in class Type