- java.lang.Object
-
- de.bernd_michaely.x3f.types.X3fPropertyNames
-
public class X3fPropertyNames extends Object
Class for representing X3F standard property names and creating descriptive values.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static Locale
checkLocale(Locale locale)
Returns the given locale, if not null, and the default locale otherwise.protected static String
getNameDescription(String propertyName)
Returns a descriptive form of a property name.protected static String
getValueDescription(String propertyName, String propertyValue)
Returns a descriptive form of a property value.static SortedMap<String,String>
getX3fPropertyNameDescriptions()
Returns a sorted map of known X3F property names associated with descriptive values suited for display.protected static Calendar
getX3fTime(String propertyValue, Locale locale)
Returns X3F time as Calendar object.protected static String
getX3fTimeAsString(String propertyValue)
Returns X3F time as string.protected static String
getX3fTimeAsString(String propertyValue, Locale locale)
Returns X3F time as string.
-
-
-
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 namepropertyValue
- 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 propertylocale
- a locale- Returns:
- X3F time as string
-
-