Documentation of 'org.jgap.data.config.ConfigData' Java class
ConfigData
org.jgap.data.config

Class ConfigData



  • public class ConfigData
    extends java.lang.Object
    Class to encapsulate information given by the GUI to a ConfigWriter to persist.
    Since:
    2.3
    • Constructor Summary

      Constructors 
      Constructor and Description
      ConfigData() 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void addListData(java.lang.String a_name, java.util.List a_values) 
      void addTextData(java.lang.String a_name, java.lang.String a_value) 
      java.lang.String getListNameAt(int a_index)
      Get the name of the list at the specified index.
      java.util.List getListValuesAt(int a_index)
      Get the contents of the list at the specified index.
      java.lang.String getNS()
      Get the namespace of the Configurable for which this ConfigData is being used.
      int getNumLists() 
      int getNumTexts() 
      java.lang.String getTextNameAt(int a_index)
      Get the name of the text at the specified index.
      java.lang.String getTextValueAt(int a_index)
      Get the value of the text at the specified index.
      void setNS(java.lang.String a_ns)
      Set the namespace of the Configurable for which this ConfigData is being used.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ConfigData

        public ConfigData()
    • Method Detail

      • addListData

        public void addListData(java.lang.String a_name,
                                java.util.List a_values)
      • addTextData

        public void addTextData(java.lang.String a_name,
                                java.lang.String a_value)
      • getNumLists

        public int getNumLists()
      • getNumTexts

        public int getNumTexts()
      • getListNameAt

        public java.lang.String getListNameAt(int a_index)
        Get the name of the list at the specified index.
        Parameters:
        a_index - index of the list
        Returns:
        name of the list at the specified index
        Throws:
        java.lang.IndexOutOfBoundsException - when index < 0 or index >= listData.size()
        Since:
        2.3
      • getListValuesAt

        public java.util.List getListValuesAt(int a_index)
        Get the contents of the list at the specified index.
        Parameters:
        a_index - index of the list
        Returns:
        contents of the list at the specified index.
        Throws:
        java.lang.IndexOutOfBoundsException - when index < 0 or index >= listData.size()
        Since:
        2.3
      • getTextNameAt

        public java.lang.String getTextNameAt(int a_index)
        Get the name of the text at the specified index.
        Parameters:
        a_index - index of the text
        Returns:
        name of the text at the specified index.
        Throws:
        java.lang.IndexOutOfBoundsException - when index < 0 or index >= textData.size()
        Since:
        2.3
      • getTextValueAt

        public java.lang.String getTextValueAt(int a_index)
        Get the value of the text at the specified index.
        Parameters:
        a_index - index of the text
        Returns:
        value of the text at the specified index
        Throws:
        java.lang.IndexOutOfBoundsException - when index < 0 || index >= textData.size()
        Since:
        2.3
      • setNS

        public void setNS(java.lang.String a_ns)
        Set the namespace of the Configurable for which this ConfigData is being used.
        Parameters:
        a_ns - namespace of the Configurable to be used while writing the config file
        Since:
        2.3
      • getNS

        public java.lang.String getNS()
        Get the namespace of the Configurable for which this ConfigData is being used.
        Returns:
        The namespace of the Configurable to be used while writing the config file.
        Since:
        2.3

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.