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 String
atype
protected List<Field>
cfields
protected ValueIF
condition
protected int
etype
protected List<String>
extents
protected String
id
protected List<Field>
ifields
protected Boolean
primary
protected Relation
relation
protected boolean
requiresTopic
protected List<Field>
rfields
protected String[]
scope
static int
TYPE_ASSOCIATION
static int
TYPE_TOPIC
protected String[]
types
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addExtentQuery(String extentQuery)
void
addField(Field field)
void
compile()
String
getAssociationType()
List<Field>
getCharacteristicFields()
ValueIF
getConditionValue()
int
getEntityType()
List<String>
getExtentQueries()
String
getId()
List<Field>
getIdentityFields()
Relation
getRelation()
List<Field>
getRoleFields()
String[]
getScope()
String[]
getTypes()
boolean
isPrimary()
void
removeExtentQuery(String extentQuery)
boolean
requiresTopic()
void
setAssociationType(String atype)
void
setConditionValue(ValueIF condition)
void
setEntityType(int etype)
void
setId(String id)
void
setPrimary(Boolean primary)
void
setScope(String[] scope)
void
setTypes(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)
-
-