|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.apelon.dts.client.attribute.DTSProperty
public class DTSProperty
A property is a piece of user-defined, external information
that can be associated with a DTSConcept,
OntylogConcept, or
Term. A property can
define anything whatsoever (documentation strings, numeric codes, etc.) and
has no bearing on Ontylog classification. In the event it is necessary to
store auxilary information for a concept or term, this can be accomplished by
associating a DTSProperty (of a specific DTSPropertyType),
then defining the appropriate property value.
Copyright: Copyright (c) 2003
Company: Apelon, Inc.
| Constructor Summary | |
|---|---|
DTSProperty()
|
|
DTSProperty(DTSPropertyType propType,
String value)
Constructor |
|
DTSProperty(DTSPropertyType propType,
String value,
boolean localAddition)
Constructor |
|
| Method Summary | |
|---|---|
boolean |
addQualifier(DTSQualifier qualifier)
Adds the specified element as qualifier for this property. |
boolean |
containsQualifier(DTSQualifier qualifier)
Tests if this property already has the specified qualifier. |
boolean |
deleteQualifier(DTSQualifier qualifier)
Deletes the specified element as qualifier for this property. |
boolean |
equals(Object obj)
Compares this DTSProperty to the specified object. |
DTSQualifier[] |
getFetchedQualifiers()
Returns array of qualifiers for this property. |
long |
getInternalId()
Returns internal id of the property. |
MatchItemType |
getMatchItemType()
Gets the match item type, i.e. |
String |
getMatchString()
Gets the string that was matched. |
String |
getName()
Gets the name of the DTSProperty. |
DTSPropertyType |
getPropertyType()
Gets the DTSPropertyType of the DTSProperty. |
String |
getValue()
Gets the value of the DTSProperty. |
int |
hashCode()
Returns a hash code for this DTSProperty. |
boolean |
isLocalAddition()
Indicates if this property is a local addition, i.e. |
void |
setInternalId(long internalId)
Sets internal id of the property. |
void |
setLocalAddition(boolean localAddition)
Sets the local addition indicator. |
void |
setPropertyType(DTSPropertyType newPropertyType)
Sets the DTSPropertyType of the DTSProperty. |
void |
setValue(String newValue)
Sets the value of the DTSProperty. |
String |
toString()
Returns description of property |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DTSProperty()
public DTSProperty(DTSPropertyType propType,
String value)
propType - property typevalue - property value
public DTSProperty(DTSPropertyType propType,
String value,
boolean localAddition)
propType - property typevalue - property valuelocalAddition - indicator whether this is a local addition to
subscription content| Method Detail |
|---|
public DTSPropertyType getPropertyType()
DTSPropertyType of the DTSProperty.
public void setPropertyType(DTSPropertyType newPropertyType)
DTSPropertyType of the DTSProperty.
newPropertyType - new DTSPropertyType of the DTSPropertypublic String getName()
getName in interface DTSAttributepublic String getValue()
getValue in interface DTSAttributepublic void setValue(String newValue)
newValue - the new value of the DTSPropertypublic boolean isLocalAddition()
true if this property is a local addition to a
subscription concept or term; false if not.public void setLocalAddition(boolean localAddition)
localAddition - true if this property is a local
addition to a subscription concept or term;
false if not.public long getInternalId()
public void setInternalId(long internalId)
internalId - Internal Idpublic DTSQualifier[] getFetchedQualifiers()
getFetchedQualifiers in interface QualifiedObjectDTSQualifiers.public boolean addQualifier(DTSQualifier qualifier)
addQualifier in interface QualifiedObjectqualifier - DTSQualifier
false if the property already had the qualifier;
true if the qualifier was addedpublic boolean containsQualifier(DTSQualifier qualifier)
containsQualifier in interface QualifiedObjectqualifier - the DTSQualifier to test
true if this property contains the qualifier
argument; otherwise falsepublic boolean deleteQualifier(DTSQualifier qualifier)
deleteQualifier in interface QualifiedObjectqualifier - DTSQualifier to be removed
true if removed successfully; otherwise
falsepublic String getMatchString()
getMatchString in interface MatchItempublic MatchItemType getMatchItemType()
getMatchItemType in interface MatchItempublic boolean equals(Object obj)
DTSProperty to the specified object.
equals in class Objectobj - the object to compare this String
against.
true if the object is equal to this DTSProperty;
false otherwise.public int hashCode()
DTSProperty.
hashCode in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||