|
||||||||||
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.association.AssociationType
public class AssociationType
AssociationType defines a named association between concepts and/or terms. Associations are looser connections than the defining roles of Ontylog concepts. Associations fall into three categories: arbitrary, mapping, and history. Mappings are between concepts or terms in different namespaces.
Copyright: Copyright (c) 2003
Company: Apelon, Inc.
Field Summary | |
---|---|
static String |
NOT_DISPLAYABLE
Value for inverse association name that indicates the inverse association should not be displayed. |
Constructor Summary | |
---|---|
AssociationType()
|
|
AssociationType(String name,
int namespaceId,
ItemsConnected itemsConnected,
Purpose purpose,
String inverseName)
Constructs a new AssociationType with specified name,
namespace, type of items associated, and purpose: the id and code will be
generated by the server when this AssociationType is added. |
|
AssociationType(String name,
int id,
String code,
int namespaceId,
ItemsConnected itemsConnected,
Purpose purpose,
String inverseName)
Constructs a new AssociationType with specified name, ID, code, namespace, type of items associated, and purpose. |
Method Summary | |
---|---|
Object |
clone()
Clone this AssociationType object. |
boolean |
equals(Object obj)
Compares this association type to the specified object. |
String |
getInverseName()
Gets the inverse name for this association. |
ItemsConnected |
getItemsConnected()
Gets the type of items associated by this association. |
Purpose |
getPurpose()
Gets the purpose for this association. |
void |
setInverseName(String inverseName)
Sets the inverse name of the association. |
void |
setItemsConnected(ItemsConnected newItemsConnected)
Sets the type of items associated by the association. |
void |
setPurpose(Purpose newPurpose)
Sets the purpose of the association. |
Methods inherited from class com.apelon.dts.client.common.DTSObject |
---|
getCode, getId, getName, getNamespaceId, hashCode, setCode, setId, setName, setNamespaceId, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static String NOT_DISPLAYABLE
Constructor Detail |
---|
public AssociationType()
public AssociationType(String name, int id, String code, int namespaceId, ItemsConnected itemsConnected, Purpose purpose, String inverseName)
name
- the association type's nameid
- the association type's IDcode
- the association type's codenamespaceId
- the association type's namespace IDitemsConnected
- ItemsConnected indicating type of
items associated: purpose
- the association type's purpose:
arbitrary, mapping, or historyinverseName
- the name used for the inverse associationpublic AssociationType(String name, int namespaceId, ItemsConnected itemsConnected, Purpose purpose, String inverseName)
AssociationType
with specified name,
namespace, type of items associated, and purpose: the id and code will be
generated by the server when this AssociationType
is added.
name
- the association type's namenamespaceId
- the association type's namespace IDitemsConnected
- ItemsConnected indicating type of
items associated: purpose
- the association type's purpose:
arbitrary, mapping, or historyinverseName
- the name used for the inverse associationMethod Detail |
---|
public Object clone() throws CloneNotSupportedException
AssociationType
object.
clone
in class Object
CloneNotSupportedException
- if unable to create a clonepublic void setItemsConnected(ItemsConnected newItemsConnected)
newItemsConnected
- the type of items associated by the
associationpublic ItemsConnected getItemsConnected()
ItemsConnected
public void setPurpose(Purpose newPurpose)
newPurpose
- the purpose of the association: arbitrary,
mapping,public Purpose getPurpose()
public void setInverseName(String inverseName)
inverseName
- the name of the inverse of the associationpublic String getInverseName()
public boolean equals(Object obj)
equals
in class DTSObject
obj
- object to compare with
true
if the object is equal to this
AssociationType
; false
otherwise.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |