public class Cardinality extends Topic
Constructor and Description |
---|
Cardinality(TopicIF topic,
TopicMap tm)
Creates a new Cardinality object.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
static List<Cardinality> |
getCardinalityTypes(TopicMap tm)
Returns all available cardinalities.
|
static Cardinality |
getDefaultCardinality(FieldDefinition fieldDefinition)
Returns the default cardinality (zero or more)
|
LocatorIF |
getLocator() |
int |
getMaxCardinality() |
int |
getMinCardinality() |
boolean |
isExactlyOne() |
boolean |
isMaxOne()
True if cardinality is 0..1 or 1..1.
|
boolean |
isMinOne()
True if cardinality is 1..* or 1..1.
|
boolean |
isOneOrMore() |
boolean |
isZeroOrMore() |
boolean |
isZeroOrOne() |
addTopicType, copyCharacteristics, findDependentObjects, getDependentObjects, getFieldInstances, getFieldInstances, getId, getMostSpecificTopicType, getName, getTopicIF, getTopicMap, getTopicTypes, hashCode, isAssociationType, isFieldDefinition, isInstanceOf, isInstanceOf, isNameType, isOccurrenceType, isOntologyTopic, isOntologyType, isPrivateSystemTopic, isPublicSystemTopic, isRoleType, isSystemTopic, isTopicMap, isTopicType, remove, removeTopicType, toString
public LocatorIF getLocator()
public boolean isZeroOrOne()
public boolean isExactlyOne()
public boolean isZeroOrMore()
public boolean isOneOrMore()
public boolean isMaxOne()
public boolean isMinOne()
public static Cardinality getDefaultCardinality(FieldDefinition fieldDefinition)
public static List<Cardinality> getCardinalityTypes(TopicMap tm)
public int getMinCardinality()
public int getMaxCardinality()