|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.apelon.dts.client.term.TermAttributeSetDescriptor
public class TermAttributeSetDescriptor
TermAttributeSetDescriptor
is a description of the set of
term attributes that should be retrieved by a given operation. A term
attribute is either a DTSProperty
or
TermAssociation
. Attributes are
chosen by their particular type:
DTSPropertyType
or AssociationType
.
A typical use of a TermAttributeSetDescriptor by an application program would be to specify the set of term attributes to be retrieved for the application under different circumstances. A fuller or smaller set of attributes may be desired in different cases.
Copyright: Copyright (c) 2007
Company: Apelon, Inc.
Field Summary | |
---|---|
static TermAttributeSetDescriptor |
ALL_ATTRIBUTES
ALL_ATTRIBUTES is a special TermAttributeSetDescriptor that will cause all attributes of a term to be fetched. |
static int |
DEFAULT_LIMIT
Default limit on number of attributes returned of each type. |
static TermAttributeSetDescriptor |
NO_ATTRIBUTES
NO_ATTRIBUTES is a special TermAttributeSetDescriptor that will cause no attributes of a term to be fetched. |
Constructor Summary | |
---|---|
TermAttributeSetDescriptor(String name)
Constructs a TermAttributeSetDescriptor with the given name and no attributes. |
|
TermAttributeSetDescriptor(String name,
int attributesLimit)
Constructs a TermAttributeSetDescriptor with the given name and attribute results limit, but no attributes. |
Method Summary | |
---|---|
boolean |
addInverseTermAssociationType(AssociationType invTermAssocType)
Adds an inverse term association type to the set of association types that will be retrieved by any operation that uses this TermAttributeSetDescriptor . |
boolean |
addPropertyType(DTSPropertyType propertyType)
Adds a property type to the set of property types that will be retrieved by any operation that uses this TermAttributeSetDescriptor. |
boolean |
addSynonymType(AssociationType synonymType)
Adds a synonym type to the set of synonym types that will be retrieved by any operation that uses this TermAttributeSetDescriptor . |
boolean |
addTermAssociationType(AssociationType termAssocType)
Adds a term association type to the set of association types that will be retrieved by any operation that uses this TermAttributeSetDescriptor . |
boolean |
containsInverseTermAssociationType(AssociationType invTermAssocType)
Tests if this TermAttributeSetDescriptor contains the inverse
term AssociationType argument. |
boolean |
containsPropertyType(DTSPropertyType propertyType)
Tests if this TermAttributeSetDescriptor contains the DTSPropertyType argument. |
boolean |
containsSynonymType(AssociationType synonymType)
Tests if this TermAttributeSetDescriptor contains the synonym
AssociationType argument. |
boolean |
containsTermAssociationType(AssociationType termAssocType)
Tests if this TermAttributeSetDescriptor contains the term
AssociationType argument. |
boolean |
getAllInverseTermAssociationTypes()
Retrieve whether all inverse term association types are included in this TermAttributeSetDescriptor. |
boolean |
getAllPropertyTypes()
Retrieve whether all property types are included in this TermAttributeSetDescriptor. |
boolean |
getAllSynonymTypes()
Retrieve whether all synonym types are included in this TermAttributeSetDescriptor. |
boolean |
getAllTermAssociationTypes()
Retrieve whether all term association types are included in this TermAttributeSetDescriptor. |
int |
getAttributesLimit()
Retrieve limit on number of attributes returned of each type. |
AssociationType[] |
getInverseTermAssociationTypes()
Gets the set of inverse term association types that will be retrieved by any operation that uses this TermAttributeSetDescriptor . |
String |
getName()
Gets the name of the TermAttributeSetDescriptor . |
DTSPropertyType[] |
getPropertyTypes()
Gets the set of property types that will be retrieved by any operation that uses this TermAttributeSetDescriptor. |
AssociationType[] |
getSynonymTypes()
Gets the set of synonym types that will be retrieved by any operation that uses this TermAttributeSetDescriptor . |
AssociationType[] |
getTermAssociationTypes()
Gets the set of term association types that will be retrieved by any operation that uses this TermAttributeSetDescriptor . |
boolean |
removeInverseTermAssociationType(AssociationType invTermAssocType)
Removes the inverse term association type from the TermAttributeSetDescriptor . |
boolean |
removePropertyType(DTSPropertyType propertyType)
Removes the property type from the TermAttributeSetDescriptor. |
boolean |
removeSynonymType(AssociationType synonymType)
Removes the synonym type from the TermAttributeSetDescriptor . |
boolean |
removeTermAssociationType(AssociationType termAssocType)
Removes the association type from the TermAttributeSetDescriptor . |
void |
setAllInverseTermAssociationTypes(boolean allInverseTermAssociationTypes)
Set whether all inverse term association types are included in this TermAttributeSetDescriptor. |
void |
setAllPropertyTypes(boolean allPropertyTypes)
Set whether all property types are included in this TermAttributeSetDescriptor. |
void |
setAllSynonymTypes(boolean allSynonymTypes)
Set whether all synonym types are included in this TermAttributeSetDescriptor. |
void |
setAllTermAssociationTypes(boolean allTermAssociationTypes)
Set whether all term association types are included in this TermAttributeSetDescriptor. |
void |
setAttributesLimit(int limit)
Set the limit on number of attributes returned of each type. |
void |
setInverseTermAssociationTypes(AssociationType[] invTermAssocTypes)
Sets the inverse term association types to be retrieved by any operation that uses this TermAttributeSetDescriptor . |
void |
setName(String name)
Sets the name of the TermAttributeSetDescriptor . |
void |
setPropertyTypes(DTSPropertyType[] propertyTypes)
Sets the set of property types that will be retrieved by any operation that uses this TermAttributeSetDescriptor. |
void |
setSynonymTypes(AssociationType[] synonymTypes)
Sets the synonym types to be retrieved by any operation that uses this TermAttributeSetDescriptor . |
void |
setTermAssociationTypes(AssociationType[] termAssocTypes)
Sets the term association types to be retrieved by any operation that uses this TermAttributeSetDescriptor . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final TermAttributeSetDescriptor ALL_ATTRIBUTES
public static final TermAttributeSetDescriptor NO_ATTRIBUTES
public static final int DEFAULT_LIMIT
Constructor Detail |
---|
public TermAttributeSetDescriptor(String name)
Sets the attribute limit to DEFAULT_LIMIT
.
name
- the name of the TermAttributeSetDescriptorpublic TermAttributeSetDescriptor(String name, int attributesLimit)
name
- the name of the TermAttributeSetDescriptorattributesLimit
- limit on the number of attributes returned of
each typeMethod Detail |
---|
public String getName()
TermAttributeSetDescriptor
.
public void setName(String name)
TermAttributeSetDescriptor
.
name
- new name of the TermAttributeSetDescriptorpublic void setPropertyTypes(DTSPropertyType[] propertyTypes)
propertyTypes
- the property types of the TermAttributeSetDescriptorpublic boolean containsPropertyType(DTSPropertyType propertyType)
propertyType
- the property type used to test if it is contained
in the TermAttributeSetDescriptor
true
if this TermAttributeSetDescriptor contains
the DTSPropertyType argument, or else false
public boolean addPropertyType(DTSPropertyType propertyType)
propertyType
- the property type which is added
false
if the property type was already in the
TermAttributeSetDescriptor, true
if the property
type was addedpublic boolean removePropertyType(DTSPropertyType propertyType)
propertyType
- the property type which is removed
true
if removed successfully; otherwise
false
public DTSPropertyType[] getPropertyTypes()
public void setAllPropertyTypes(boolean allPropertyTypes)
allPropertyTypes
- true
if all property types
are included; false
otherwise.public boolean getAllPropertyTypes()
public void setTermAssociationTypes(AssociationType[] termAssocTypes)
TermAttributeSetDescriptor
. Any existing term
association types in the TermAttributeSetDescriptor are removed.
termAssocTypes
- term association types to be retrievedpublic boolean containsTermAssociationType(AssociationType termAssocType)
TermAttributeSetDescriptor
contains the term
AssociationType argument.
termAssocType
- the term association type used to test if
it is contained in the TermAttributeSetDescriptor
true
if this TermAttributeSetDescriptor contains the
term AssociationType argument; otherwise false
public boolean addTermAssociationType(AssociationType termAssocType)
TermAttributeSetDescriptor
.
termAssocType
- the term association type which is added
false
if the association type was already in the
TermAttributeSetDescriptor; true
if the association
type was addedpublic boolean removeTermAssociationType(AssociationType termAssocType)
TermAttributeSetDescriptor
.
termAssocType
- the term association type to be removed
true
if removed successfully; otherwise
false
public AssociationType[] getTermAssociationTypes()
TermAttributeSetDescriptor
.
public void setAllTermAssociationTypes(boolean allTermAssociationTypes)
allTermAssociationTypes
- true
if all term
association types are included;
false
otherwise.public boolean getAllTermAssociationTypes()
public void setInverseTermAssociationTypes(AssociationType[] invTermAssocTypes)
TermAttributeSetDescriptor
. Any existing
inverse term association types in the TermAttributeSetDescriptor are
removed.
invTermAssocTypes
- inverse term association types to be
retrievedpublic boolean containsInverseTermAssociationType(AssociationType invTermAssocType)
TermAttributeSetDescriptor
contains the inverse
term AssociationType argument.
invTermAssocType
- the inverse term association type used to
test if it is contained in the
TermAttributeSetDescriptor
true
if this TermAttributeSetDescriptor contains
the term AssociationType argument; otherwise false
public boolean addInverseTermAssociationType(AssociationType invTermAssocType)
TermAttributeSetDescriptor
.
invTermAssocType
- the term association type which is added
false
if the association type was already in the
TermAttributeSetDescriptor; true
if the association
type was addedpublic boolean removeInverseTermAssociationType(AssociationType invTermAssocType)
TermAttributeSetDescriptor
.
invTermAssocType
- the inverse term association type to be
removed
true
if removed successfully; otherwise
false
public AssociationType[] getInverseTermAssociationTypes()
TermAttributeSetDescriptor
.
public void setAllInverseTermAssociationTypes(boolean allInverseTermAssociationTypes)
allInverseTermAssociationTypes
- true
if all
inverse term association types are included;
false
otherwise.public boolean getAllInverseTermAssociationTypes()
public void setSynonymTypes(AssociationType[] synonymTypes)
TermAttributeSetDescriptor
. Any existing synonym types in the
TermAttributeSetDescriptor are removed.
synonymTypes
- synonym types to be retrieved
IllegalArgumentException
- if the specified array is null
.public boolean containsSynonymType(AssociationType synonymType)
TermAttributeSetDescriptor
contains the synonym
AssociationType argument.
synonymType
- the synonym type used to test if it is
contained in the TermAttributeSetDescriptor
true
if this TermAttributeSetDescriptor contains the
AssociationType argument; otherwise false
public boolean addSynonymType(AssociationType synonymType)
TermAttributeSetDescriptor
.
synonymType
- the synonym type which is added
false
if the synonym type was already in the
TermAttributeSetDescriptor; true
if the synonym
type was addedpublic boolean removeSynonymType(AssociationType synonymType)
TermAttributeSetDescriptor
.
synonymType
- the synonym type which is removed
true
if removed successfully; otherwise
false
public AssociationType[] getSynonymTypes()
TermAttributeSetDescriptor
.
public void setAllSynonymTypes(boolean allSynonymTypes)
allSynonymTypes
- true
if all synonym types
are included; false
otherwise.public boolean getAllSynonymTypes()
public void setAttributesLimit(int limit)
limit
- The limit on number of attributes returned of each type.public int getAttributesLimit()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |