BrightSide Workbench Full Report + Source Code
org.turro.configuration.ConfigurationSet Class Reference

Public Member Functions

 ConfigurationSet (String confKey)
 
void setChildrenValue (Path path, String element, String name, List< String > values)
 
void setChildrenValues (Path path, String element, String name[], List< String[]> values)
 
void setNodeValue (Path path, String name, String value)
 
List< String > getChildrenValue (Path path, String element, String name)
 
List< String[]> getChildrenValues (Path path, String element, String names[])
 
String getNodeValue (Path path, String name)
 
Document getDocument ()
 
void setDocument (Document doc)
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 39 of file ConfigurationSet.java.

Constructor & Destructor Documentation

◆ ConfigurationSet()

org.turro.configuration.ConfigurationSet.ConfigurationSet ( String  confKey)

Definition at line 46 of file ConfigurationSet.java.

46  {
47  this.confKey = confKey;
48  }

Member Function Documentation

◆ getChildrenValue()

List<String> org.turro.configuration.ConfigurationSet.getChildrenValue ( Path  path,
String  element,
String  name 
)

Definition at line 83 of file ConfigurationSet.java.

83  {
84  try {
85  loadSet();
86  path.setDoc(doc);
87  return path.getChildrenValue(element, name);
88  } catch (JDOMException ex) {
89  Logger.getLogger(ConfigurationSet.class.getName()).log(Level.SEVERE, ElephantContext.logMsg(null), ex);
90  }
91  return null;
92  }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getChildrenValues()

List<String[]> org.turro.configuration.ConfigurationSet.getChildrenValues ( Path  path,
String  element,
String  names[] 
)

Definition at line 94 of file ConfigurationSet.java.

94  {
95  try {
96  loadSet();
97  path.setDoc(doc);
98  return path.getChildrenValues(element, names);
99  } catch (JDOMException ex) {
100  Logger.getLogger(ConfigurationSet.class.getName()).log(Level.SEVERE, ElephantContext.logMsg(null), ex);
101  }
102  return null;
103  }
Here is the call graph for this function:

◆ getDocument()

Document org.turro.configuration.ConfigurationSet.getDocument ( )

Definition at line 116 of file ConfigurationSet.java.

116  {
117  loadSet();
118  return doc;
119  }

◆ getNodeValue()

String org.turro.configuration.ConfigurationSet.getNodeValue ( Path  path,
String  name 
)

Definition at line 105 of file ConfigurationSet.java.

105  {
106  try {
107  loadSet();
108  path.setDoc(doc);
109  return path.getNodeValue(name);
110  } catch (JDOMException ex) {
111  Logger.getLogger(ConfigurationSet.class.getName()).log(Level.SEVERE, ElephantContext.logMsg(null), ex);
112  }
113  return null;
114  }
Here is the call graph for this function:

◆ setChildrenValue()

void org.turro.configuration.ConfigurationSet.setChildrenValue ( Path  path,
String  element,
String  name,
List< String >  values 
)

Definition at line 50 of file ConfigurationSet.java.

50  {
51  try {
52  loadSet();
53  path.setDoc(doc);
54  path.setChildrenValue(element, name, values);
55  saveSet();
56  } catch (JDOMException ex) {
57  Logger.getLogger(ConfigurationSet.class.getName()).log(Level.SEVERE, ElephantContext.logMsg(null), ex);
58  }
59  }

◆ setChildrenValues()

void org.turro.configuration.ConfigurationSet.setChildrenValues ( Path  path,
String  element,
String  name[],
List< String[]>  values 
)

Definition at line 61 of file ConfigurationSet.java.

61  {
62  try {
63  loadSet();
64  path.setDoc(doc);
65  path.setChildrenValues(element, name, values);
66  saveSet();
67  } catch (JDOMException ex) {
68  Logger.getLogger(ConfigurationSet.class.getName()).log(Level.SEVERE, ElephantContext.logMsg(null), ex);
69  }
70  }

◆ setDocument()

void org.turro.configuration.ConfigurationSet.setDocument ( Document  doc)

Definition at line 121 of file ConfigurationSet.java.

121  {
122  this.doc = doc;
123  saveSet();
124  }

◆ setNodeValue()

void org.turro.configuration.ConfigurationSet.setNodeValue ( Path  path,
String  name,
String  value 
)

Definition at line 72 of file ConfigurationSet.java.

72  {
73  try {
74  loadSet();
75  path.setDoc(doc);
76  path.setNodeValue(name, value);
77  saveSet();
78  } catch (JDOMException ex) {
79  Logger.getLogger(ConfigurationSet.class.getName()).log(Level.SEVERE, ElephantContext.logMsg(null), ex);
80  }
81  }
Here is the call graph for this function:

The documentation for this class was generated from the following file: