net.sf.jfilesync.settings
Class TConfig
java.lang.Object
net.sf.jfilesync.settings.TConfig
public class TConfig
- extends java.lang.Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XML_ROOT
private static final java.lang.String XML_ROOT
- See Also:
- Constant Field Values
XML_PARAM_ROOT
private static final java.lang.String XML_PARAM_ROOT
- See Also:
- Constant Field Values
XML_CONNECTION_CONF
private static final java.lang.String XML_CONNECTION_CONF
- See Also:
- Constant Field Values
XML_CON
private static final java.lang.String XML_CON
- See Also:
- Constant Field Values
XML_CON_NAME
private static final java.lang.String XML_CON_NAME
- See Also:
- Constant Field Values
XML_CON_USER
private static final java.lang.String XML_CON_USER
- See Also:
- Constant Field Values
XML_CON_HOST
private static final java.lang.String XML_CON_HOST
- See Also:
- Constant Field Values
XML_CON_PORT
private static final java.lang.String XML_CON_PORT
- See Also:
- Constant Field Values
XML_CON_PROTOCOL
private static final java.lang.String XML_CON_PROTOCOL
- See Also:
- Constant Field Values
XML_CON_PASSWORD
private static final java.lang.String XML_CON_PASSWORD
- See Also:
- Constant Field Values
XML_BOOKMARKS_TAG
private static final java.lang.String XML_BOOKMARKS_TAG
- See Also:
- Constant Field Values
XML_BOOMARK_TAG
private static final java.lang.String XML_BOOMARK_TAG
- See Also:
- Constant Field Values
config
private org.w3c.dom.Document config
progSettings
private TProgramSettings progSettings
LOGGER
private static final java.util.logging.Logger LOGGER
TConfig
public TConfig()
TConfig
public TConfig(org.w3c.dom.Document config)
createFreshConfig
private org.w3c.dom.Document createFreshConfig()
throws javax.xml.parsers.ParserConfigurationException
- Throws:
javax.xml.parsers.ParserConfigurationException
validateConfig
private void validateConfig(org.w3c.dom.Document document)
getDOMDocument
public org.w3c.dom.Document getDOMDocument()
getSavedConnections
public ConnectionConfig[] getSavedConnections()
extractString
private java.lang.String extractString(org.w3c.dom.Node node)
extractInt
private int extractInt(org.w3c.dom.Node node)
throws TParseException
- Throws:
TParseException
addConnectionData
public void addConnectionData(ConnectionConfig conConfig)
removeConnectionData
public void removeConnectionData(java.lang.String description)
addPortToConnectionElement
private void addPortToConnectionElement(org.w3c.dom.Element conElem,
int port,
int pluginID)
changeConnectionData
public void changeConnectionData(ConnectionConfig conConfig)
findConnectionNode
private org.w3c.dom.Node findConnectionNode(java.lang.String descr)
deleteChildsOf
private void deleteChildsOf(org.w3c.dom.Node node)
addBookmark
public void addBookmark(java.lang.String bookmark)
removeBookmark
public void removeBookmark(java.lang.String bookmark)
removeEmptyTextNodes
private void removeEmptyTextNodes(org.w3c.dom.Element element)
containsBookmark
private boolean containsBookmark(org.w3c.dom.Element bookmarkElement,
java.lang.String bookmark)
getAllBookmarks
public java.lang.String[] getAllBookmarks()
addBookmarkToList
private void addBookmarkToList(java.util.List<java.lang.String> bookmarkList,
org.w3c.dom.Element bookmarkElement)
getProgramSettings
public TProgramSettings getProgramSettings()