Class LangAlt

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, java.util.Map<java.lang.Object,​java.lang.Object>

    public class LangAlt
    extends java.util.Properties
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String DEFAULT
      Key for the default language.
      private static long serialVersionUID
      A serial version id.
      • Fields inherited from class java.util.Properties

        defaults
    • Constructor Summary

      Constructors 
      Constructor Description
      LangAlt()
      Creates a Properties object that stores languages for use in an XmpSchema
      LangAlt​(java.lang.String defaultValue)
      Creates a Properties object that stores languages for use in an XmpSchema
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addLanguage​(java.lang.String language, java.lang.String value)
      Add a language.
      protected void process​(java.lang.StringBuffer buf, java.lang.Object lang)
      Process a property.
      java.lang.String toString()
      Creates a String that can be used in an XmpSchema.
      • Methods inherited from class java.util.Properties

        clear, clone, compute, computeIfAbsent, computeIfPresent, contains, containsKey, containsValue, elements, entrySet, equals, forEach, get, getOrDefault, getProperty, getProperty, hashCode, isEmpty, keys, keySet, list, list, load, load, loadFromXML, merge, propertyNames, put, putAll, putIfAbsent, rehash, remove, remove, replace, replace, replaceAll, save, setProperty, size, store, store, storeToXML, storeToXML, storeToXML, stringPropertyNames, values
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
    • Field Detail

      • DEFAULT

        public static final java.lang.String DEFAULT
        Key for the default language.
        See Also:
        Constant Field Values
      • serialVersionUID

        private static final long serialVersionUID
        A serial version id.
        See Also:
        Constant Field Values
    • Constructor Detail

      • LangAlt

        public LangAlt​(java.lang.String defaultValue)
        Creates a Properties object that stores languages for use in an XmpSchema
        Parameters:
        defaultValue - default value
      • LangAlt

        public LangAlt()
        Creates a Properties object that stores languages for use in an XmpSchema
    • Method Detail

      • addLanguage

        public void addLanguage​(java.lang.String language,
                                java.lang.String value)
        Add a language.
        Parameters:
        language - language
        value - value
      • process

        protected void process​(java.lang.StringBuffer buf,
                               java.lang.Object lang)
        Process a property.
        Parameters:
        buf - buffer
        lang - object
      • toString

        public java.lang.String toString()
        Creates a String that can be used in an XmpSchema.
        Overrides:
        toString in class java.util.Properties