ontopoly.model
Class FieldInstance

java.lang.Object
  extended by ontopoly.model.FieldInstance

public final class FieldInstance
extends java.lang.Object

Represents a populated field attached to an instance topic.


Constructor Summary
FieldInstance(Topic instance, FieldAssignment fieldAssignment)
           
 
Method Summary
 void addValue(java.lang.Object value, LifeCycleListener listener)
          Add a new FieldValue object.
 FieldAssignment getFieldAssignment()
          Returns the assigned field of which this is an instance.
 Topic getInstance()
          Returns the topic this field instance is attached to.
 java.util.Collection<? extends java.lang.Object> getValues()
          Returns a collection of Objects.
 void removeValue(java.lang.Object value, LifeCycleListener listener)
          Removes the value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FieldInstance

public FieldInstance(Topic instance,
                     FieldAssignment fieldAssignment)
Method Detail

getFieldAssignment

public FieldAssignment getFieldAssignment()
Returns the assigned field of which this is an instance.


getInstance

public Topic getInstance()
Returns the topic this field instance is attached to.


getValues

public java.util.Collection<? extends java.lang.Object> getValues()
Returns a collection of Objects.


addValue

public void addValue(java.lang.Object value,
                     LifeCycleListener listener)
Add a new FieldValue object.


removeValue

public void removeValue(java.lang.Object value,
                        LifeCycleListener listener)
Removes the value.



Copyright © 2000-2012 Ontopia.