***  This interface is subject to change.  ***

com.sas.iquery.metadata.business
Interface BusinessGroup

All Superinterfaces:
Base, BusinessModelObject, BusinessModelResource, BusinessModelResourceReferencer, java.lang.Cloneable, java.util.EventListener, com.sas.iquery.metadata.business.ExtendedAttributes, ModelItem, ModelItemWithIdentity, NamedObjectInterface, PropertyChangeListenee, java.beans.PropertyChangeListener, UsabilityInterface

public interface BusinessGroup
extends BusinessModelObject

The purpose of this object to allow the ability to group certain IQ objects outside of our normal MapFolder structure. The Type value of Group is used to hint at the usage of the Group or have a defined internal meaning for a BusinessQuery.

The meaning of the following types are:


Nested Class Summary
static class BusinessGroup.Type
           
 
Field Summary
static java.lang.String EVENT_BUSINESS_GROUP_ITEMS_CHANGED
          Indication that the data item's aggregation type that are supported are changed.
static java.lang.String EVENT_BUSINESS_GROUP_NOTES_CHANGED
          Indication that the group's note value has changed.
 
Fields inherited from interface com.sas.iquery.metadata.business.ModelItemWithIdentity
EVENT_DESCRIPTION_CHANGED, EVENT_HIDDEN_CHANGED, EVENT_ID_CHANGED, EVENT_LABEL_CHANGED
 
Fields inherited from interface com.sas.iquery.metadata.business.ModelItem
EVENT_OBJECT_PROPERTY_CHANGED
 
Fields inherited from interface com.sas.iquery.metadata.business.Base
EVENT_OBJECT_DEFINITION_CHANGED
 
Method Summary
 void clear()
          Removes all of the items from this group.
 boolean contains(BusinessModelObject businessModelObject)
          Returns an indication of whether the given business model object is contained within this group.
 boolean contains(BusinessModelObject businessModelObject, boolean recursive)
          Returns an indication of whether the given business model object is contained within this group or subgroups.
 java.util.List<BusinessGroup> getContainedGroups()
          Returns all the contained group objects within this group.
 java.util.List<BusinessModelObject> getItems()
          Returns an
 java.lang.String getNote()
          Returns the notes string for this group
 BusinessGroup.Type getType()
          Returns the BusinessGroup.Type of this group
 void setItems(java.util.List<? extends BusinessModelObject> items)
          Sets the
 void setNote(java.lang.String note)
          Sets the user notes for this group
 int size()
          Returns the number of items in this group.
 
Methods inherited from interface com.sas.iquery.metadata.business.BusinessModelObject
getBusinessModel, isContainedInBusinessModel, isIDOK, isReadOnly
 
Methods inherited from interface com.sas.iquery.metadata.business.ModelItemWithIdentity
getID, getIdentityString, getIntraModelID, isHidden, isUnresolved, setDescription, setIntraModelID, setIsHidden, setLabel
 
Methods inherited from interface com.sas.iquery.metadata.PropertyChangeListenee
addListener, getListeners, removeListener
 
Methods inherited from interface com.sas.iquery.metadata.business.UsabilityInterface
getReasonsUnusable, isUsableInQuery
 
Methods inherited from interface com.sas.iquery.metadata.business.BusinessModelResource
isUnresolved
 
Methods inherited from interface com.sas.iquery.metadata.NamedObjectInterface
getDescription, getLabel
 
Methods inherited from interface com.sas.iquery.metadata.business.BusinessModelResourceReferencer
getResources
 

Field Detail

EVENT_BUSINESS_GROUP_NOTES_CHANGED

static final java.lang.String EVENT_BUSINESS_GROUP_NOTES_CHANGED
Indication that the group's note value has changed.

See Also:
Constant Field Values

EVENT_BUSINESS_GROUP_ITEMS_CHANGED

static final java.lang.String EVENT_BUSINESS_GROUP_ITEMS_CHANGED
Indication that the data item's aggregation type that are supported are changed.

See Also:
Constant Field Values
Method Detail

getType

BusinessGroup.Type getType()
Returns the BusinessGroup.Type of this group

Returns:
the Type of this group.

getItems

@Nonnull
java.util.List<BusinessModelObject> getItems()
Returns an List containing all of the items in this group in the order they were added. If the group contains no items an empty list is returned.

Returns:
an list containing all of the items in this group.

setItems

void setItems(@Nonnull
              java.util.List<? extends BusinessModelObject> items)
Sets the List of (@code BusinessModelObject} to be grouped.

The specified list will be copied into an internal ArrayList object.


getNote

java.lang.String getNote()
Returns the notes string for this group

Returns:
String

setNote

void setNote(java.lang.String note)
Sets the user notes for this group

Parameters:
note - String.

contains

boolean contains(BusinessModelObject businessModelObject)
Returns an indication of whether the given business model object is contained within this group.

Parameters:
businessModelObject - the object to search for.
Returns:
a boolean indication of whether the given object is contained within is group.

contains

boolean contains(BusinessModelObject businessModelObject,
                 boolean recursive)
Returns an indication of whether the given business model object is contained within this group or subgroups.

Parameters:
businessModelObject - the object to search for.
recursive - if true all subgroups are included in the search.
Returns:
a boolean indication of whether the given object is contained within is group.

getContainedGroups

@Nonnull
java.util.List<BusinessGroup> getContainedGroups()
Returns all the contained group objects within this group. Otherwise an empty list.

Returns:
a list of BusinessGroup objects or an empty list

clear

void clear()
Removes all of the items from this group. This group will be empty after this call returns.


size

int size()
Returns the number of items in this group.

Returns:
the number of items in this group.

***  This interface is subject to change.  ***




Copyright © 2009 SAS Institute Inc. All Rights Reserved.