org.pm4j.core.pm.annotation
Enum PmAttrCfg.AttrAccessKind

java.lang.Object
  extended by java.lang.Enum<PmAttrCfg.AttrAccessKind>
      extended by org.pm4j.core.pm.annotation.PmAttrCfg.AttrAccessKind
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<PmAttrCfg.AttrAccessKind>
Enclosing class:
PmAttrCfg

public static enum PmAttrCfg.AttrAccessKind
extends java.lang.Enum<PmAttrCfg.AttrAccessKind>


Enum Constant Summary
DEFAULT
          Means for attributes within PmBean elements:
LOCALVALUE
          The attribute value is stored in the attribute local storage only.
OVERRIDE
          Only the get- and set methods defined in the attribute presentation model class will be used.
SESSIONPROPERTY
          Deprecated. 
 
Method Summary
static PmAttrCfg.AttrAccessKind valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static PmAttrCfg.AttrAccessKind[] 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

DEFAULT

public static final PmAttrCfg.AttrAccessKind DEFAULT
Means for attributes within PmBean elements:

Use reflection when no PmField#valuePath() is defined.

Use xPath when PmField#valuePath() is defined.


OVERRIDE

public static final PmAttrCfg.AttrAccessKind OVERRIDE
Only the get- and set methods defined in the attribute presentation model class will be used.

No reflection or xPath mechanisms will be used to access the attribute value.


LOCALVALUE

public static final PmAttrCfg.AttrAccessKind LOCALVALUE
The attribute value is stored in the attribute local storage only.


SESSIONPROPERTY

@Deprecated
public static final PmAttrCfg.AttrAccessKind SESSIONPROPERTY
Deprecated. 
The attribute value is stored in a property of the PM session.
Is only useful for attributes that return a unique value with their implementation of PmAttr#getPmLongName().

Method Detail

values

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

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

valueOf

public static PmAttrCfg.AttrAccessKind valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null