public class RoleField extends FieldDefinition
Modifier and Type | Class and Description |
---|---|
static interface |
RoleField.ValueIF
Interface.
|
FIELD_TYPE_IDENTITY, FIELD_TYPE_NAME, FIELD_TYPE_OCCURRENCE, FIELD_TYPE_QUERY, FIELD_TYPE_ROLE
Constructor and Description |
---|
RoleField(TopicIF topic,
TopicMap tm) |
RoleField(TopicIF topic,
TopicMap tm,
RoleType roleType,
AssociationField associationField) |
Modifier and Type | Method and Description |
---|---|
void |
addValue(Topic topic,
Object _value,
LifeCycleListener listener)
Adds an instance topic to the other side of an association an instance topic takes part in.
|
static RoleField.ValueIF |
createValue(int arity)
Factory method for creating a ValueIF object, which represent an instance topic on one side of an association.
|
boolean |
equals(Object obj) |
List<Topic> |
getAllowedPlayers() |
List<Topic> |
getAllowedPlayers(Topic currentTopic) |
Collection<TopicType> |
getAllowedPlayerTypes(Topic currentTopic) |
AssociationField |
getAssociationField() |
AssociationType |
getAssociationType()
Gets the association type.
|
CreateAction |
getCreateAction() |
Collection<TopicType> |
getDeclaredPlayerTypes()
Gets the topic types that have been declared as valid and which
may play the other roles in this association type.
|
EditMode |
getEditMode() |
String |
getFieldName()
Returns the name of this field definition.
|
Collection<RoleField> |
getFieldsForOtherRoles()
Gets the other RoleField objects this object's association type topic takes part in.
|
int |
getFieldType() |
InterfaceControl |
getInterfaceControl()
Gets the interface control assigned for this association field.
|
LocatorIF |
getLocator() |
List<RoleField.ValueIF> |
getOrderedValues(Topic topic,
RoleField ofield) |
Collection<RoleField> |
getOtherRoleFields() |
RoleType |
getRoleType()
Gets the role type.
|
List<RoleField.ValueIF> |
getValues(Topic topic)
Gets the instance topics on the other side of an association an instance topic takes part in.
|
boolean |
isSortable() |
void |
moveAfter(Topic instance,
RoleField ofield,
RoleField.ValueIF rfv1,
RoleField.ValueIF rfv2)
Change field value order so that the first value is ordered directly after the second value.
|
void |
removeValue(Topic topic,
Object _value,
LifeCycleListener listener)
Removes an instance topic from the other side of an association an instance topic takes part in.
|
List<Topic> |
searchAllowedPlayers(String searchTerm)
Search for the topics that match the given search term.
|
getCardinality, getFieldDefinition, getFieldDefinition, getFieldDefinition, getValidationType, getValueView, getViewModes, hashCode, setCardinality
addTopicType, copyCharacteristics, findDependentObjects, getDependentObjects, getFieldInstances, getFieldInstances, getId, getMostSpecificTopicType, getName, getTopicIF, getTopicMap, getTopicTypes, isAssociationType, isFieldDefinition, isInstanceOf, isInstanceOf, isNameType, isOccurrenceType, isOntologyTopic, isOntologyType, isPrivateSystemTopic, isPublicSystemTopic, isRoleType, isSystemTopic, isTopicMap, isTopicType, remove, removeTopicType, toString
public RoleField(TopicIF topic, TopicMap tm, RoleType roleType, AssociationField associationField)
public int getFieldType()
getFieldType
in class FieldDefinition
public String getFieldName()
FieldDefinition
getFieldName
in class FieldDefinition
public LocatorIF getLocator()
getLocator
in class FieldDefinition
public boolean equals(Object obj)
equals
in class FieldDefinition
public boolean isSortable()
public EditMode getEditMode()
public CreateAction getCreateAction()
public AssociationType getAssociationType()
public RoleType getRoleType()
public AssociationField getAssociationField()
public Collection<RoleField> getFieldsForOtherRoles()
public InterfaceControl getInterfaceControl()
public Collection<TopicType> getDeclaredPlayerTypes()
public Collection<TopicType> getAllowedPlayerTypes(Topic currentTopic)
public List<Topic> searchAllowedPlayers(String searchTerm)
searchTerm
- the search term used to search for topics.public List<RoleField.ValueIF> getValues(Topic topic)
getValues
in class FieldDefinition
topic
- the instance topic that takes part in the association.public List<RoleField.ValueIF> getOrderedValues(Topic topic, RoleField ofield)
public void addValue(Topic topic, Object _value, LifeCycleListener listener)
addValue
in class FieldDefinition
topic
- the instance topic that takes part in the association._value
- an object representing the instance topic that will be added to the other
side of the association the instance topic (topic) takes part in.public void removeValue(Topic topic, Object _value, LifeCycleListener listener)
removeValue
in class FieldDefinition
_value
- an object representing the instance topic that will be removed from the other
side of the association the instance topic (topic) takes part in.public static RoleField.ValueIF createValue(int arity)
arity
- the number of players that the association value should have.public void moveAfter(Topic instance, RoleField ofield, RoleField.ValueIF rfv1, RoleField.ValueIF rfv2)
public Collection<RoleField> getOtherRoleFields()