org.jgap.data.config
Class ConfigData
- java.lang.Object
-
- org.jgap.data.config.ConfigData
-
public class ConfigData extends java.lang.ObjectClass 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 voidaddListData(java.lang.String a_name, java.util.List a_values)voidaddTextData(java.lang.String a_name, java.lang.String a_value)java.lang.StringgetListNameAt(int a_index)Get the name of the list at the specified index.java.util.ListgetListValuesAt(int a_index)Get the contents of the list at the specified index.java.lang.StringgetNS()Get the namespace of the Configurable for which this ConfigData is being used.intgetNumLists()intgetNumTexts()java.lang.StringgetTextNameAt(int a_index)Get the name of the text at the specified index.java.lang.StringgetTextValueAt(int a_index)Get the value of the text at the specified index.voidsetNS(java.lang.String a_ns)Set the namespace of the Configurable for which this ConfigData is being used.
-
-
-
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