planet.util
Class Interfaces

java.lang.Object
  extended byplanet.util.Interfaces

public class Interfaces
extends java.lang.Object

Author:
Jordi Pujol 06-jul-2005

Field Summary
static java.lang.String BEHAVIOURS_BEHAVIOUR
          Behaviours property: The fully qualified name of the interface to be implemented by any Behaviour implementation.
static java.lang.String BEHAVIOURS_FACTORY
          Behaviours property: The fully qualified name of the interface to be implemented by any BehavioursFactory implementation.
static java.lang.String BEHAVIOURS_FILTER
          Behaviours property: The fully qualified name of the interface to be implemented by any BehavioursFilter implementation.
static java.lang.String BEHAVIOURS_INVOKER
          Behaviours property: The fully qualified name of the interface to be implemented by any BehavioursInvoker implementation.
static java.lang.String BEHAVIOURS_PATTERN
          Behaviours property: The fully qualified name of the interface to be implemented by any BehavioursPattern implementation.
static java.lang.String BEHAVIOURS_POOL
          Behaviours property: The fully qualified name of the interface to be implemented by any BehavioursPool implementation.
static java.lang.String BEHAVIOURS_PROPERTIES
          Behaviours property: The fully qualified name of the interface to be implemented by any PropertiesInitializer implementation.
static java.lang.String BEHAVIOURS_ROLESELECTOR
          Behaviours property: The fully qualified name of the interface to be implemented by any BehavioursRoleSelector implementation.
static java.lang.String FACTORIES_APPLICATION
          Factories property: The fully qualified name of the interface to be implemented by any Application implementation.
static java.lang.String FACTORIES_APPLICATIONFACTORY
          Factories property: The fully qualified name of the interface to be implemented by any ApplicationFactory implementation.
static java.lang.String FACTORIES_ENDPOINT
          Factories property: The fully qualified name of the interface to be implemented by any EndPoint implementation.
static java.lang.String FACTORIES_ENDPOINTFACTORY
          Factories property: The fully qualified name of the interface to be implemented by any EndPointFactory implementation.
static java.lang.String FACTORIES_IDFACTORY
          Factories property: The fully qualified name of the interface to be implemented by any IdFactory implementation.
static java.lang.String FACTORIES_NETWORK
          Factories property: The fully qualified name of the interface to be implemented by any Network implementation.
static java.lang.String FACTORIES_NETWORKFACTORY
          Factories property: The fully qualified name of the interface to be implemented by any NetworkFactory implementation.
static java.lang.String FACTORIES_NODEFACTORY
          Factories property: The fully qualified name of the interface to be implemented by any NodeFactory implementation.
static java.lang.String FACTORIES_NODEHANDLE
          Factories property: The fully qualified name of the interface to be implemented by any NodeHandle implementation.
static java.lang.String FACTORIES_NODEHANDLEFACTORY
          Factories property: The fully qualified name of the interface to be implemented by any NodeHandleFactory implementation.
static java.lang.String FACTORIES_ROUTEMESSAGE
          Factories property: The fully qualified name of the interface to be implemented by any RouteMessage implementation.
static java.lang.String FACTORIES_ROUTEMESSAGEPOOL
          Factories property: The fully qualified name of the interface to be implemented by any RouteMessagePool implementation.
static java.lang.String OVERLAY_ID
          Overlay property: The fully qualified name of the interface to be implemented by any Id implementation.
static java.lang.String OVERLAY_NODE
          Overlay property: The fully qualified name of the interface to be implemented by any Node implementation.
static java.lang.String OVERLAY_PROPERTIES
          Overlay property: The fully qualified name of the interface to be implemented by any PropertiesInitializer implementation.
static java.lang.String RESULTS_CONSTRAINT
          Results property: The fully qualified name of the interface to be implemented by any results Constraint implementation.
static java.lang.String RESULTS_EDGE
          Results property: The fully qualified name of the interface to be implemented by any results Edge implementation.
static java.lang.String RESULTS_FACTORY
          Results property: The fully qualified name of the interface to be implemented by any results Factory implementation.
static java.lang.String RESULTS_GENERATOR
          Results property: The fully qualified name of the interface to be implemented by any results Generator implementation.
static java.lang.String RESULTS_PROPERTIES
          Results property: The fully qualified name of the interface to be implemented by any results PropertiesInitializer implementation.
 
Constructor Summary
Interfaces()
           
 
Method Summary
static void ensureExtendedClass(java.lang.Class classReference, java.lang.String fullyQualifiedClass, java.lang.String propertyName)
          Test if the classReference or any of its superclasses extends the fullyQualifiedClass class (or abstract class).
static void ensureImplementedInterface(java.lang.Class classReference, java.lang.String fullyQualifiedInterface, java.lang.String propertyName)
          Test if the classReference or any of its superclasses implements the fullyQualifiedInterface interface.
static void ensureImplementedInterfaceOrClass(java.lang.Class classReference, java.lang.String fullyQualifiedClass, java.lang.String propertyName)
          Test if the classReference or any of its superclasses extends the fullyQualifiedClass class (or abstract class).
static boolean extendedClass(java.lang.Class classReference, java.lang.String fullyQualifiedClass)
          Returns true when the classReference or any of its superclasses extends the fullyQualifiedClass class.
static boolean implementedInterface(java.lang.Class classReference, java.lang.String fullyQualifiedInterface)
          Returns true when the classReference or any of its superclasses implements the fullyQualifiedInterface interface.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FACTORIES_NETWORKFACTORY

public static final java.lang.String FACTORIES_NETWORKFACTORY
Factories property: The fully qualified name of the interface to be implemented by any NetworkFactory implementation.

See Also:
Constant Field Values

FACTORIES_IDFACTORY

public static final java.lang.String FACTORIES_IDFACTORY
Factories property: The fully qualified name of the interface to be implemented by any IdFactory implementation.

See Also:
Constant Field Values

FACTORIES_NODEHANDLEFACTORY

public static final java.lang.String FACTORIES_NODEHANDLEFACTORY
Factories property: The fully qualified name of the interface to be implemented by any NodeHandleFactory implementation.

See Also:
Constant Field Values

FACTORIES_NODEFACTORY

public static final java.lang.String FACTORIES_NODEFACTORY
Factories property: The fully qualified name of the interface to be implemented by any NodeFactory implementation.

See Also:
Constant Field Values

FACTORIES_ROUTEMESSAGEPOOL

public static final java.lang.String FACTORIES_ROUTEMESSAGEPOOL
Factories property: The fully qualified name of the interface to be implemented by any RouteMessagePool implementation.

See Also:
Constant Field Values

FACTORIES_NETWORK

public static final java.lang.String FACTORIES_NETWORK
Factories property: The fully qualified name of the interface to be implemented by any Network implementation.

See Also:
Constant Field Values

FACTORIES_NODEHANDLE

public static final java.lang.String FACTORIES_NODEHANDLE
Factories property: The fully qualified name of the interface to be implemented by any NodeHandle implementation.

See Also:
Constant Field Values

FACTORIES_ROUTEMESSAGE

public static final java.lang.String FACTORIES_ROUTEMESSAGE
Factories property: The fully qualified name of the interface to be implemented by any RouteMessage implementation.

See Also:
Constant Field Values

FACTORIES_APPLICATIONFACTORY

public static final java.lang.String FACTORIES_APPLICATIONFACTORY
Factories property: The fully qualified name of the interface to be implemented by any ApplicationFactory implementation.

See Also:
Constant Field Values

FACTORIES_ENDPOINTFACTORY

public static final java.lang.String FACTORIES_ENDPOINTFACTORY
Factories property: The fully qualified name of the interface to be implemented by any EndPointFactory implementation.

See Also:
Constant Field Values

FACTORIES_APPLICATION

public static final java.lang.String FACTORIES_APPLICATION
Factories property: The fully qualified name of the interface to be implemented by any Application implementation.

See Also:
Constant Field Values

FACTORIES_ENDPOINT

public static final java.lang.String FACTORIES_ENDPOINT
Factories property: The fully qualified name of the interface to be implemented by any EndPoint implementation.

See Also:
Constant Field Values

BEHAVIOURS_FACTORY

public static final java.lang.String BEHAVIOURS_FACTORY
Behaviours property: The fully qualified name of the interface to be implemented by any BehavioursFactory implementation.

See Also:
Constant Field Values

BEHAVIOURS_POOL

public static final java.lang.String BEHAVIOURS_POOL
Behaviours property: The fully qualified name of the interface to be implemented by any BehavioursPool implementation.

See Also:
Constant Field Values

BEHAVIOURS_ROLESELECTOR

public static final java.lang.String BEHAVIOURS_ROLESELECTOR
Behaviours property: The fully qualified name of the interface to be implemented by any BehavioursRoleSelector implementation.

See Also:
Constant Field Values

BEHAVIOURS_INVOKER

public static final java.lang.String BEHAVIOURS_INVOKER
Behaviours property: The fully qualified name of the interface to be implemented by any BehavioursInvoker implementation.

See Also:
Constant Field Values

BEHAVIOURS_FILTER

public static final java.lang.String BEHAVIOURS_FILTER
Behaviours property: The fully qualified name of the interface to be implemented by any BehavioursFilter implementation.

See Also:
Constant Field Values

BEHAVIOURS_PATTERN

public static final java.lang.String BEHAVIOURS_PATTERN
Behaviours property: The fully qualified name of the interface to be implemented by any BehavioursPattern implementation.

See Also:
Constant Field Values

BEHAVIOURS_PROPERTIES

public static final java.lang.String BEHAVIOURS_PROPERTIES
Behaviours property: The fully qualified name of the interface to be implemented by any PropertiesInitializer implementation.

See Also:
Constant Field Values

BEHAVIOURS_BEHAVIOUR

public static final java.lang.String BEHAVIOURS_BEHAVIOUR
Behaviours property: The fully qualified name of the interface to be implemented by any Behaviour implementation.

See Also:
Constant Field Values

OVERLAY_ID

public static final java.lang.String OVERLAY_ID
Overlay property: The fully qualified name of the interface to be implemented by any Id implementation.

See Also:
Constant Field Values

OVERLAY_NODE

public static final java.lang.String OVERLAY_NODE
Overlay property: The fully qualified name of the interface to be implemented by any Node implementation.

See Also:
Constant Field Values

OVERLAY_PROPERTIES

public static final java.lang.String OVERLAY_PROPERTIES
Overlay property: The fully qualified name of the interface to be implemented by any PropertiesInitializer implementation.

See Also:
Constant Field Values

RESULTS_FACTORY

public static final java.lang.String RESULTS_FACTORY
Results property: The fully qualified name of the interface to be implemented by any results Factory implementation.

See Also:
Constant Field Values

RESULTS_EDGE

public static final java.lang.String RESULTS_EDGE
Results property: The fully qualified name of the interface to be implemented by any results Edge implementation.

See Also:
Constant Field Values

RESULTS_CONSTRAINT

public static final java.lang.String RESULTS_CONSTRAINT
Results property: The fully qualified name of the interface to be implemented by any results Constraint implementation.

See Also:
Constant Field Values

RESULTS_GENERATOR

public static final java.lang.String RESULTS_GENERATOR
Results property: The fully qualified name of the interface to be implemented by any results Generator implementation.

See Also:
Constant Field Values

RESULTS_PROPERTIES

public static final java.lang.String RESULTS_PROPERTIES
Results property: The fully qualified name of the interface to be implemented by any results PropertiesInitializer implementation.

See Also:
Constant Field Values
Constructor Detail

Interfaces

public Interfaces()
Method Detail

implementedInterface

public static final boolean implementedInterface(java.lang.Class classReference,
                                                 java.lang.String fullyQualifiedInterface)
Returns true when the classReference or any of its superclasses implements the fullyQualifiedInterface interface.

Parameters:
classReference - Class reference to be tested.
fullyQualifiedInterface - Fully qualified name of an interface.
Returns:
true when the classReference or any of its superclasses implements the specified interface. false in other case.

extendedClass

public static final boolean extendedClass(java.lang.Class classReference,
                                          java.lang.String fullyQualifiedClass)
Returns true when the classReference or any of its superclasses extends the fullyQualifiedClass class.

Parameters:
classReference - Class reference to be tested.
fullyQualifiedClass - Fully qualified name of a class.
Returns:
true when the classReference or any of its superclasses the the specified class. false in other case.

ensureImplementedInterface

public static final void ensureImplementedInterface(java.lang.Class classReference,
                                                    java.lang.String fullyQualifiedInterface,
                                                    java.lang.String propertyName)
                                             throws InitializationException
Test if the classReference or any of its superclasses implements the fullyQualifiedInterface interface.

Parameters:
classReference - Class reference to be tested.
fullyQualifiedInterface - Fully qualified name of an interface.
propertyName - The property name where appears the this classReference (only for logging purposes).
Throws:
InitializationException - if the classReference does not implement the fullyQualifiedInterface.

ensureExtendedClass

public static final void ensureExtendedClass(java.lang.Class classReference,
                                             java.lang.String fullyQualifiedClass,
                                             java.lang.String propertyName)
                                      throws InitializationException
Test if the classReference or any of its superclasses extends the fullyQualifiedClass class (or abstract class).

Parameters:
classReference - Class reference to be tested.
fullyQualifiedClass - Fully qualified name of a class.
propertyName - The property name where appears the this classReference (only for logging purposes).
Throws:
InitializationException - if the classReference does not extend the fullyQualifiedClass.

ensureImplementedInterfaceOrClass

public static final void ensureImplementedInterfaceOrClass(java.lang.Class classReference,
                                                           java.lang.String fullyQualifiedClass,
                                                           java.lang.String propertyName)
                                                    throws InitializationException
Test if the classReference or any of its superclasses extends the fullyQualifiedClass class (or abstract class).

Parameters:
classReference - Class reference to be tested.
fullyQualifiedClass - Fully qualified name of a class.
propertyName - The property name where appears the this classReference (only for logging purposes).
Throws:
InitializationException - if the classReference does not extend the fullyQualifiedClass.