com.apelon.dts.client.attribute
Class QualifierType

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

public class QualifierType
extends DTSObject
implements Cloneable

QualifierType defines a qualifier, which has a name. Qualifiers of a defined QualifierType can have a value and are attached to associations, and concept and term properties. These are intended to provide additional information about the item to which they are attached.

Copyright: Copyright (c) 2003

Company: Apelon, Inc.

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

Constructor Summary
QualifierType(String name, int namespaceId, QualifiesItemType qualifies)
          Constructs a new QualifierType of the given name, and namespace: the id and code for this type will be generated when it is added to the server.
QualifierType(String name, int id, String code, int namespaceId, QualifiesItemType qualifies)
          Constructs a new QualifierType of the given name, ID, code and namespace.
 
Method Summary
 Object clone()
          Clone this QualifierType object.
 boolean equals(Object obj)
          Compares this qualifier type to the specified object.
 QualifiesItemType getQualifies()
          Gets a QualifiesItemType indicating what the qualifier qualifies.
 void setQualifies(QualifiesItemType newQualifies)
          Sets a QualifiesItemType indicating what the qualifier qualifies.
 
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
 

Constructor Detail

QualifierType

public QualifierType(String name,
                     int id,
                     String code,
                     int namespaceId,
                     QualifiesItemType qualifies)
Constructs a new QualifierType of the given name, ID, code and namespace.

Parameters:
name - the qualifier type's name
id - the qualifier type's ID
code - the qualifier type's code
namespaceId - the ID of the qualifier type's namespace
qualifies - QualifiesItemType indicating what the qualifier qualifies: -- an association between two concepts -- an association between two terms -- a property attached to a concept -- a property attached to a term

QualifierType

public QualifierType(String name,
                     int namespaceId,
                     QualifiesItemType qualifies)
Constructs a new QualifierType of the given name, and namespace: the id and code for this type will be generated when it is added to the server.

Parameters:
name - the qualifier type's name
namespaceId - the ID of the qualifier type's namespace
qualifies - QualifiesItemType indicating what the qualifier qualifies: -- an association between two concepts -- an association between two terms -- a property attached to a concept -- a property attached to a term
Method Detail

clone

public Object clone()
             throws CloneNotSupportedException
Clone this QualifierType object.

Overrides:
clone in class Object
Returns:
a clone of this QualifierType.
Throws:
CloneNotSupportedException - if unable to create a clone

setQualifies

public void setQualifies(QualifiesItemType newQualifies)
Sets a QualifiesItemType indicating what the qualifier qualifies.

Parameters:
newQualifies - QualifiesItemType indicating the kind of association or property qualified

getQualifies

public QualifiesItemType getQualifies()
Gets a QualifiesItemType indicating what the qualifier qualifies.

Returns:
QualifiesItemType that indicates what the qualifier qualifies:
  • qualifies an association between two concepts
  • qualifies an association between two terms
  • qualifies a property attached to a concept
  • qualifies a property attached to a term

equals

public boolean equals(Object obj)
Compares this qualifier type to the specified object.

Overrides:
equals in class DTSObject
Parameters:
obj - object to compare with
Returns:
true if the object is equal to this QualifierType; false otherwise.


Copyright © 2011. All Rights Reserved.