Package org.apache.sis.metadata
Enum Class TypeValuePolicy
- All Implemented Interfaces:
- Serializable,- Comparable<TypeValuePolicy>,- Constable
The kind of values in the 
MetadataStandard.asTypeMap(…).
 This enumeration specifies whether the values shall be property types, element types (same
 as property types except for collections) or the declaring classes.- Since:
- 0.3
- See Also:
Defined in the sis-metadata module
- 
Nested Class SummaryNested classes/interfaces inherited from class EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum ConstantsEnum ConstantDescriptionThe type of the class that declares the method.The type of the interface that declares the method.The specialized type of a property, or type of elements if the property is a collection.The type of a property, as inferred from the return type of the property method defined in the interface.
- 
Method SummaryModifier and TypeMethodDescriptionstatic TypeValuePolicyReturns the enum constant of this class with the specified name.static TypeValuePolicy[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class Enumclone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
- 
Enum Constant Details- 
PROPERTY_TYPEThe type of a property, as inferred from the return type of the property method defined in the interface.Notes- Collections are not handled in any special way: if the return type is a collection,
       then the property type is Collection.classor any other declared return type.
- As a special case, values of type double(the primitive type) inGeographicBoundingBoxare wrapped inLongitudeandLatitudeobjects instead ofDouble.
 
- Collections are not handled in any special way: if the return type is a collection,
       then the property type is 
- 
ELEMENT_TYPEThe specialized type of a property, or type of elements if the property is a collection. This is the same type thanPROPERTY_TYPEexcept for the following:- If the property is a collection, then the element type is the type of elements in that
       collection. For example if the property type is Collection<String>, then the element type isString.
- If the implementation declares a more specific property type than the interface (as allowed by covariant return type), then the element type will be that specialized type.
 
- If the property is a collection, then the element type is the type of elements in that
       collection. For example if the property type is 
- 
DECLARING_INTERFACEThe type of the interface that declares the method. For any metadata object, different properties may have different declaring interfaces if some properties were inherited from parent interfaces.
- 
DECLARING_CLASSThe type of the class that declares the method. This is similar toDECLARING_INTERFACE, except that the implementation class from the metadata standard is returned instead of the interface.
 
- 
- 
Method Details- 
valuesReturns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
 
- 
valueOfReturns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
- NullPointerException- if the argument is null
 
 
-