org.apache.isis.core.progmodel.facets.object.value
Enum ValueFacetAbstract.AddFacetsIfInvalidStrategy

java.lang.Object
  extended by java.lang.Enum<ValueFacetAbstract.AddFacetsIfInvalidStrategy>
      extended by org.apache.isis.core.progmodel.facets.object.value.ValueFacetAbstract.AddFacetsIfInvalidStrategy
All Implemented Interfaces:
Serializable, Comparable<ValueFacetAbstract.AddFacetsIfInvalidStrategy>
Enclosing class:
ValueFacetAbstract

public static enum ValueFacetAbstract.AddFacetsIfInvalidStrategy
extends Enum<ValueFacetAbstract.AddFacetsIfInvalidStrategy>


Enum Constant Summary
DO_ADD
           
DONT_ADD
           
 
Method Summary
 boolean shouldAddFacetsIfInvalid()
           
static ValueFacetAbstract.AddFacetsIfInvalidStrategy valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ValueFacetAbstract.AddFacetsIfInvalidStrategy[] 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

DO_ADD

public static final ValueFacetAbstract.AddFacetsIfInvalidStrategy DO_ADD

DONT_ADD

public static final ValueFacetAbstract.AddFacetsIfInvalidStrategy DONT_ADD
Method Detail

values

public static ValueFacetAbstract.AddFacetsIfInvalidStrategy[] 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 (ValueFacetAbstract.AddFacetsIfInvalidStrategy c : ValueFacetAbstract.AddFacetsIfInvalidStrategy.values())
    System.out.println(c);

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

valueOf

public static ValueFacetAbstract.AddFacetsIfInvalidStrategy 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

shouldAddFacetsIfInvalid

public boolean shouldAddFacetsIfInvalid()


Copyright © 2010-2011 The Apache Software Foundation. All Rights Reserved.