Class ConfigElement

java.lang.Object
ch.software_atelier.simpleflex.conf.text.ConfigElement

public class ConfigElement extends Object
Author:
tk
  • Constructor Details

    • ConfigElement

      public ConfigElement(String elemName)
      Creates a new instance of ConfigElement
      Parameters:
      elemName -
  • Method Details

    • appendValue

      public void appendValue(String key, String value) throws ConfigElementException
      Appends a key and a refered value to this ConfigElement-Object
      Parameters:
      key - The key to append
      value - The value to append
      Throws:
      ConfigElementException - if key or value is null.
    • getValuesByKey

      public String[] getValuesByKey(String key)
      Returns the values refered to the given key.
      Parameters:
      key -
      Returns:
      the values refered to the key.
    • getValuesAndKeysByRegexOfKey

      public String[][] getValuesAndKeysByRegexOfKey(String regexOfKey)
      Returns a table of keys and values by a Regular expression applyed to the key. String[0][x] are keys and String[1][x] are values.
      Parameters:
      regexOfKey - The regular expressin that has to be tested to the key
      Returns:
      A String-Table that holds the matched keys and the refered values.
    • elementName

      public String elementName()
      Returns the Name of this element.
      Returns:
      the Name of this element as a String