Package ontopoly.model
Class FieldInstance
- java.lang.Object
-
- ontopoly.model.FieldInstance
-
public final class FieldInstance extends Object
Represents a populated field attached to an instance topic.
-
-
Constructor Summary
Constructors Constructor Description FieldInstance(Topic instance, FieldAssignment fieldAssignment)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addValue(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.Collection<? extends Object>
getValues()
Returns a collection of Objects.void
removeValue(Object value, LifeCycleListener listener)
Removes the value.
-
-
-
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 Collection<? extends Object> getValues()
Returns a collection of Objects.
-
addValue
public void addValue(Object value, LifeCycleListener listener)
Add a new FieldValue object.
-
removeValue
public void removeValue(Object value, LifeCycleListener listener)
Removes the value.
-
-