|
Components |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.entities.AttributeGroup
public class 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,
java.util.Map entityStaticProperties)
Constructs an instance of AttributeGroup. |
|
AttributeGroup(RemoteEntityInterface entity,
java.util.Map entityStaticProperties,
AttributeTypeFactoryInterface atfi)
Constructs an instance of AttributeGroup. |
|
AttributeGroup(RemoteEntityInterface entity,
java.util.Map entityStaticProperties,
AttributeTypeFactoryInterface atfi,
java.util.Map supplementalProperties)
Constructs an instance of AttributeGroup. |
|
AttributeGroup(RemoteEntityInterface entity,
java.util.Map entityStaticProperties,
java.util.Map supplementalProperties)
Constructs an instance of AttributeGroup. |
|
AttributeGroup(java.lang.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(java.lang.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(java.lang.String attributeName,
boolean recursive)
Return the AttributeDescriptor corresponding to attributeName. |
java.lang.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(java.lang.String groupName)
Return the subgroup corresponding to groupName. |
java.lang.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(java.lang.String attributeName,
boolean recursive)
Remove an AttributeDescriptor from this AttributeGroup. |
java.lang.String[] |
removeAttributeDescriptors(java.lang.String[] attributeNames,
boolean recursive)
Remove all the AttributeDescriptors included in the input array, attributeNames, from this AttributeGroup. |
AttributeDescriptorInterface[] |
removeAttributeGroup(java.lang.String groupName)
Remove the subgroup corresponding to groupName. |
AttributeDescriptorInterface[] |
removeAttributeGroups(java.lang.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 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(java.lang.String name)
name
- name associated with the AttributeGrouppublic AttributeGroup(RemoteEntityInterface entity)
entity
- instance of RemoteEntityInterfacepublic AttributeGroup(RemoteEntityInterface entity, java.util.Map entityStaticProperties, AttributeTypeFactoryInterface atfi)
entity
- instance of RemoteEntityInterfaceentityStaticProperties
- name/value pair (attribute name/attribute value)atfi
- instance of AttributeTypeFactoryInterfacepublic AttributeGroup(RemoteEntityInterface entity, java.util.Map entityStaticProperties, AttributeTypeFactoryInterface atfi, java.util.Map supplementalProperties)
entity
- instance of RemoteEntityInterfaceentityStaticProperties
- name/value pair (attribute name/attribute value)atfi
- instance of AttributeTypeFactoryInterfacepublic AttributeGroup(RemoteEntityInterface entity, java.util.Map entityStaticProperties)
entity
- instance of RemoteEntityInterfaceentityStaticProperties
- name/value pair (attribute name/attribute value)public AttributeGroup(RemoteEntityInterface entity, java.util.Map entityStaticProperties, java.util.Map supplementalProperties)
entity
- instance of RemoteEntityInterfaceentityStaticProperties
- name/value pair (attribute name/attribute value)Method Detail |
---|
public void addAttributeDescriptor(AttributeDescriptorInterface attribute, int index)
AttributeGroupInterface
addAttributeDescriptor
in interface AttributeGroupInterface
attribute
- 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 AttributeGroupInterface
attribute
- 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.
java.lang.IllegalArgumentException
- if the AttributeDescriptor already exists and the replace
parameter is false
java.lang.IndexOutOfBoundsException
- if the index is invalidpublic void addAttributeDescriptors(AttributeDescriptorInterface[] newAttributes)
addAttributeDescriptors
in interface AttributeGroupInterface
newAttributes
- the array of AttributeDescriptors to add to the AttributeGroup.public void addAttributeDescriptors(AttributeDescriptorInterface[] newAttributes, boolean replace)
addAttributeDescriptors
in interface AttributeGroupInterface
newAttributes
- 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.
java.lang.IllegalArgumentException
- if any of the AttributeDescriptors already exists and the replace
parameter is falsepublic void addAttributeGroup(AttributeGroupInterface group, int index)
AttributeGroupInterface
addAttributeGroup
in interface AttributeGroupInterface
group
- 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 AttributeGroupInterface
groups
- 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.
java.lang.IllegalArgumentException
- if the group already exists and the replace
parameter is falsepublic void addAttributeGroups(AttributeGroupInterface[] groups)
AttributeGroupInterface
addAttributeGroups
in interface AttributeGroupInterface
groups
- an array of new AttributeGroups to addAttributeGroupInterface.addAttributeGroups(AttributeGroupInterface[], boolean replace)
public void addAttributeGroups(AttributeGroupInterface[] groups, boolean replace)
AttributeGroupInterface
addAttributeGroups
in interface AttributeGroupInterface
groups
- 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.public boolean containsAttributeDescriptorNamed(java.lang.String attributeName, boolean recursive)
AttributeGroupInterface
containsAttributeDescriptorNamed
in interface AttributeGroupInterface
attributeName
- the name of the attributerecursive
- if true, search
the subgroups of this AttributeGroup
public int count(boolean recursive)
AttributeGroupInterface
count
in interface AttributeGroupInterface
recursive
- if true, count the
AttributeDescriptors from any subgroups of this AttributeGroup
public AttributeDescriptorInterface getAttributeDescriptor(java.lang.String attributeName, boolean recursive)
AttributeGroupInterface
getAttributeDescriptor
in interface AttributeGroupInterface
attributeName
- the name of the AttributeDescriptorrecursive
- If true, will search all
subgroups for the AttributeDescriptor
public java.lang.String[] getAttributeDescriptorNames(boolean recursive)
AttributeGroupInterface
getAttributeDescriptorNames
in interface AttributeGroupInterface
recursive
- 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)
AttributeGroupInterface
getAttributeDescriptors
in interface AttributeGroupInterface
recursive
- 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(java.lang.String groupName)
AttributeGroupInterface
getAttributeGroup
in interface AttributeGroupInterface
groupName
- the name of the AttributeGroup
public java.lang.String[] getAttributeGroupNames()
AttributeGroupInterface
getAttributeGroupNames
in interface AttributeGroupInterface
public AttributeGroupInterface[] getAttributeGroups()
AttributeGroupInterface
getAttributeGroups
in interface AttributeGroupInterface
public boolean isExpert()
AttributeGroupInterface
isExpert
in interface AttributeGroupInterface
AttributeGroupInterface.setExpert(boolean expert)
public boolean isModifiable()
AttributeGroupInterface
isModifiable
in interface AttributeGroupInterface
AttributeGroupInterface.setModifiable(boolean modifiable)
public boolean isVisible()
AttributeGroupInterface
isVisible
in interface AttributeGroupInterface
AttributeGroupInterface.setVisible(boolean visible)
public boolean removeAttributeDescriptor(java.lang.String attributeName, boolean recursive)
AttributeGroupInterface
removeAttributeDescriptor
in interface AttributeGroupInterface
attributeName
- name of the AttributeDescriptorrecursive
- if true, try to remove the AttributeDescriptor
from any subgroups if the AttributeDescriptor is not found in
this AttributeGroup
public java.lang.String[] removeAttributeDescriptors(java.lang.String[] attributeNames, boolean recursive)
AttributeGroupInterface
removeAttributeDescriptors
in interface AttributeGroupInterface
attributeNames
- an array of AttributeDescriptor names to remove from the
group (and its subgroups, if recursive is true)recursive
- if true, any AttributeDescriptors listed in
this set are removed from the nested subgroups
public AttributeDescriptorInterface[] removeAttributeGroup(java.lang.String groupName)
AttributeGroupInterface
removeAttributeGroup
in interface AttributeGroupInterface
groupName
- the name of the AttributeGroup to remove
public AttributeDescriptorInterface[] removeAttributeGroups(java.lang.String[] groupNames)
AttributeGroupInterface
removeAttributeGroups
in interface AttributeGroupInterface
groupNames
- an array of AttributeGroup names to remove from this AttributeGroup
AttributeGroupInterface.removeAttributeGroup(String)
public void setAttributeDescriptor(AttributeDescriptorInterface attribute) throws java.lang.IllegalArgumentException
AttributeGroupInterface
setAttributeDescriptor
in interface AttributeGroupInterface
attribute
- the AttributeDescriptor to replace in the AttributeGroup.
java.lang.IllegalArgumentException
- if the AttributeDescriptor already existspublic void setAttributeDescriptors(AttributeDescriptorInterface[] attributes) throws java.lang.IllegalArgumentException
AttributeGroupInterface
setAttributeDescriptors
in interface AttributeGroupInterface
attributes
- the array of AttributeDescriptors to replace
java.lang.IllegalArgumentException
- if any of the AttributeDescriptors already existpublic void setExpert(boolean expert)
AttributeGroupInterface
setExpert
in interface AttributeGroupInterface
expert
- 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)
AttributeGroupInterface
setModifiable
in interface AttributeGroupInterface
modifiable
- 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)
AttributeGroupInterface
setVisible
in interface AttributeGroupInterface
visible
- 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: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |