Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.jabbee.util
Class ConfigHandler  view ConfigHandler download ConfigHandler.java

java.lang.Object
  extended byjava.lang.Thread
      extended byorg.jabbee.util.ConfigHandler
All Implemented Interfaces:
java.lang.Runnable
Direct Known Subclasses:
ConfigReader, ConfigWriter

public class ConfigHandler
extends java.lang.Thread

Base class for handling various configuration file tasks

Version:
0.01

Nested Class Summary
 
Nested classes inherited from class java.lang.Thread
java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
 org.jabbee.ui.panels.Components components
          Components panel
 org.jabbee.ui.panels.Connections connections
          Connections panel
 org.jabbee.ui.panels.Filesystem filesystem
          Filesystem panel
 org.jabbee.ui.panels.Filters filters
          Filters panel
 org.jabbee.ui.panels.General general
          General panel
 org.jabbee.ui.panels.InputOutput inputOutput
          InputOutput panel
 org.jabbee.ui.panels.Logging logging
          Logging panel
 org.jabbee.ui.panels.Security security
          Security panel
 org.jabbee.ui.panels.AdditionalServices services
          AdditionalServices panel
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
ConfigHandler()
           
 
Method Summary
 java.lang.String getAttributeValue(org.w3c.dom.Node node, java.lang.String attr)
          Gets an attribute value for the specified node
 java.lang.String getChildTextValue(org.w3c.dom.Node node, java.lang.String tagName)
          Gets the value of the text of a node of the given child
 java.util.ArrayList[] getChildValues(org.w3c.dom.Node node, java.lang.String[] subNodes, int arraySize)
          Retrieve an ArrayList of the values of an element's children
 java.util.ArrayList[] getChildValues(org.w3c.dom.Node node, java.lang.String[] childNodes, java.lang.String[] subNodes, int arraySize)
          Same as previous getChildValues, however, this one is more specifically geared towards the allow/deny IP addresses section in the io element
 void setComponentsPanel(org.jabbee.ui.panels.Components c)
          Sets the "Components" panel
 void setConnectionsPanel(org.jabbee.ui.panels.Connections c)
          Sets the "Connections" panel
 void setFilesystemPanel(org.jabbee.ui.panels.Filesystem f)
          Sets the "Filesystem" panel
 void setFiltersPanel(org.jabbee.ui.panels.Filters f)
          Sets the "Filters" panel
 void setGeneralPanel(org.jabbee.ui.panels.General g)
          Sets the "General" panel
 void setInputOutputPanel(org.jabbee.ui.panels.InputOutput i)
          Sets the "InputOutput" panel
 void setLoggingPanel(org.jabbee.ui.panels.Logging l)
          Sets the "Logging" panel
 void setSecurityPanel(org.jabbee.ui.panels.Security s)
          Sets the "Security" panel
 void setServicePanel(org.jabbee.ui.panels.AdditionalServices s)
          Sets the "AdditionalServices" panel
 java.lang.String simulateXPathForAttribute(org.w3c.dom.Node node, java.lang.String path, java.lang.String attribute)
          Traverses the nodes to get the attribute value of the node in the 'XPath' type of path
 java.lang.String simulateXPathForValue(org.w3c.dom.Node node, java.lang.String path)
          Traverses the nodes to get the text of the node in the 'XPath' type of path
 org.w3c.dom.Node simulateXPathGetAttributeNode(org.w3c.dom.Node node, java.lang.String path, java.lang.String attr)
          Traverses the nodes to get the attribute node of the specified node in the 'XPath' type of path
 org.w3c.dom.Node simulateXPathGetNode(org.w3c.dom.Node node, java.lang.String path)
          Traverses the nodes to get the node in the 'XPath' type of path
 boolean simulateXPathPathExists(org.w3c.dom.Node node, java.lang.String path)
          Traverses the nodes in the 'XPath' type of path to discover if that node exists
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, run, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

services

