|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.apelon.dts.client.common.DTSObject com.apelon.dts.client.attribute.DTSRoleType
public class DTSRoleType
In an Ontylog namespace a role is an association between kinds. Before a role is used within a concept, the role's type (that is, definition) must be defined to specify the domain and range for the role. The role definition's domain must agree with the kind of the concept. The role type consists of the name of the role, as well as the role code and ID.
Copyright: Copyright (c) 2007
Company: Apelon, Inc.
DTSRole
Constructor Summary | |
---|---|
DTSRoleType(String name,
int id,
String code,
int namespaceId)
Deprecated. Use DTSRoleType(String name, int id, String code, int namespaceId, Kind domainKind, Kind rangeKind)
instead. |
|
DTSRoleType(String name,
int id,
String code,
int namespaceId,
Kind domainKind,
Kind rangeKind)
Constructs a new DTSRoleType that includes domain and range
Kind information. |
Method Summary | |
---|---|
Kind |
getDomainKind()
Gets the Kind of the domain concept (to which the role is
attached). |
DTSRoleType |
getParentRoleType()
Gets the parent DTSRoleType for this DTSRoleType |
Kind |
getRangeKind()
Gets the Kind of the range concept (the role value concept). |
DTSRoleType |
getRightIdentity()
Gets the DTSRoleType that when composed with this one, creates
the identical role type. |
void |
setDomainKind(Kind domainKind)
Sets the Kind of the domain concept (to which the role is
attached). |
void |
setParentRoleType(DTSRoleType parentRoleType)
Sets the DTSRoleType as parent DTSRoleType |
void |
setRangeKind(Kind rangeKind)
Sets the Kind of the range concept (the role value concept). |
void |
setRightIdentity(DTSRoleType rightIdentity)
Sets the DTSRoleType that when composed with this one, creates
the identical role type. |
Methods inherited from class com.apelon.dts.client.common.DTSObject |
---|
equals, getCode, getId, getName, getNamespaceId, hashCode, setCode, setId, setName, setNamespaceId, toString |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DTSRoleType(String name, int id, String code, int namespaceId)
DTSRoleType(String name, int id, String code, int namespaceId, Kind domainKind, Kind rangeKind)
instead.
DTSRoleType
for Ontylog concepts.
name
- the role's nameid
- the role's IDcode
- the role's codenamespaceId
- the ID of the role type's namespacepublic DTSRoleType(String name, int id, String code, int namespaceId, Kind domainKind, Kind rangeKind)
DTSRoleType
that includes domain and range
Kind
information. When a DTSRole
is created the Ontylog
concept to which it is attached must be of the domain Kind
and
the role value must be an Ontylog concept of the range Kind
.
name
- the role's nameid
- the role's IDcode
- the role's codenamespaceId
- the ID of the role type's namespacedomainKind
- the Kind
of the concept to which
the role is attachedrangeKind
- the Kind
of role value conceptMethod Detail |
---|
public Kind getDomainKind()
Kind
of the domain concept (to which the role is
attached).
Kind
of the domain concept.public void setDomainKind(Kind domainKind)
Kind
of the domain concept (to which the role is
attached).
domainKind
- the Kind
of the domain concept.public Kind getRangeKind()
Kind
of the range concept (the role value concept).
Kind
of the domain concept.public void setRangeKind(Kind rangeKind)
Kind
of the range concept (the role value concept).
rangeKind
- the Kind
of the range concept.public DTSRoleType getRightIdentity()
DTSRoleType
that when composed with this one, creates
the identical role type. For example,
located_in *composed_with* part_of == located_in
DTSRoleType
, if one exists;
otherwise null
.public void setRightIdentity(DTSRoleType rightIdentity)
DTSRoleType
that when composed with this one, creates
the identical role type. For example,
located_in *composed_with* part_of == located_in
rightIdentity
- the right identity DTSRoleType
public DTSRoleType getParentRoleType()
DTSRoleType
for this DTSRoleType
DTSRoleType
, if one exists;
otherwise null
.public void setParentRoleType(DTSRoleType parentRoleType)
DTSRoleType
as parent DTSRoleType
parentRoleType
- the parent DTSRoleType
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |