com.apelon.dts.client.attribute
Class DTSQualifier

java.lang.Object
  extended by com.apelon.dts.client.attribute.DTSQualifier
All Implemented Interfaces:
DTSAttribute

public class DTSQualifier
extends Object
implements DTSAttribute

Qualifiers of a defined QualifierType have a value and are attached to a ConceptAssociation, TermAssociation, or concept or term property DTSProperty. 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
DTSQualifier(QualifierType qualifierType, String value)
          Constructor
DTSQualifier(QualifierType qualifierType, String value, boolean localAddition)
          Constructor
 
Method Summary
 boolean equals(Object obj)
          Compares this qualifier to the specified object.
 String getName()
          Gets the name of the DTSQualifier.
 QualifierType getQualifierType()
          Gets the QualifierType of the DTSQualifier.
 String getValue()
          Gets the value of the DTSQualifier.
 int hashCode()
          Returns a hash code for this DTSQualifier.
 boolean isLocalAddition()
          Indicates if this qualifier is a local addition, i.e.
 void setLocalAddition(boolean localAddition)
          Sets the local addition indicator.
 void setQualifierType(QualifierType newQualifierType)
          Sets the QualifierType of the DTSQualifier.
 void setValue(String newValue)
          Sets the value of the DTSQualifier.
 String toString()
          Returns description of DTSQualifier
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DTSQualifier

public DTSQualifier(QualifierType qualifierType,
                    String value)
Constructor

Parameters:
qualifierType - qualifier type
value - qualifier value

DTSQualifier

public DTSQualifier(QualifierType qualifierType,
                    String value,
                    boolean localAddition)
Constructor

Parameters:
qualifierType - qualifier type
value - qualifier value
localAddition - indicator whether this is a local addition to subscription content
Method Detail

getQualifierType

public QualifierType getQualifierType()
Gets the QualifierType of the DTSQualifier.

Returns:
the QualifierType of the DTSQualifier.

setQualifierType

public void setQualifierType(QualifierType newQualifierType)
Sets the QualifierType of the DTSQualifier.

Parameters:
newQualifierType - the new QualifierType of the DTSQualifier

getName

public String getName()
Gets the name of the DTSQualifier.

Specified by:
getName in interface DTSAttribute
Returns:
the name of the DTSQualifier.

getValue

public String getValue()
Gets the value of the DTSQualifier.

Specified by:
getValue in interface DTSAttribute
Returns:
the value of the DTSQualifier.

setValue

public void setValue(String newValue)
Sets the value of the DTSQualifier.

Parameters:
newValue - the new value of the DTSQualifier

isLocalAddition

public boolean isLocalAddition()
Indicates if this qualifier is a local addition, i.e. the qualifier type is defined in a local namespace, but the concept or term to which the qualified property or association is attached is in a subscription namespace.

Returns:
true if this qualifier is a local addition to a subscription concept or term; false if not.

setLocalAddition

public void setLocalAddition(boolean localAddition)
Sets the local addition indicator.

Parameters:
localAddition - true if this qualifier is a local addition to a subscription concept or term; false if not.

equals

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

Overrides:
equals in class Object
Parameters:
obj - the object to compare this DTSQualifier against.
Returns:
true if the object is equal to the DTSQualifier; false otherwise.

hashCode

public int hashCode()
Returns a hash code for this DTSQualifier.

Overrides:
hashCode in class Object
Returns:
a hash code value for this object.

toString

public String toString()
Returns description of DTSQualifier

Overrides:
toString in class Object
Returns:
description


Copyright © 2011. All Rights Reserved.