com.apelon.dts.client.attribute
Class Kind

java.lang.Object
  extended by com.apelon.dts.client.common.DTSObject
      extended by com.apelon.dts.client.attribute.Kind
All Implemented Interfaces:
Cloneable

public class Kind
extends DTSObject

Kind is a named object that represents a kind. Concepts in Ontylog are divided up into mutually exclusive collections according to Kinds. This makes for faster classification. Roles are mappings between kinds. Thus the kind dependencies are determined by the roles. They also provide the basis for right identities.

Copyright: Copyright (c) 2004

Company: Apelon, Inc.

Since:
DTS 3.3.0
Version:
DTS 3.3.0
Author:
Apelon, Inc.

Field Summary
static Kind NO_KIND
          This constant can be used when no Kind has yet been assigned to an Ontylog concept.
 
Constructor Summary
Kind()
          No argument constructor for internal Apelon use only.
Kind(String name, int id, String code, int namespaceId, boolean reference)
          Constructs a Kind in a Namespace with the specified name, ID, code, namespace ID and reference flag.
 
Method Summary
 boolean isReference()
          Indicates if the Kind is for reference only and not included for Ontylog classification.
 void setReference(boolean reference)
          Sets whether this Kind is for reference only, so concepts of this Kind won't be included in classification.
 
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
 

Field Detail

NO_KIND

public static Kind NO_KIND
This constant can be used when no Kind has yet been assigned to an Ontylog concept. The Namespace is unassigned in this case.

Constructor Detail

Kind

public Kind()
No argument constructor for internal Apelon use only. Do not use in DTS applications.


Kind

public Kind(String name,
            int id,
            String code,
            int namespaceId,
            boolean reference)
Constructs a Kind in a Namespace with the specified name, ID, code, namespace ID and reference flag.

Parameters:
name - Kind name
id - Kind ID
code - Kind code
namespaceId - Kind namespace's ID
reference - Kind reference
Method Detail

isReference

public boolean isReference()
Indicates if the Kind is for reference only and not included for Ontylog classification.

Returns:
true if this Kind is for reference only; false otherwise.

setReference

public void setReference(boolean reference)
Sets whether this Kind is for reference only, so concepts of this Kind won't be included in classification.

Parameters:
reference - boolean indicator of whether this Kind is for reference only.


Copyright © 2011. All Rights Reserved.