|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmodel.Attribute
public class Attribute
An attribute stores the property of an object.
Field Summary | |
---|---|
private boolean |
mutable
specifies if the value if mutable |
private java.lang.String |
name
the attribute name |
private java.lang.String |
value
the attribute value |
Constructor Summary | |
---|---|
Attribute(java.lang.String name,
java.lang.String value,
boolean mutable)
Constructs an attribute. |
Method Summary | |
---|---|
java.lang.String |
getName()
Gets the name of the attribute. |
java.lang.String |
getValue()
Gets the value of the attribute. |
boolean |
isEditable()
Gets if the attribute is mutable. |
void |
setValue(java.lang.String value)
Sets the value of the attribute. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.lang.String name
private java.lang.String value
private boolean mutable
Constructor Detail |
---|
public Attribute(java.lang.String name, java.lang.String value, boolean mutable)
name
- - the namevalue
- - the valuemutable
- - specifies if the value can be modifiedMethod Detail |
---|
public boolean isEditable()
public java.lang.String getName()
public java.lang.String getValue()
public void setValue(java.lang.String value)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |