public class IdentityField extends FieldDefinition
FIELD_TYPE_IDENTITY, FIELD_TYPE_NAME, FIELD_TYPE_OCCURRENCE, FIELD_TYPE_QUERY, FIELD_TYPE_ROLE| Constructor and Description |
|---|
IdentityField(TopicIF topic,
TopicMap tm)
Creates a new IdentityField object.
|
IdentityField(TopicIF topic,
TopicMap tm,
IdentityType identityType) |
| Modifier and Type | Method and Description |
|---|---|
void |
addValue(Topic topic,
Object _value,
LifeCycleListener listener)
Replaces a subject locator of or adds a subject identifier to a topic.
|
boolean |
equals(Object obj) |
String |
getFieldName()
Returns the name of the IdentityField object.
|
int |
getFieldType() |
int |
getHeight()
Returns the assigned height of the identity text field.
|
IdentityType |
getIdentityType()
Gets the identity type.
|
LocatorIF |
getLocator() |
Collection<? extends Object> |
getValues(Topic topic)
Returns either the subject locator or every subject identifier associated
with the topic.
|
int |
getWidth()
Returns the assigned width of the identity text field.
|
boolean |
isItemIdentifier()
True if this is the item identifier field type.
|
boolean |
isSubjectIdentifier()
True if this is the subject identifier field type.
|
boolean |
isSubjectLocator()
True if this is the subject locator field type.
|
void |
removeValue(Topic topic,
Object _value,
LifeCycleListener listener)
Removes the subject locator or a subject identifier from a topic.
|
getCardinality, getFieldDefinition, getFieldDefinition, getFieldDefinition, getValidationType, getValueView, getViewModes, hashCode, setCardinalityaddTopicType, 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, toStringpublic IdentityField(TopicIF topic, TopicMap tm, IdentityType identityType)
public int getFieldType()
getFieldType in class FieldDefinitionpublic String getFieldName()
getFieldName in class FieldDefinitionpublic LocatorIF getLocator()
getLocator in class FieldDefinitionpublic boolean equals(Object obj)
equals in class FieldDefinitionpublic IdentityType getIdentityType()
public boolean isSubjectLocator()
public boolean isSubjectIdentifier()
public boolean isItemIdentifier()
public Collection<? extends Object> getValues(Topic topic)
getValues in class FieldDefinitiontopic - topic from which the values is retrieved.public void addValue(Topic topic, Object _value, LifeCycleListener listener)
addValue in class FieldDefinition_value - value which is going to be added to the topic.public void removeValue(Topic topic, Object _value, LifeCycleListener listener)
removeValue in class FieldDefinition_value - value which is going to be removed from the topic.public int getHeight()
public int getWidth()