|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.apelon.dts.client.concept.ConceptAttributeSetDescriptor
public class ConceptAttributeSetDescriptor
ConceptAttributeSetDescriptor
is a description of the set of concept
attributes that should be retrieved by a given operation. A concept attribute
is either a DTSProperty
, a
DTSRole
, a
ConceptAssociation
or
Synonym
. Attributes are chosen by
their particular type: DTSPropertyType
,
DTSRoleType
, or
AssociationType
(for
concept associations and synonyms).
A typical use of a ConceptAttributeSetDescriptor by an application
program would be to specify the set of concept attributes to be
retrieved for the application under various circumstances.
One example would be to define a ConceptAttributeSetDescriptor instance
PHARMACY_ORDER_ATTRIBUTES
that specifies the set of
attributes needed to populate the application's Pharmacy order
page. Then PHARMACY_ORDER_ATTRIBUTES
would be
passed to any operation performed in support of the Pharmacy
order page to ensure that the right set of attributes (e.g.
the NDC_Number property, the DoseForm role, etc.) was retrieved.
Copyright: Copyright (c) 2007
Company: Apelon, Inc.
Field Summary | |
---|---|
static ConceptAttributeSetDescriptor |
ALL_ATTRIBUTES
ALL_ATTRIBUTES is a special ConceptAttributeSetDescriptor that will cause all attributes of a concept to be fetched (except Ontylog defined view attributes). |
static int |
DEFAULT_LIMIT
Default limit on number of attributes returned of each type. |
static ConceptAttributeSetDescriptor |
NO_ATTRIBUTES
NO_ATTRIBUTES is a special ConceptAttributeSetDescriptor that will cause no attributes of a concept to be fetched. |
Constructor Summary | |
---|---|
ConceptAttributeSetDescriptor(String name)
Constructs a ConceptAttributeSetDescriptor with the given name and no attributes. |
|
ConceptAttributeSetDescriptor(String name,
int attributesLimit)
Constructs a ConceptAttributeSetDescriptor with the given name and attribute results limit, but no attributes. |
Method Summary | |
---|---|
boolean |
addConceptAssociationType(AssociationType conceptAssocType)
Adds a concept association type to the set of association types that will be retrieved by any operation that uses this ConceptAttributeSetDescriptor . |
boolean |
addInverseConceptAssociationType(AssociationType invConceptAssocType)
Adds a concept association type to the set of association types that will be retrieved by any operation that uses this ConceptAttributeSetDescriptor . |
boolean |
addInverseRoleType(DTSRoleType invRoleType)
Adds a role type to the set of inverse role types that will be retrieved by any operation that uses this ConceptAttributeSetDescriptor. |
boolean |
addPropertyType(DTSPropertyType propType)
Adds a property type to the set of property types that will be retrieved by any operation that uses this ConceptAttributeSetDescriptor. |
boolean |
addRoleType(DTSRoleType roleType)
Adds a role type to the set of role types that will be retrieved by any operation that uses this ConceptAttributeSetDescriptor. |
boolean |
addSynonymType(AssociationType synonymType)
Adds a synonym type to the set of synonym types that will be retrieved by any operation that uses this ConceptAttributeSetDescriptor . |
static String |
asXML(ConceptAttributeSetDescriptor dtsAsd)
Gets an XML string to set attributes according to the argument ConceptAttributeSetDescriptor. |
Object |
clone()
Creates and returns a copy of this object. |
boolean |
containsConceptAssociationType(AssociationType conceptAssocType)
Tests if this ConceptAttributeSetDescriptor contains the concept
AssociationType argument. |
boolean |
containsInverseConceptAssociationType(AssociationType invConceptAssocType)
Tests if this ConceptAttributeSetDescriptor contains the concept
AssociationType argument. |
boolean |
containsInverseRoleType(DTSRoleType invRoleType)
Tests if this ConceptAttributeSetDescriptor contains the
DTSRoleType argument. |
boolean |
containsPropertyType(DTSPropertyType propType)
Tests if this ConceptAttributeSetDescriptor contains the DTSPropertyType argument. |
boolean |
containsRoleType(DTSRoleType roleType)
Tests if this ConceptAttributeSetDescriptor contains the DTSRoleType argument. |
boolean |
containsSynonymType(AssociationType synonymType)
Tests if this ConceptAttributeSetDescriptor contains the synonym
AssociationType argument. |
boolean |
getAllConceptAssociationTypes()
Retrieve whether all concept association types are included in this ConceptAttributeSetDescriptor. |
boolean |
getAllInverseConceptAssociationTypes()
Retrieve whether all inverse concept association types are included in this ConceptAttributeSetDescriptor. |
boolean |
getAllInverseRoleTypes()
Retrieve whether all inverse role types are included in this ConceptAttributeSetDescriptor. |
boolean |
getAllPropertyTypes()
Retrieve whether all property types are included in this ConceptAttributeSetDescriptor. |
boolean |
getAllRoleTypes()
Retrieve whether all role types are included in this ConceptAttributeSetDescriptor. |
boolean |
getAllSynonymTypes()
Retrieve whether all synonym types are included in this ConceptAttributeSetDescriptor. |
int |
getAttributesLimit()
Gets the limit on the number of attributes returned of each type. |
AssociationType[] |
getConceptAssociationTypes()
Gets the set of concept association types that will be retrieved by any operation that uses this ConceptAttributeSetDescriptor . |
AssociationType[] |
getInverseConceptAssociationTypes()
Gets the set of inverse concept association types that will be retrieved by any operation that uses this ConceptAttributeSetDescriptor . |
DTSRoleType[] |
getInverseRoleTypes()
Gets the set of inverse role types that will be retrieved by any operation that uses this ConceptAttributeSetDescriptor. |
String |
getName()
Gets the name of the ConceptAttributeSetDescriptor . |
DTSPropertyType[] |
getPropertyTypes()
Gets the set of property types that will be retrieved by any operation that uses this ConceptAttributeSetDescriptor. |
boolean |
getQueryHasSubs()
Tests whether or not to find out if the concept has subconcept(s). |
boolean |
getQueryHasSups()
Tests whether or not to find out if the concept has superconcept(s). |
DTSRoleType[] |
getRoleTypes()
Gets the set of role types that will be retrieved by any operation that uses this ConceptAttributeSetDescriptor. |
AssociationType[] |
getSynonymTypes()
Gets the set of synonym types that will be retrieved by any operation that uses this ConceptAttributeSetDescriptor . |
boolean |
isDefinedViewAttributes()
Tests whether defined view attributes of an Ontylog concept are to be retrieved. |
boolean |
isSubconcepts()
Tests whether subconcepts of an Ontylog concept are to be retrieved. |
boolean |
isSuperconcepts()
Tests whether superconcepts of an Ontylog concept are to be retrieved. |
boolean |
removeConceptAssociationType(AssociationType conceptAssocType)
Removes the association type from the ConceptAttributeSetDescriptor . |
boolean |
removeInverseConceptAssociationType(AssociationType invConceptAssocType)
Removes the inverse concept association type from the ConceptAttributeSetDescriptor . |
boolean |
removeInverseRoleType(DTSRoleType invRoleType)
Removes the role type from the set of inverse role types that will be retrieved by any operation that uses this ConceptAttributeSetDescriptor. |
boolean |
removePropertyType(DTSPropertyType propType)
Removes the property type from the ConceptAttributeSetDescriptor. |
boolean |
removeRoleType(DTSRoleType role)
Removes the role type from the ConceptAttributeSetDescriptor. |
boolean |
removeSynonymType(AssociationType synonymType)
Removes the synonym type from the ConceptAttributeSetDescriptor . |
void |
setAllConceptAssociationTypes(boolean allConceptAssociationTypes)
Set whether all concept association types are included in this ConceptAttributeSetDescriptor. |
void |
setAllInverseConceptAssociationTypes(boolean allInverseConceptAssociationTypes)
Set whether all inverse concept association types are included in this ConceptAttributeSetDescriptor. |
void |
setAllInverseRoleTypes(boolean allInverseRoleTypes)
Set whether all inverse role types are included in this ConceptAttributeSetDescriptor. |
void |
setAllPropertyTypes(boolean allPropertyTypes)
Set whether all property types are included in this ConceptAttributeSetDescriptor. |
void |
setAllRoleTypes(boolean allRoleTypes)
Set whether all role types are included in this ConceptAttributeSetDescriptor. |
void |
setAllSynonymTypes(boolean allSynonymTypes)
Set whether all synonym types are included in this ConceptAttributeSetDescriptor. |
void |
setAttributesLimit(int newAttributesLimit)
Sets the limit on the number of attributes returned of each type. |
void |
setConceptAssociationTypes(AssociationType[] conceptAssocTypes)
Sets the concept association types to be retrieved by any operation that uses this ConceptAttributeSetDescriptor . |
void |
setDefinedViewAttributes(boolean definedViewAttributes)
Specifies whether to retrieve defined view attributes of an Ontylog concept. |
void |
setInverseConceptAssociationTypes(AssociationType[] invConceptAssocTypes)
Sets the inverse concept association types to be retrieved by any operation that uses this ConceptAttributeSetDescriptor . |
void |
setInverseRoleTypes(DTSRoleType[] invRoleTypes)
Sets the set of inverse role types that will be retrieved by any operation that uses this ConceptAttributeSetDescriptor. |
void |
setName(String newName)
Sets the name of the ConceptAttributeSetDescriptor . |
void |
setPropertyTypes(DTSPropertyType[] propTypes)
Sets the set of property types that will be retrieved by any operation that uses this ConceptAttributeSetDescriptor. |
void |
setQueryHasSubs(boolean subs)
Sets whether or not to find out if the concept has subconcept(s). |
void |
setQueryHasSups(boolean sups)
Sets whether or not to find out if the concept has superconcept(s). |
void |
setRoleTypes(DTSRoleType[] roleTypes)
Sets the set of role types that will be retrieved by any operation that uses this ConceptAttributeSetDescriptor. |
void |
setSubconcepts(boolean subconcepts)
Specifies whether to retrieve subconcepts of an Ontylog concept. |
void |
setSuperconcepts(boolean superconcepts)
Specifies whether to retrieve superconcepts of an Ontylog concept. |
void |
setSynonymTypes(AssociationType[] synonymTypes)
Sets the synonym types to be retrieved by any operation that uses this ConceptAttributeSetDescriptor . |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final ConceptAttributeSetDescriptor ALL_ATTRIBUTES
public static final ConceptAttributeSetDescriptor NO_ATTRIBUTES
public static final int DEFAULT_LIMIT
Constructor Detail |
---|
public ConceptAttributeSetDescriptor(String name)
Sets the attribute limit to DEFAULT_LIMIT
.
name
- the name of the ConceptAttributeSetDescriptorpublic ConceptAttributeSetDescriptor(String name, int attributesLimit)
name
- the name of the ConceptAttributeSetDescriptorattributesLimit
- limit on the number of attributes returned of
each typeMethod Detail |
---|
public void setName(String newName)
ConceptAttributeSetDescriptor
.
newName
- new name of the ConceptAttributeSetDescriptorpublic String getName()
ConceptAttributeSetDescriptor
.
For example:
Pharmacy_Order_Attributes.
public void setAttributesLimit(int newAttributesLimit)
newAttributesLimit
- new attributes limit of the
ConceptAttributeSetDescriptorpublic int getAttributesLimit()
public void setPropertyTypes(DTSPropertyType[] propTypes)
propTypes
- the property types of the ConceptAttributeSetDescriptor
IllegalArgumentException
- if the specified array is null
.public boolean containsPropertyType(DTSPropertyType propType)
propType
- the property type used to test if it is contained
in the ConceptAttributeSetDescriptor
public boolean addPropertyType(DTSPropertyType propType)
propType
- the property type which is added
false
if the property type was already in the
ConceptAttributeSetDescriptor, true
if the
property type was addedpublic boolean removePropertyType(DTSPropertyType propType)
propType
- the property type which is removed
public DTSPropertyType[] getPropertyTypes()
public void setAllPropertyTypes(boolean allPropertyTypes)
allPropertyTypes
- true
if all property types
are included; false
otherwise.public boolean getAllPropertyTypes()
public void setConceptAssociationTypes(AssociationType[] conceptAssocTypes)
ConceptAttributeSetDescriptor
. Any existing concept
association types in the ConceptAttributeSetDescriptor are removed.
conceptAssocTypes
- concept association types to be retrievedpublic boolean containsConceptAssociationType(AssociationType conceptAssocType)
ConceptAttributeSetDescriptor
contains the concept
AssociationType argument.
conceptAssocType
- the concept association type used to test if
it is contained in the ConceptAttributeSetDescriptor
true
if this ConceptAttributeSetDescriptor contains the
concept AssociationType argument; otherwise false
public boolean addConceptAssociationType(AssociationType conceptAssocType)
ConceptAttributeSetDescriptor
.
conceptAssocType
- the concept association type which is added
false
if the association type was already in the
ConceptAttributeSetDescriptor; true
if the association
type was addedpublic boolean removeConceptAssociationType(AssociationType conceptAssocType)
ConceptAttributeSetDescriptor
.
conceptAssocType
- the concept association type to be removed
true
if removed successfully; otherwise
false
public AssociationType[] getConceptAssociationTypes()
ConceptAttributeSetDescriptor
.
public void setAllConceptAssociationTypes(boolean allConceptAssociationTypes)
allConceptAssociationTypes
- true
if all concept
association types are included;
false
otherwise.public boolean getAllConceptAssociationTypes()
public void setInverseConceptAssociationTypes(AssociationType[] invConceptAssocTypes)
ConceptAttributeSetDescriptor
. Any existing
inverse concept association types in the ConceptAttributeSetDescriptor are
removed.
invConceptAssocTypes
- inverse concept association types to be
retrieved
IllegalArgumentException
- if the specified array is null
.public boolean containsInverseConceptAssociationType(AssociationType invConceptAssocType)
ConceptAttributeSetDescriptor
contains the concept
AssociationType argument.
invConceptAssocType
- the concept association type used to test if
it is contained in the ConceptAttributeSetDescriptor
true
if this ConceptAttributeSetDescriptor contains the
concept AssociationType argument; otherwise false
public boolean addInverseConceptAssociationType(AssociationType invConceptAssocType)
ConceptAttributeSetDescriptor
.
invConceptAssocType
- the concept association type which is added
false
if the association type was already in the
ConceptAttributeSetDescriptor; true
if the association
type was addedpublic boolean removeInverseConceptAssociationType(AssociationType invConceptAssocType)
ConceptAttributeSetDescriptor
.
invConceptAssocType
- the inverse concept association type to be
removed
true
if removed successfully; otherwise
false
public AssociationType[] getInverseConceptAssociationTypes()
ConceptAttributeSetDescriptor
.
public void setAllInverseConceptAssociationTypes(boolean allInverseConceptAssociationTypes)
allInverseConceptAssociationTypes
- true
if all
inverse concept association types are included;
false
otherwise.public boolean getAllInverseConceptAssociationTypes()
public void setSynonymTypes(AssociationType[] synonymTypes)
ConceptAttributeSetDescriptor
. Any existing synonym types in the
ConceptAttributeSetDescriptor are removed.
synonymTypes
- synonym types to be retrieved
IllegalArgumentException
- if the specified array is null
.public boolean containsSynonymType(AssociationType synonymType)
ConceptAttributeSetDescriptor
contains the synonym
AssociationType argument.
synonymType
- the synonym type used to test if it is
contained in the ConceptAttributeSetDescriptor
true
if this ConceptAttributeSetDescriptor contains the
AssociationType argument; otherwise false
public boolean addSynonymType(AssociationType synonymType)
ConceptAttributeSetDescriptor
.
synonymType
- the synonym type which is added
false
if the synonym type was already in the
ConceptAttributeSetDescriptor; true
if the synonym
type was addedpublic boolean removeSynonymType(AssociationType synonymType)
ConceptAttributeSetDescriptor
.
synonymType
- the synonym type which is removed
true
if removed successfully; otherwise
false
public AssociationType[] getSynonymTypes()
ConceptAttributeSetDescriptor
.
public void setAllSynonymTypes(boolean allSynonymTypes)
allSynonymTypes
- true
if all synonym types
are included; false
otherwise.public boolean getAllSynonymTypes()
public void setRoleTypes(DTSRoleType[] roleTypes)
roleTypes
- an array of role types
IllegalArgumentException
- if the specified array is null
.public boolean containsRoleType(DTSRoleType roleType)
DTSRoleType
argument.
roleType
- the role type which is tested
DTSRoleType
argument, or else falsepublic boolean addRoleType(DTSRoleType roleType)
roleType
- the role type which is added
false
if the role type was already in the
ConceptAttributeSetDescriptor, true
if the role type
was addedpublic boolean removeRoleType(DTSRoleType role)
role
- the role type which is removed
true
if removed successfully, false
if removed unsuccessfullypublic DTSRoleType[] getRoleTypes()
public void setAllRoleTypes(boolean allRoleTypes)
allRoleTypes
- true
if all role types are included;
false
otherwise.public boolean getAllRoleTypes()
public void setInverseRoleTypes(DTSRoleType[] invRoleTypes)
invRoleTypes
- an array of role types
IllegalArgumentException
- if the specified array is null
.public boolean containsInverseRoleType(DTSRoleType invRoleType)
ConceptAttributeSetDescriptor
contains the
DTSRoleType
argument.
invRoleType
- the role type which is tested
true
if this ConceptAttributeSetDescriptor
contains
the DTSRoleType argument, or else false
public boolean addInverseRoleType(DTSRoleType invRoleType)
invRoleType
- the role type which is added
false
if the role type was already in the
ConceptAttributeSetDescriptor, true
if the role type
was addedpublic boolean removeInverseRoleType(DTSRoleType invRoleType)
invRoleType
- the role type which is removed
public DTSRoleType[] getInverseRoleTypes()
public void setAllInverseRoleTypes(boolean allInverseRoleTypes)
allInverseRoleTypes
- true
if all inverse role types
are included; false
otherwise.public boolean getAllInverseRoleTypes()
public boolean isSuperconcepts()
true
if superconcepts are to be retrieved;
false
otherwise.public void setSuperconcepts(boolean superconcepts)
superconcepts
- true
if superconcepts are to be
retrieved; false
otherwise.public boolean isSubconcepts()
true
if subconcepts are to be retrieved;
false
otherwise.public void setSubconcepts(boolean subconcepts)
subconcepts
- true
if subconcepts are to be
retrieved; false
otherwise.public boolean isDefinedViewAttributes()
true
if defined view attributes are to be retrieved;
false
otherwise.public void setDefinedViewAttributes(boolean definedViewAttributes)
definedViewAttributes
- true
if defined view
attributes are to be retrieved;
false
otherwise.public void setQueryHasSups(boolean sups)
sups
- true
if the query is to find out if the
concept has superconcepts; false
if not.public boolean getQueryHasSups()
true
if the query is to find out if the concept
has subconcepts; false
if not.public void setQueryHasSubs(boolean subs)
subs
- true
if the query is to find out if the
concept has subconcepts; false
if not.public boolean getQueryHasSubs()
true
if the query is to find out if the
concept has subconcepts; false
if not.public Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
- if the instance cannot be clonedpublic static String asXML(ConceptAttributeSetDescriptor dtsAsd)
dtsAsd
- the ConceptAttributeSetDescriptor that specifies
which attributes are to be set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |