|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
ObjectEnum<TypeValuePolicy>
TypeValuePolicy
public enum TypeValuePolicy
Whatever MetadataStandard.asTypeMap(...) should return values
for the property types, the element types (same as property types except for collections) or the
declaring classes.
MetadataStandard.asTypeMap(Class, TypeValuePolicy, KeyNamePolicy)
| metadata/geotk-metadata (download) | View source code for this class |
| Enum Constant Summary | |
|---|---|
DECLARING_CLASS
The type of the class that declares the method. |
|
DECLARING_INTERFACE
The type of the interface that declares the method. |
|
ELEMENT_TYPE
The type of a property, or type of elements if the property is a collection. |
|
PROPERTY_TYPE
The type of a property, as inferred from the return type of the property method. |
|
| Method Summary | |
|---|---|
static TypeValuePolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static TypeValuePolicy[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final TypeValuePolicy PROPERTY_TYPE
Collection.class (or a subclass).
public static final TypeValuePolicy ELEMENT_TYPE
PROPERTY_TYPE except that collections are handled in a special way: if
the property is a collection, then the value is the type of elements in that
collection.
Note: Current implementation has an additional slight difference: if the getter method in the implementation class declares a more specific return value than the getter method in the interface, and if the setter method (if any) expects the same specialized type, thenELEMENT_TYPEwill use that specialized type. This is different thanPROPERTY_TYPEwhich always use the type declared in the interface.
public static final TypeValuePolicy DECLARING_CLASS
public static final TypeValuePolicy DECLARING_INTERFACE
DECLARING_CLASS, except that the interface from the metadata standard
is returned instead than the implementation class.
| Method Detail |
|---|
public static TypeValuePolicy[] values()
for (TypeValuePolicy c : TypeValuePolicy.values()) System.out.println(c);
public static TypeValuePolicy valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is null
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||