|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.apelon.dts.client.attribute.DTSRole
public class DTSRole
In an Ontylog namespace, a kind defines a concept's type (procedure, substance, etc). A role defines the relationship between concept kinds (for example, located_in, part_of). Each role consists of a role name (that is, a role type or definition) and a specific value.
For example, if concept "Chemistry Test" has kind "Test", concept "Chemical" has kind "Substance" and "SUBSTANCE_MEASURED" is a role type relating concepts of kind "Test" and kind "Substance", then "Chemistry Test" may have a role of type "SUBSTANCE_MEASURED" with a value of "Chemical".
Copyright: Copyright (c) 2004
Company: Apelon, Inc.
| Field Summary | |
|---|---|
static int |
NO_GROUP
This is the standard for a DTSRole which has no group. |
| Constructor Summary | |
|---|---|
DTSRole(DTSRoleType roleType,
OntylogConcept valueConcept)
Deprecated. Use DTSRole(DTSRoleType roleType, OntylogConcept valueConcept,
RoleModifier roleModifier, int roleGroup) instead |
|
DTSRole(DTSRoleType roleType,
OntylogConcept valueConcept,
RoleModifier roleModifier,
int roleGroup)
Constructs a DTSRole that includes a role modifier. |
|
| Method Summary | |
|---|---|
Object |
clone()
Returns new copy of this DTSRole |
OntylogConcept |
getConcept()
Deprecated. Use getValueConcept() instead. |
int |
getGroupNum()
Gets the role group number. |
String |
getName()
Gets the name of the role type of this DTSRole. |
RoleModifier |
getRoleModifier()
Gets the role modifier which is a logical quantifier (for example, "there exists" or "for all") on the role. |
DTSRoleType |
getRoleType()
Gets the DTSRoleType of this DTSRole. |
String |
getValue()
Gets the String value of this DTSRole. |
OntylogConcept |
getValueConcept()
Gets the OntylogConcept value of this DTSRole. |
boolean |
isInGroup()
Indicates whether this role is in a RoleGroup. |
void |
setGroupNum(int groupNum)
Sets the role group number, with NO_GROUP indicating no group. |
void |
setRoleModifier(RoleModifier roleModifier)
Sets the role modifier. |
String |
toString()
Returns a String representation of the role: |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int NO_GROUP
DTSRole which has no group.
| Constructor Detail |
|---|
public DTSRole(DTSRoleType roleType,
OntylogConcept valueConcept)
DTSRole(DTSRoleType roleType, OntylogConcept valueConcept,
RoleModifier roleModifier, int roleGroup) instead
DTSRole
roleType - role typevalueConcept - role value concept
public DTSRole(DTSRoleType roleType,
OntylogConcept valueConcept,
RoleModifier roleModifier,
int roleGroup)
DTSRole that includes a role modifier.
roleType - role typevalueConcept - role value conceptroleModifier - role modifier (for example, "all" or "some")roleGroup - role group number, or 0 if not part of a group| Method Detail |
|---|
public DTSRoleType getRoleType()
DTSRoleType of this DTSRole.
DTSRole.public OntylogConcept getConcept()
getValueConcept() instead.
OntylogConcept value of this DTSRole.
DTSRole.public OntylogConcept getValueConcept()
OntylogConcept value of this DTSRole.
DTSRole.public String getName()
DTSRole.
getName in interface DTSAttributeDTSRole.public String getValue()
String value of this DTSRole.
getValue in interface DTSAttributeDTSRole.public RoleModifier getRoleModifier()
public void setRoleModifier(RoleModifier roleModifier)
roleModifier - the role modifierpublic int getGroupNum()
NO_GROUP if the role is not
in a group.
NO_GROUP.public void setGroupNum(int groupNum)
NO_GROUP indicating no group.
groupNum - public boolean isInGroup()
RoleGroup.
true if it's in a RoleGroup, else
falsepublic Object clone()
DTSRole
clone in class Objectpublic String toString()
String representation of the role:
:
toString in class ObjectString including role modifier, role type name, and
role value concept name.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||