Package net.ontopia.topicmaps.db2tm
Class Entity
- java.lang.Object
-
- net.ontopia.topicmaps.db2tm.Entity
-
public class Entity extends Object
INTERNAL: Relation mapping concept that represents topic or association definitions. This class refer directly to theand elements in the XML schema. This class is used only internally and is not intended to be used by end-users.
-
-
Field Summary
Fields Modifier and Type Field Description protected Stringatypeprotected List<Field>cfieldsprotected ValueIFconditionprotected intetypeprotected List<String>extentsprotected Stringidprotected List<Field>ifieldsprotected Booleanprimaryprotected Relationrelationprotected booleanrequiresTopicprotected List<Field>rfieldsprotected String[]scopestatic intTYPE_ASSOCIATIONstatic intTYPE_TOPICprotected String[]types
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddExtentQuery(String extentQuery)voidaddField(Field field)voidcompile()StringgetAssociationType()List<Field>getCharacteristicFields()ValueIFgetConditionValue()intgetEntityType()List<String>getExtentQueries()StringgetId()List<Field>getIdentityFields()RelationgetRelation()List<Field>getRoleFields()String[]getScope()String[]getTypes()booleanisPrimary()voidremoveExtentQuery(String extentQuery)booleanrequiresTopic()voidsetAssociationType(String atype)voidsetConditionValue(ValueIF condition)voidsetEntityType(int etype)voidsetId(String id)voidsetPrimary(Boolean primary)voidsetScope(String[] scope)voidsetTypes(String[] types)
-
-
-
Field Detail
-
TYPE_TOPIC
public static final int TYPE_TOPIC
- See Also:
- Constant Field Values
-
TYPE_ASSOCIATION
public static final int TYPE_ASSOCIATION
- See Also:
- Constant Field Values
-
etype
protected int etype
-
relation
protected final Relation relation
-
primary
protected Boolean primary
-
id
protected String id
-
condition
protected ValueIF condition
-
atype
protected String atype
-
types
protected String[] types
-
scope
protected String[] scope
-
requiresTopic
protected boolean requiresTopic
-
-
Method Detail
-
compile
public void compile()
-
getRelation
public Relation getRelation()
-
getEntityType
public int getEntityType()
-
setEntityType
public void setEntityType(int etype)
-
isPrimary
public boolean isPrimary()
-
setPrimary
public void setPrimary(Boolean primary)
-
getId
public String getId()
-
setId
public void setId(String id)
-
getConditionValue
public ValueIF getConditionValue()
-
setConditionValue
public void setConditionValue(ValueIF condition)
-
getAssociationType
public String getAssociationType()
-
setAssociationType
public void setAssociationType(String atype)
-
getTypes
public String[] getTypes()
-
setTypes
public void setTypes(String[] types)
-
getScope
public String[] getScope()
-
setScope
public void setScope(String[] scope)
-
addField
public void addField(Field field)
-
requiresTopic
public boolean requiresTopic()
-
addExtentQuery
public void addExtentQuery(String extentQuery)
-
removeExtentQuery
public void removeExtentQuery(String extentQuery)
-
-