Class X3fPropertyNames


  • public class X3fPropertyNames
    extends Object
    Class for representing X3F standard property names and creating descriptive values.
    • Method Detail

      • checkLocale

        protected static Locale checkLocale​(Locale locale)
        Returns the given locale, if not null, and the default locale otherwise.
        Parameters:
        locale - the given locale
        Returns:
        the given locale, if not null, and the default locale otherwise
      • getX3fPropertyNameDescriptions

        public static SortedMap<String,​String> getX3fPropertyNameDescriptions()
        Returns a sorted map of known X3F property names associated with descriptive values suited for display.
        Returns:
        an unmodifiable sorted map
      • getNameDescription

        protected static String getNameDescription​(String propertyName)
        Returns a descriptive form of a property name.
        Parameters:
        propertyName - a property name
        Returns:
        descriptive string of a property name
      • getValueDescription

        protected static String getValueDescription​(String propertyName,
                                                    String propertyValue)
        Returns a descriptive form of a property value.
        Parameters:
        propertyName - a property name
        propertyValue - a property value
        Returns:
        descriptive string of a property value
      • getX3fTimeAsString

        protected static String getX3fTimeAsString​(String propertyValue)
        Returns X3F time as string.
        Parameters:
        propertyValue - X3F time property
        Returns:
        X3F time as string
      • getX3fTimeAsString

        protected static String getX3fTimeAsString​(String propertyValue,
                                                   Locale locale)
        Returns X3F time as string.
        Parameters:
        propertyValue - X3F time property
        locale - a locale
        Returns:
        X3F time as string
      • getX3fTime

        protected static Calendar getX3fTime​(String propertyValue,
                                             Locale locale)
        Returns X3F time as Calendar object.
        Parameters:
        propertyValue - X3F time property
        locale - a locale
        Returns:
        X3F time as Calendar object