|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.fractal.explorer.FcExplorer
public class FcExplorer
Utilities class for Fractal.
Constructor Summary | |
---|---|
FcExplorer()
|
Method Summary | |
---|---|
static ImageIcon |
createIcon(String imageName)
Returns an ImageIcon, or null if the path is invalid. |
static AttributeController |
getAttributeController(Component component)
Returns the AttributeController interface of the given component. |
static BindingController |
getBindingController(Component component)
Returns the BindingController interface of the given component. |
static Component |
getBootstrapComponent()
Returns a bootstrap component to create other components. |
static Component |
getComponent(Object obj)
Provides the reference to the component associated to this object. |
static ContentController |
getContentController(Component component)
Returns the ContentController interface of the given component. |
static Factory |
getFactory(Component component)
Returns the Factory interface of the given component. |
static GenericFactory |
getGenericFactory(Component component)
Returns the GenericFactory interface of the given component. |
static LifeCycleController |
getLifeCycleController(Component component)
Returns the LifeCycleController interface of the given component. |
static String |
getLifeCycleState(Interface itf)
Provides the value of the life cycle state associated to the interface. |
static String |
getName(Component cpt)
Provides the name of a component. |
static String |
getName(Interface itf)
Provides the name of an interface. |
static String |
getName(InterfaceType itf)
|
static String |
getName(Object obj)
Provides the name of an object. |
static NameController |
getNameController(Component component)
Returns the NameController interface of the given component. |
static String |
getPrefixedName(Object obj)
Provides the name of the object prefixed by the component name. |
static Component |
getPrimitiveCpt(Interface itf)
Provides the primitive component that own the interface itf. |
static Interface |
getPrimitiveItf(Interface itf)
Provides the interface of the primitive component to which the itt is binded. |
static SuperController |
getSuperController(Component component)
Returns the SuperController interface of the given component. |
static TypeFactory |
getTypeFactory(Component component)
Returns the TypeFactory interface of the given component. |
static boolean |
isClient(Interface ir)
Return true if the given Interface is a Client interface. |
static boolean |
isClientCollection(Interface ir)
Return true if the given Interface is a Collection Client interface. |
static boolean |
isClientCollection(InterfaceType it)
Return true if the given InterfaceType is a Collection Client interface. |
static boolean |
isCollection(Interface itf)
Return true if the given Interface is a Collection interface. |
static boolean |
isController(Interface itf)
Return true if the given Interface is a Control interface. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FcExplorer()
Method Detail |
---|
public static Interface getPrimitiveItf(Interface itf)
itf
- the indirect interface.
public static Component getPrimitiveCpt(Interface itf)
itf
- the indirect interface.
public static String getLifeCycleState(Interface itf)
itf
- the interface to introspect.
public static Component getComponent(Object obj)
obj
- the base object reference.
public static String getPrefixedName(Object obj)
obj
- the object to identify.
public static String getName(Object obj)
obj
- the object to identify.
public static String getName(InterfaceType itf)
itf
- the interface to introspect.
public static String getName(Interface itf)
itf
- the interface to identify.
public static String getName(Component cpt)
cpt
- the component to identify.
public static Component getBootstrapComponent() throws InstantiationException
InstantiationException
- if the bootstrap component cannot be
created.public static AttributeController getAttributeController(Component component) throws NoSuchInterfaceException
AttributeController
interface of the given component.
component
- a component.
AttributeController
interface of the given component.
NoSuchInterfaceException
- if there is no such interface.public static BindingController getBindingController(Component component) throws NoSuchInterfaceException
BindingController
interface of the given component.
component
- a component.
BindingController
interface of the given component.
NoSuchInterfaceException
- if there is no such interface.public static ContentController getContentController(Component component) throws NoSuchInterfaceException
ContentController
interface of the given component.
component
- a component.
ContentController
interface of the given component.
NoSuchInterfaceException
- if there is no such interface.public static SuperController getSuperController(Component component) throws NoSuchInterfaceException
SuperController
interface of the given component.
component
- a component.
SuperController
interface of the given component.
NoSuchInterfaceException
- if there is no such interface.public static NameController getNameController(Component component) throws NoSuchInterfaceException
NameController
interface of the given component.
component
- a component.
NameController
interface of the given component.
NoSuchInterfaceException
- if there is no such interface.public static LifeCycleController getLifeCycleController(Component component) throws NoSuchInterfaceException
LifeCycleController
interface of the given component.
component
- a component.
LifeCycleController
interface of the given component.
NoSuchInterfaceException
- if there is no such interface.public static Factory getFactory(Component component) throws NoSuchInterfaceException
Factory
interface of the given component.
component
- a component.
Factory
interface of the given component.
NoSuchInterfaceException
- if there is no such interface.public static GenericFactory getGenericFactory(Component component) throws NoSuchInterfaceException
GenericFactory
interface of the given component.
component
- a component.
GenericFactory
interface of the given component.
NoSuchInterfaceException
- if there is no such interface.public static TypeFactory getTypeFactory(Component component) throws NoSuchInterfaceException
TypeFactory
interface of the given component.
component
- a component.
TypeFactory
interface of the given component.
NoSuchInterfaceException
- if there is no such interface.public static boolean isClient(Interface ir)
ir
- the interface.
public static boolean isCollection(Interface itf)
itf
- the interface to check.
public static boolean isClientCollection(InterfaceType it)
it
-
public static boolean isClientCollection(Interface ir)
ir
-
public static boolean isController(Interface itf)
itf
-
-controller
or if it is equal to factory
or if it is equal to component
public static ImageIcon createIcon(String imageName)
imageName
- the icon name.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |