OME
Interface ModelAttribute


public interface ModelAttribute

ModelAttributes represent reference-type attributes on ModelObjects. An attribute maps a name to a target (separate distinct object) within the kb. Multiple attributes may point to the same such target. This can be contrasted with the notion of a value attribute wherein each attribute will have a separate target.


Method Summary
 void clearTarget()
          Removes any target from the attribute.
 java.lang.String getName()
          Returns a name for the Attribute which can be used to find it later.
 java.util.Iterator getPossibleTargets()
          Attempts to construct a list of possible targets.
 java.lang.Object getTarget()
          Returns the target of this attribute, returning null if there is no target.
 void setTarget(java.lang.Object target)
          Sets the target of this attribute to the specified target.
 

Method Detail

getName

public java.lang.String getName()
Returns a name for the Attribute which can be used to find it later.

setTarget

public void setTarget(java.lang.Object target)
Sets the target of this attribute to the specified target.
Parameters:
target - which the target of this attribute is set to.

getTarget

public java.lang.Object getTarget()
Returns the target of this attribute, returning null if there is no target.

clearTarget

public void clearTarget()
Removes any target from the attribute.

getPossibleTargets

public java.util.Iterator getPossibleTargets()
Attempts to construct a list of possible targets. Returns an empty iterator if such a construction is not feasible.