ilog.cpl.model
Interface IlpAttributeGroup

All Known Subinterfaces:
IlpClass, IlpMutableAttributeGroup, IlpMutableClass
All Known Implementing Classes:
IlpAbstractClass, IlpBeansClass, IlpDefaultAttributeGroup, IlpDefaultClass, IlpExtendedAttributeGroup, IltObjectInfo

public interface IlpAttributeGroup

This interface defines a static collection of attributes.

Since:
JTGO 3.0

Method Summary
 void addAttributeGroupListener(AttributeGroupListener l)
          Adds a listener to model changes.
 void fireEvent(AttributeGroupEvent ev)
          Fires an event to the listeners.
 IlpAttribute getAttribute(String name)
          Returns a class instance attribute.
 Collection getAttributes()
          Returns the collection of attributes present in this model.
 Collection getDeclaredAttributes()
          Returns the collection of attributes declared in this model.
 String getName()
          Returns the attribute group name.
 boolean hasAttribute(IlpAttribute attr)
          Returns whether the given attribute is part of the model.
 void removeAttributeGroupListener(AttributeGroupListener l)
          Removes the model listener.
 

Method Detail

getName

String getName()
Returns the attribute group name.


getAttributes

Collection getAttributes()
Returns the collection of attributes present in this model.

Returns:
An unmodifiable collection containing IlpAttribute instances.

getDeclaredAttributes

Collection getDeclaredAttributes()
Returns the collection of attributes declared in this model. Only visible attributes are returned.

Returns:
An unmodifiable collection containing IlpAttribute instances.

getAttribute

IlpAttribute getAttribute(String name)
Returns a class instance attribute.

Parameters:
name - The name of the class instance attribute to be retrieved.
Returns:
The attribute corresponding to the specified name, or null if there is no matching attribute.

hasAttribute

boolean hasAttribute(IlpAttribute attr)
Returns whether the given attribute is part of the model.


addAttributeGroupListener

void addAttributeGroupListener(AttributeGroupListener l)
Adds a listener to model changes. Since IlpAttributeGroup is static, the only event which can be fired is an attribute change.


removeAttributeGroupListener

void removeAttributeGroupListener(AttributeGroupListener l)
Removes the model listener.


fireEvent

void fireEvent(AttributeGroupEvent ev)
Fires an event to the listeners. Since IlpAttributeGroup is static, the only event which can be fired is an attribute change.



Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.   . All Rights Reserved.