Enum KeyNamePolicy

    • Enum Constant Detail

      • UML_IDENTIFIER

        public static final KeyNamePolicy UML_IDENTIFIER
        The keys in the map are the UML identifier of the metadata properties. If a property has no UML annotation, then the Javabeans property name is used as a fallback.
      • JAVABEANS_PROPERTY

        public static final KeyNamePolicy JAVABEANS_PROPERTY
        The keys in the map are the Javabeans property names. This is the method name with the get or is prefix removed, and the first letter made lower-case.

        This is the default type of names returned by Abstract­Metadata​.as­Map().

      • SENTENCE

        public static final KeyNamePolicy SENTENCE
        The keys in the map are sentences inferred from the UML identifiers. This policy starts with the same names than 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.
    • Method Detail

      • values

        public static KeyNamePolicy[] 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 (KeyNamePolicy c : KeyNamePolicy.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static KeyNamePolicy 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:
        Illegal­Argument­Exception - if this enum type has no constant with the specified name
        Null­Pointer­Exception - if the argument is null