Class ExtendedFieldOptions


  • public class ExtendedFieldOptions
    extends Object
    Class to represent options for Extended Fields.
    • Field Detail

      • NEWLINE

        public static final String NEWLINE
        Line separator.
    • Constructor Detail

      • ExtendedFieldOptions

        public ExtendedFieldOptions​(String aLines)
        Constructor.
        Parameters:
        aLines - Options separated by newlines (Null argument allowed)
    • Method Detail

      • isValid

        public boolean isValid()
        Is these ExtendedField options valid.
        Returns:
        true, if the options are valid; otherwise false
      • getOptions

        public Map<String,​String> getOptions()
        Returns:
        the options as a map.
      • getOptionsString

        public String getOptionsString()
        Returns:
        the options as lines separated by newlines.
      • isKeyValid

        public boolean isKeyValid​(String aKey)
        Check, if the given key is a valid option.
        Parameters:
        aKey - a given option key.
        Returns:
        true, if the list of options is valid, and there is an option in the options map with the given key.