public class Attribute extends GeneralElement implements java.lang.Cloneable
Attribute class represents an atribute of property.name, node| Constructor and Description |
|---|
Attribute(java.lang.String name) |
Attribute(java.lang.String name,
TypeAttr type)
Initializes a newly created
Attribute with the specified name and the
type. |
| Modifier and Type | Method and Description |
|---|---|
void |
changeChosen(java.lang.Boolean isChosen)
Sets the
temporaryChosen parameter according the input argument. |
void |
clearValues()
Clear values (sets default values) of the attribute types.
|
java.lang.Object |
clone() |
TypeAttr |
getType() |
java.lang.Boolean |
isChosen() |
void |
setChosen() |
void |
setChosen(java.lang.Boolean isChosen)
Sets the attribute
chosen parameter according the input argument and assignes
the value to the temporaryChosen. |
void |
setType(TypeAttr type) |
void |
setValuesFromTemporary()
Sets values of all types after their temporary values.
|
equals, getName, getNode, setName, setNodepublic Attribute(java.lang.String name)
public Attribute(java.lang.String name,
TypeAttr type)
Attribute with the specified name and the
type. Marks the attribute as not chosen. The name argument is the name of the
attribute. The type argument is the type of attribute.name - a name of attribute.type - a type of attribute.public java.lang.Boolean isChosen()
public void setChosen(java.lang.Boolean isChosen)
chosen parameter according the input argument and assignes
the value to the temporaryChosen.isChosen - a value specifying whether the attribute is chosen or not.public void setChosen()
public void changeChosen(java.lang.Boolean isChosen)
temporaryChosen parameter according the input argument.isChosen - a value specifying whether the attribute is chosen or not.public java.lang.Object clone()
clone in class java.lang.Objectpublic void clearValues()
public void setValuesFromTemporary()
chosen after
temporaryChosen.public void setType(TypeAttr type)
public TypeAttr getType()