Login | Register
My pages Projects Community openCollabNet

The Tigris site will receive a major upgrade the evening of Monday, December 1, beginning at 8:30 pm PST. Downtime is projected to be about ten hours. Further details in the announcement


jmt.application.elements
Interface ElementManager


public interface ElementManager

Describes a elemenet manager consisting of packages, classes, methods and fields.

Author:
Martin Kersten

Method Summary
 ElementSet getClasses()
          Returns a set of all classes belonging to the model.
 Class getClazz(Field field)
          Returns the class the field belongs to.
 Class getClazz(Method method)
          Returns the class the method belongs to.
 ElementSet getFields()
          Returns the set of all fields belonging to the model.
 ElementSet getMethods()
          Returns the set of all methods belonging to the model.
 Package getPackage(Class clazz)
          Returns the package the class belongs to.
 ElementSet getPackages()
          Returns the set containing all packages belonging to the model.
 

Method Detail

getClasses

public ElementSet getClasses()
Returns a set of all classes belonging to the model.

Returns:
A set of all classes belonging to the model

getClazz

public Class getClazz(Field field)
Returns the class the field belongs to.

Parameters:
field - The given field
Returns:
The class the field belongs to
Throws:
NoSuchElementException - If the manager does not contain the field.

getClazz

public Class getClazz(Method method)
Returns the class the method belongs to.

Parameters:
method - The given method
Returns:
The class the method belongs to
Throws:
NoSuchElementException - If the manager does not contain the method.

getFields

public ElementSet getFields()
Returns the set of all fields belonging to the model.

Returns:
The set of all fields belonging to the model.

getMethods

public ElementSet getMethods()
Returns the set of all methods belonging to the model.

Returns:
The set of all methods belonging to the model

getPackage

public Package getPackage(Class clazz)
Returns the package the class belongs to.

Parameters:
clazz - The given class
Returns:
The package the class belongs to
Throws:
NoSuchElementException - If the manager does not contain this clazz.

getPackages

public ElementSet getPackages()
Returns the set containing all packages belonging to the model.

Returns:
The set of all packages belonging to the model