public enum KeyNamePolicy extends Enum<KeyNamePolicy>
Mapof metadata. Those maps are created by the
AbstractMetadata.asMap()method. The keys in those map are
Strings which can be inferred from the UML identifier, the name of the Javabeans property, or the method name.
In GeoAPI implementation of ISO 19115,
names are usually identical except for collections:
JAVA_PROPERTY names are plural when the property is a collection while
UML_IDENTIFIER usually stay singular no matter the property cardinality.
MetadataStandard.asValueMap(Object, KeyNamePolicy, ValueExistencePolicy)
Defined in the
|Enum Constant and Description|
The keys in the map are the Javabeans property names.
The keys in the map are the plain method names.
The keys in the map are sentences inferred from the UML identifiers.
The keys in the map are the UML identifier of the metadata properties.
|Modifier and Type||Method and Description|
Returns the enum constant of this type with the specified name.
Returns an array containing the constants of this enum type, in the order they are declared.
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
public static final KeyNamePolicy UML_IDENTIFIER
public static final KeyNamePolicy JAVABEANS_PROPERTY
isprefix removed, and the first letter made lower-case.
This is the default type of names returned by
public static final KeyNamePolicy METHOD_NAME
public static final KeyNamePolicy SENTENCE
UML_IDENTIFIER, searches for word boundaries (defined as a lower case letter followed by a upper case letter) and inserts a space between the words found. The first letter in the sentence is made upper-case. The first letters of following words are made lower-case.
public static KeyNamePolicy values()
for (KeyNamePolicy c : KeyNamePolicy.values()) System.out.println(c);
public static KeyNamePolicy valueOf(String name)
Copyright © 2010–2016 The Apache Software Foundation. All rights reserved.