|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ontopoly.model.Topic ontopoly.model.Cardinality
public class Cardinality
Represents a cardinality that can be assigned to a field.
Constructor Summary | |
---|---|
Cardinality(TopicIF topic,
TopicMap tm)
Creates a new Cardinality object. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
|
static java.util.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()
|
Methods inherited from class ontopoly.model.Topic |
---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Cardinality(TopicIF topic, TopicMap tm)
Method Detail |
---|
public boolean equals(java.lang.Object obj)
equals
in class Topic
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 java.util.List<Cardinality> getCardinalityTypes(TopicMap tm)
public int getMinCardinality()
public int getMaxCardinality()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |