pt.digitalis.utils.ioc.modules
Enum IoCBindingManager.BindingValitationResultAction

java.lang.Object
  extended by java.lang.Enum<IoCBindingManager.BindingValitationResultAction>
      extended by pt.digitalis.utils.ioc.modules.IoCBindingManager.BindingValitationResultAction
All Implemented Interfaces:
Serializable, Comparable<IoCBindingManager.BindingValitationResultAction>
Enclosing class:
IoCBindingManager

protected static enum IoCBindingManager.BindingValitationResultAction
extends Enum<IoCBindingManager.BindingValitationResultAction>

Use to inform the BindingManager process of the action to perform for the validated binding

Author:
Pedro Viegas pviegas@digitalis.pt

Enum Constant Summary
INVALID_SKIP
          Invalid bind.
VALID_ADD
          Valid bind.
VALID_REPLACE
          Valid bind.
 
Method Summary
 boolean isValid()
           
static IoCBindingManager.BindingValitationResultAction valueOf(String name)
          Returns the enum constant of this type with the specified name.
static IoCBindingManager.BindingValitationResultAction[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

INVALID_SKIP

public static final IoCBindingManager.BindingValitationResultAction INVALID_SKIP
Invalid bind. Skip it!


VALID_ADD

public static final IoCBindingManager.BindingValitationResultAction VALID_ADD
Valid bind. Add it to the previous binding list


VALID_REPLACE

public static final IoCBindingManager.BindingValitationResultAction VALID_REPLACE
Valid bind. Replace previous binds with this one.

Method Detail

values

public static IoCBindingManager.BindingValitationResultAction[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (IoCBindingManager.BindingValitationResultAction c : IoCBindingManager.BindingValitationResultAction.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static IoCBindingManager.BindingValitationResultAction valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

isValid

public boolean isValid()
Returns:
T if the result if VALID_ADD or VALID_REPLACE


Copyright © 2012 Digitalis Informática Lda. All Rights Reserved.