|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnz.ac.waikato.mcennis.rat.graph.model.ModelShell
nz.ac.waikato.mcennis.rat.graph.property.BasicProperty
public class BasicProperty
Class describing properties on graphs and actors
| Field Summary |
|---|
| Fields inherited from class nz.ac.waikato.mcennis.rat.graph.model.ModelShell |
|---|
listener |
| Fields inherited from interface nz.ac.waikato.mcennis.rat.graph.property.Property |
|---|
ADD_VALUE |
| Constructor Summary | |
|---|---|
BasicProperty(java.lang.String name,
java.lang.Class type)
Creates a new instance of BasicProperty |
|
| Method Summary | |
|---|---|
void |
add(java.lang.Object value)
Add a new value to this property |
int |
compareTo(java.lang.Object o)
|
Property |
duplicate()
create a deep copy of this property |
boolean |
equals(java.lang.Object obj)
|
java.lang.Class |
getPropertyClass()
Return the type of class that this property represents. |
java.lang.String |
getType()
return this property's unique id |
java.util.List |
getValue()
return array of all values. |
void |
setClass(java.lang.Class classType)
|
void |
setType(java.lang.String name)
|
| Methods inherited from class nz.ac.waikato.mcennis.rat.graph.model.ModelShell |
|---|
addListener, fireChange |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface nz.ac.waikato.mcennis.rat.graph.model.Model |
|---|
addListener |
| Constructor Detail |
|---|
public BasicProperty(java.lang.String name,
java.lang.Class type)
name - id for this property| Method Detail |
|---|
public void setType(java.lang.String name)
setType in interface Propertypublic void setClass(java.lang.Class classType)
setClass in interface Propertypublic java.util.List getValue()
Property
getValue in interface Propertypublic java.lang.String getType()
Property
getType in interface Propertypublic void add(java.lang.Object value)
Property
add in interface Propertyvalue - new object to be added
public int compareTo(java.lang.Object o)
throws java.lang.ClassCastException
compareTo in interface java.lang.Comparablejava.lang.ClassCastExceptionpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic Property duplicate()
Property
duplicate in interface Propertypublic java.lang.Class getPropertyClass()
Property
getPropertyClass in interface Property
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||