public org.jabbee.ui.panels.AdditionalServices services
AdditionalServices panel


components

public org.jabbee.ui.panels.Components components
Components panel


connections

public org.jabbee.ui.panels.Connections connections
Connections panel


filesystem

public org.jabbee.ui.panels.Filesystem filesystem
Filesystem panel


filters

public org.jabbee.ui.panels.Filters filters
Filters panel


general

public org.jabbee.ui.panels.General general
General panel


inputOutput

public org.jabbee.ui.panels.InputOutput inputOutput
InputOutput panel


logging

public org.jabbee.ui.panels.Logging logging
Logging panel


security

public org.jabbee.ui.panels.Security security
Security panel

Constructor Detail

ConfigHandler

public ConfigHandler()
Method Detail

getChildTextValue

public java.lang.String getChildTextValue(org.w3c.dom.Node node,
                                          java.lang.String tagName)
Gets the value of the text of a node of the given child


simulateXPathForValue

public java.lang.String simulateXPathForValue(org.w3c.dom.Node node,
                                              java.lang.String path)
Traverses the nodes to get the text of the node in the 'XPath' type of path


simulateXPathForAttribute

public java.lang.String simulateXPathForAttribute(org.w3c.dom.Node node,
                                                  java.lang.String path,
                                                  java.lang.String attribute)
Traverses the nodes to get the attribute value of the node in the 'XPath' type of path


simulateXPathPathExists

public boolean simulateXPathPathExists(org.w3c.dom.Node node,
                                       java.lang.String path)
Traverses the nodes in the 'XPath' type of path to discover if that node exists


simulateXPathGetNode

public org.w3c.dom.Node simulateXPathGetNode(org.w3c.dom.Node node,
                                             java.lang.String path)
Traverses the nodes to get the node in the 'XPath' type of path


simulateXPathGetAttributeNode

public org.w3c.dom.Node simulateXPathGetAttributeNode(org.w3c.dom.Node node,
                                                      java.lang.String path,
                                                      java.lang.String attr)
Traverses the nodes to get the attribute node of the specified node in the 'XPath' type of path


getChildValues

public java.util.ArrayList[] getChildValues(org.w3c.dom.Node node,
                                            java.lang.String[] subNodes,
                                            int arraySize)
Retrieve an ArrayList of the values of an element's children


getChildValues

public java.util.ArrayList[] getChildValues(org.w3c.dom.Node node,
                                            java.lang.String[] childNodes,
                                            java.lang.String[] subNodes,
                                            int arraySize)
Same as previous getChildValues, however, this one is more specifically geared towards the allow/deny IP addresses section in the io element


getAttributeValue

public java.lang.String getAttributeValue(org.w3c.dom.Node node,
                                          java.lang.String attr)
Gets an attribute value for the specified node


setGeneralPanel

public void setGeneralPanel(org.jabbee.ui.panels.General g)
Sets the "General" panel


setFiltersPanel

public void setFiltersPanel(org.jabbee.ui.panels.Filters f)
Sets the "Filters" panel


setLoggingPanel

public void setLoggingPanel(org.jabbee.ui.panels.Logging l)
Sets the "Logging" panel


setFilesystemPanel

public void setFilesystemPanel(org.jabbee.ui.panels.Filesystem f)
Sets the "Filesystem" panel


setSecurityPanel

public void setSecurityPanel(org.jabbee.ui.panels.Security s)
Sets the "Security" panel


setConnectionsPanel

public void setConnectionsPanel(org.jabbee.ui.panels.Connections c)
Sets the "Connections" panel


setInputOutputPanel

public void setInputOutputPanel(org.jabbee.ui.panels.InputOutput i)
Sets the "InputOutput" panel


setComponentsPanel

public void setComponentsPanel(org.jabbee.ui.panels.Components c)
Sets the "Components" panel


setServicePanel

public void setServicePanel(org.jabbee.ui.panels.AdditionalServices s)
Sets the "AdditionalServices" panel