nz.ac.waikato.mcennis.rat.graph.property
Interface Property

All Superinterfaces:
java.lang.Comparable, Model, java.io.Serializable
All Known Implementing Classes:
BasicProperty

public interface Property
extends java.io.Serializable, java.lang.Comparable, Model

Class for defining a property on either actor, link, or graph


Field Summary
static int ADD_VALUE
           
 
Method Summary
 void add(java.lang.Object value)
          Add a new value to this property
 Property duplicate()
          create a deep copy of this property
 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 id)
           
 
Methods inherited from interface java.lang.Comparable
compareTo
 
Methods inherited from interface nz.ac.waikato.mcennis.rat.graph.model.Model
addListener
 

Field Detail

ADD_VALUE

static final int ADD_VALUE
See Also:
Constant Field Values
Method Detail

add

void add(java.lang.Object value)
         throws InvalidObjectTypeException
Add a new value to this property

Parameters:
value - new object to be added
Throws:
InvalidObjectTypeException

getType

java.lang.String getType()
return this property's unique id

Returns:
id of this object

getValue

java.util.List getValue()
return array of all values. Returns an empty array if no properties are present

Returns:
array of property values

setType

void setType(java.lang.String id)

setClass

void setClass(java.lang.Class classType)

duplicate

Property duplicate()
create a deep copy of this property

Returns:
deep copy of this property

getPropertyClass

java.lang.Class getPropertyClass()
Return the type of class that this property represents. All objects in one property must be of the same type.

Returns:
name of class types of objects

Get Relational Analysis Toolkit at SourceForge.net. Fast, secure and Free Open Source software downloads