|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
java.lang.Object
|
+--com.sas.entities.BaseAttributeDescriptor
|
+--com.sas.entities.AttributeGroup
An implementation of AttributeGroupInterface.
| Field Summary | |
static int |
LAST_POSITION
Indicates that the AttributeDescriptor/AttributeGroup to be added should be added at the end of the list |
| Constructor Summary | |
AttributeGroup()
Default constructor |
|
AttributeGroup(RemoteEntityInterface entity)
Constructs an instance of AttributeGroup. |
|
AttributeGroup(RemoteEntityInterface entity,
Map entityStaticProperties)
Constructs an instance of AttributeGroup. |
|
AttributeGroup(RemoteEntityInterface entity,
Map entityStaticProperties,
AttributeTypeFactoryInterface atfi)
Constructs an instance of AttributeGroup. |
|
AttributeGroup(RemoteEntityInterface entity,
Map entityStaticProperties,
AttributeTypeFactoryInterface atfi,
Map supplementalProperties)
Constructs an instance of AttributeGroup. |
|
AttributeGroup(RemoteEntityInterface entity,
Map entityStaticProperties,
Map supplementalProperties)
Constructs an instance of AttributeGroup. |
|
AttributeGroup(String name)
Constructs an instance of AttributeGroup with the given name. |
|
| Method Summary | |
void |
addAttributeDescriptor(AttributeDescriptorInterface attribute,
int index)
Add an AttributeDescriptor to this AttributeGroup. |
void |
addAttributeDescriptor(AttributeDescriptorInterface attribute,
int index,
boolean replace)
Add an AttributeDescriptor to this AttributeGroup. |
void |
addAttributeDescriptors(AttributeDescriptorInterface[] newAttributes)
Add a set of AttributeDescriptors to this AttributeGroup. |
void |
addAttributeDescriptors(AttributeDescriptorInterface[] newAttributes,
boolean replace)
Add a set of AttributeDescriptors to this AttributeGroup. |
void |
addAttributeGroup(AttributeGroupInterface group,
int index)
Add a subgroup to this AttributeGroup. |
void |
addAttributeGroup(AttributeGroupInterface group,
int index,
boolean replace)
Add subgroups to this AttributeGroup. |
void |
addAttributeGroups(AttributeGroupInterface[] groups)
Add subgroups to this AttributeGroup. |
void |
addAttributeGroups(AttributeGroupInterface[] groups,
boolean replace)
Add subgroups to this AttributeGroup. |
boolean |
containsAttributeDescriptorNamed(String attributeName,
boolean recursive)
Determine if this AttributeGroup contains a value with the name attributeName. |
int |
count(boolean recursive)
Return the number of AttributeDescriptors in this AttributeGroup. |
AttributeDescriptorInterface |
getAttributeDescriptor(String attributeName,
boolean recursive)
Return the AttributeDescriptor corresponding to attributeName. |
String[] |
getAttributeDescriptorNames(boolean recursive)
Return a list of AttributeDescriptor names for AttributeDescriptors organized into this AttributeGroup. |
AttributeDescriptorInterface[] |
getAttributeDescriptors(boolean recursive)
Returns an array of AttributeDescriptors which are in this AttributeGroup. |
AttributeGroupInterface |
getAttributeGroup(String groupName)
Return the subgroup corresponding to groupName. |
String[] |
getAttributeGroupNames()
Returns an array of the names of the subgroups. |
AttributeGroupInterface[] |
getAttributeGroups()
Returns an array of subgroups nested within this AttributeGroup. |
boolean |
isExpert()
Returns true if the AttributeGroup is classified as expert. |
boolean |
isModifiable()
Returns true if the AttributeGroup is modifiable. |
boolean |
isVisible()
Returns true if the AttributeGroup is visible. |
boolean |
removeAttributeDescriptor(String attributeName,
boolean recursive)
Remove an AttributeDescriptor from this AttributeGroup. |
String[] |
removeAttributeDescriptors(String[] attributeNames,
boolean recursive)
Remove all the AttributeDescriptors included in the input array, attributeNames, from this AttributeGroup. |
AttributeDescriptorInterface[] |
removeAttributeGroup(String groupName)
Remove the subgroup corresponding to groupName. |
AttributeDescriptorInterface[] |
removeAttributeGroups(String[] groupNames)
Remove the subgroups corresponding to the group names in the input array, groupsNames. |
void |
setAttributeDescriptor(AttributeDescriptorInterface attribute)
Replace an AttributeDescriptor in this AttributeGroup. |
void |
setAttributeDescriptors(AttributeDescriptorInterface[] attributes)
Replace a set of AttributeDescriptors in this AttributeGroup. |
void |
setExpert(boolean expert)
Sets the expert state. |
void |
setModifiable(boolean modifiable)
Sets whether the AttributeGroup is modifiable. |
void |
setVisible(boolean visible)
Sets whether the AttributeGroup should be visible. |
| Methods inherited from class com.sas.entities.BaseAttributeDescriptor |
getAttributeCustomizerContexts, getAttributeCustomizers, getConfigurationXML, getCustomizer, getDescription, getDescriptions, getLabel, getLabels, getLargeIconURL, getLargeIconURLs, getName, getSmallIconURL, getSmallIconURLs, setConfigurationXML, setCustomizer, setDescription, setLabel, setLargeIconURL, setName, setSmallIconURL |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.sas.entities.BaseAttributeDescriptorInterface |
getAttributeCustomizerContexts, getAttributeCustomizers, getConfigurationXML, getCustomizer, getDescription, getDescriptions, getLabel, getLabels, getLargeIconURL, getLargeIconURLs, getName, getSmallIconURL, getSmallIconURLs, setConfigurationXML, setCustomizer, setDescription, setLabel, setLargeIconURL, setName, setSmallIconURL |
| Field Detail |
public static final int LAST_POSITION
| Constructor Detail |
public AttributeGroup()
public AttributeGroup(String name)
name - name associated with the AttributeGrouppublic AttributeGroup(RemoteEntityInterface entity)
entity - instance of RemoteEntityInterface
public AttributeGroup(RemoteEntityInterface entity,
Map entityStaticProperties,
AttributeTypeFactoryInterface atfi)
entity - instance of RemoteEntityInterfaceentityStaticProperties - name/value pair (attribute name/attribute value)atfi - instance of AttributeTypeFactoryInterface
public AttributeGroup(RemoteEntityInterface entity,
Map entityStaticProperties,
AttributeTypeFactoryInterface atfi,
Map supplementalProperties)
entity - instance of RemoteEntityInterfaceentityStaticProperties - name/value pair (attribute name/attribute value)atfi - instance of AttributeTypeFactoryInterface
public AttributeGroup(RemoteEntityInterface entity,
Map entityStaticProperties)
entity - instance of RemoteEntityInterfaceentityStaticProperties - name/value pair (attribute name/attribute value)
public AttributeGroup(RemoteEntityInterface entity,
Map entityStaticProperties,
Map supplementalProperties)
entity - instance of RemoteEntityInterfaceentityStaticProperties - name/value pair (attribute name/attribute value)| Method Detail |
public void addAttributeDescriptor(AttributeDescriptorInterface attribute,
int index)
AttributeGroupInterfaceaddAttributeDescriptor in interface AttributeGroupInterfacecom.sas.entities.AttributeGroupInterfaceattribute - the AttributeDescriptor to add to the AttributeGroupindex - position to add the AttributeDescriptor (index of -1 indicates add to the end)AttributeGroupInterface.addAttributeDescriptor(AttributeDescriptorInterface attribute, int index, boolean replace)
public void addAttributeDescriptor(AttributeDescriptorInterface attribute,
int index,
boolean replace)
addAttributeDescriptor in interface AttributeGroupInterfaceattribute - the AttributeDescriptor to add to the AttributeGroupindex - position to add the AttributeDescriptor (index of -1 indicates add to the end)replace - indicates whether to replace an AttributeDescriptor if a duplicate name is
detected. The default value is true. If set to false, this method throws an
IllegalArgumentException if a duplicate name is detected.IllegalArgumentException - if the AttributeDescriptor already exists and the replace
parameter is falseIndexOutOfBoundsException - if the index is invalidpublic void addAttributeDescriptors(AttributeDescriptorInterface[] newAttributes)
addAttributeDescriptors in interface AttributeGroupInterfacenewAttributes - the array of AttributeDescriptors to add to the AttributeGroup.
public void addAttributeDescriptors(AttributeDescriptorInterface[] newAttributes,
boolean replace)
addAttributeDescriptors in interface AttributeGroupInterfacenewAttributes - the array of AttributeDescriptors to add to the AttributeGroup.replace - indicates whether to replace an AttributeDescriptor if a duplicate name is
detected. The default value is true. If set to false, this method throws an
IllegalArgumentException if a duplicate name is detected.IllegalArgumentException - if any of the AttributeDescriptors already exists and the replace
parameter is false
public void addAttributeGroup(AttributeGroupInterface group,
int index)
AttributeGroupInterfaceaddAttributeGroup in interface AttributeGroupInterfacecom.sas.entities.AttributeGroupInterfacegroup - a new AttributeGroup to addindex - position to add the AttributeGroup (index of -1 indicates add to the end)AttributeGroupInterface.addAttributeGroup(AttributeGroupInterface group, int index, boolean replace)
public void addAttributeGroup(AttributeGroupInterface group,
int index,
boolean replace)
addAttributeGroup in interface AttributeGroupInterfacegroups - an array of new AttributeGroups to addreplace - indicates whether to replace a subgroup if a duplicate name is
detected. The default value is true. If set to false, this method throws an
IllegalArgumentException if a duplicate name is detected.IllegalArgumentException - if the group already exists and the replace
parameter is falsepublic void addAttributeGroups(AttributeGroupInterface[] groups)
AttributeGroupInterfaceaddAttributeGroups in interface AttributeGroupInterfacecom.sas.entities.AttributeGroupInterfacegroups - an array of new AttributeGroups to addAttributeGroupInterface.addAttributeGroups(AttributeGroupInterface[], boolean replace)
public void addAttributeGroups(AttributeGroupInterface[] groups,
boolean replace)
AttributeGroupInterfaceaddAttributeGroups in interface AttributeGroupInterfacecom.sas.entities.AttributeGroupInterfacegroups - an array of new AttributeGroups to addreplace - indicates whether to replace a subgroup if a duplicate name is
detected. If set to false, this method throws an
IllegalArgumentException if a duplicate name is detected.IllegalArgumentException - if the group already exists and the replace
parameter is false
public boolean containsAttributeDescriptorNamed(String attributeName,
boolean recursive)
AttributeGroupInterfacecontainsAttributeDescriptorNamed in interface AttributeGroupInterfacecom.sas.entities.AttributeGroupInterfaceattributeName - the name of the attributerecursive - if true, search
the subgroups of this AttributeGrouppublic int count(boolean recursive)
AttributeGroupInterfacecount in interface AttributeGroupInterfacecom.sas.entities.AttributeGroupInterfacerecursive - if true, count the
AttributeDescriptors from any subgroups of this AttributeGroup
public AttributeDescriptorInterface getAttributeDescriptor(String attributeName,
boolean recursive)
AttributeGroupInterfacegetAttributeDescriptor in interface AttributeGroupInterfacecom.sas.entities.AttributeGroupInterfaceattributeName - the name of the AttributeDescriptorrecursive - If true, will search all
subgroups for the AttributeDescriptorpublic String[] getAttributeDescriptorNames(boolean recursive)
AttributeGroupInterfacegetAttributeDescriptorNames in interface AttributeGroupInterfacecom.sas.entities.AttributeGroupInterfacerecursive - if true, return AttributeDescriptor names from
this AttributeGroup and its subgroups.
If false, this method only returns the AttributeDescriptor names that are
in this AttributeGroup.public AttributeDescriptorInterface[] getAttributeDescriptors(boolean recursive)
AttributeGroupInterfacegetAttributeDescriptors in interface AttributeGroupInterfacecom.sas.entities.AttributeGroupInterfacerecursive - if true, return AttributeDescriptors in
this AttributeGroup and its subgroups.
If false, this method only returns the AttributeDescriptor names that are in this
AttributeGroup.public AttributeGroupInterface getAttributeGroup(String groupName)
AttributeGroupInterfacegetAttributeGroup in interface AttributeGroupInterfacecom.sas.entities.AttributeGroupInterfacegroupName - the name of the AttributeGrouppublic String[] getAttributeGroupNames()
AttributeGroupInterfacegetAttributeGroupNames in interface AttributeGroupInterfacepublic AttributeGroupInterface[] getAttributeGroups()
AttributeGroupInterfacegetAttributeGroups in interface AttributeGroupInterfacecom.sas.entities.AttributeGroupInterfacepublic boolean isExpert()
AttributeGroupInterfaceisExpert in interface AttributeGroupInterfacecom.sas.entities.AttributeGroupInterfaceAttributeGroupInterface.setExpert(boolean expert)public boolean isModifiable()
AttributeGroupInterfaceisModifiable in interface AttributeGroupInterfacecom.sas.entities.AttributeGroupInterfaceAttributeGroupInterface.setModifiable(boolean modifiable)public boolean isVisible()
AttributeGroupInterfaceisVisible in interface AttributeGroupInterfacecom.sas.entities.AttributeGroupInterfaceAttributeGroupInterface.setVisible(boolean visible)
public boolean removeAttributeDescriptor(String attributeName,
boolean recursive)
AttributeGroupInterfaceremoveAttributeDescriptor in interface AttributeGroupInterfacecom.sas.entities.AttributeGroupInterfaceattributeName - name of the AttributeDescriptorrecursive - if true, try to remove the AttributeDescriptor
from any subgroups if the AttributeDescriptor is not found in
this AttributeGroup
public String[] removeAttributeDescriptors(String[] attributeNames,
boolean recursive)
AttributeGroupInterfaceremoveAttributeDescriptors in interface AttributeGroupInterfacecom.sas.entities.AttributeGroupInterfacerecursive - if true, any AttributeDescriptors listed in
this set are removed from the nested subgroupsattributeNames - an array of AttributeDescriptor names to remove from the
group (and its subgroups, if recursive is true)public AttributeDescriptorInterface[] removeAttributeGroup(String groupName)
AttributeGroupInterfaceremoveAttributeGroup in interface AttributeGroupInterfacecom.sas.entities.AttributeGroupInterfacegroupName - the name of the AttributeGroup to removepublic AttributeDescriptorInterface[] removeAttributeGroups(String[] groupNames)
AttributeGroupInterfaceremoveAttributeGroups in interface AttributeGroupInterfacecom.sas.entities.AttributeGroupInterfacegroupNames - an array of AttributeGroup names to remove from this AttributeGroupAttributeGroupInterface.removeAttributeGroup(String)
public void setAttributeDescriptor(AttributeDescriptorInterface attribute)
throws IllegalArgumentException
AttributeGroupInterfacesetAttributeDescriptor in interface AttributeGroupInterfacecom.sas.entities.AttributeGroupInterfaceattribute - the AttributeDescriptor to replace in the AttributeGroup.IllegalArgumentException - if the AttributeDescriptor already exists
public void setAttributeDescriptors(AttributeDescriptorInterface[] attributes)
throws IllegalArgumentException
AttributeGroupInterfacesetAttributeDescriptors in interface AttributeGroupInterfacecom.sas.entities.AttributeGroupInterfaceattributes - the array of AttributeDescriptors to replaceIllegalArgumentException - if any of the AttributeDescriptors already existpublic void setExpert(boolean expert)
AttributeGroupInterfacesetExpert in interface AttributeGroupInterfacecom.sas.entities.AttributeGroupInterfaceexpert - a boolean value
If true, under normal circumstances, UI (User Interface) components will not display
this AttributeGroup and its AttributeDescriptors.AttributeGroupInterface.isExpert()public void setModifiable(boolean modifiable)
AttributeGroupInterfacesetModifiable in interface AttributeGroupInterfacecom.sas.entities.AttributeGroupInterfacemodifiable - a boolean value.
If false, UI (User Interface) components can display the AttributeGroup
and its AttributeDescriptors
but should not allow them to be modified.AttributeGroupInterface.isModifiable()public void setVisible(boolean visible)
AttributeGroupInterfacesetVisible in interface AttributeGroupInterfacecom.sas.entities.AttributeGroupInterfacevisible - a boolean value.
If false, the AttributeGroup and its AttributeDescriptors
should not be displayed in UI (User Interface) components.AttributeGroupInterface.isVisible()
|
| Components |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||