ilog.cpl.model
Interface IlpClassManager

All Known Subinterfaces:
IlpMutableClassManager
All Known Implementing Classes:
IlpDefaultClassManager, IltDefaultClassManager

public interface IlpClassManager

Interface for managing a class hierarchy. Provides access to the root classes of the hierarchy.

Since:
JTGO 3.0

Method Summary
 IlpClass getClass(String name)
          Returns the class called name.
 Collection getClasses()
          Returns the classes of the model as a Collection.
 Collection getRootClasses()
          Returns the root classes of the model in a collection of IlpClass instances.
 boolean hasClass(IlpClass aClass)
          Returns true if the given class belongs to this model.
 boolean hasClass(String name)
          Returns whether a class with the given name is registered in the manager.
 

Method Detail

getRootClasses

Collection getRootClasses()
Returns the root classes of the model in a collection of IlpClass instances. Root classes are classes that do not inherit from another class.

Returns:
A Collection containing the root classes of the model.
See Also:
IlpClass

getClass

IlpClass getClass(String name)
Returns the class called name.

Parameters:
name - The name of the class to be retrieved.
Returns:
The class called name, or null if this class does not exist.

getClasses

Collection getClasses()
Returns the classes of the model as a Collection.

Returns:
All the classes of the model in a Collection.
See Also:
IlpClass

hasClass

boolean hasClass(IlpClass aClass)
Returns true if the given class belongs to this model.

Parameters:
aClass - The class being checked.
Returns:
true if the class belongs to the model.

hasClass

boolean hasClass(String name)
Returns whether a class with the given name is registered in the manager.

Note that calling this method is not equivalent to getClass(name) != null, as this method does not look for a Java class with the given name.

Parameters:
name - The name of the class.
Returns:
true if a class with the given name is registered, otherwise this method returns false.
See Also:
getClass(String)


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