model
Class Attribute

java.lang.Object
  extended by model.Attribute

public class Attribute
extends java.lang.Object

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

name

private java.lang.String name
the attribute name


value

private java.lang.String value
the attribute value


mutable

private boolean mutable
specifies if the value if mutable

Constructor Detail

Attribute

public Attribute(java.lang.String name,
                 java.lang.String value,
                 boolean mutable)
Constructs an attribute.

Parameters:
name - - the name
value - - the value
mutable - - specifies if the value can be modified
Method Detail

isEditable

public boolean isEditable()
Gets if the attribute is mutable.


getName

public java.lang.String getName()
Gets the name of the attribute.


getValue

public java.lang.String getValue()
Gets the value of the attribute.


setValue

public void setValue(java.lang.String value)
Sets the value of the attribute.