Jacson

de.spieleck.config
Class ConfigFileNode

java.lang.Object
  extended byde.spieleck.config.ConfigNodeImpl
      extended byde.spieleck.config.ConfigFileNode
All Implemented Interfaces:
ConfigNode, java.io.Serializable

public class ConfigFileNode
extends ConfigNodeImpl
implements ConfigNode

A ConfigNode that is responsible for actually holding nodes from a file. Note: Due to independance of logical and file structure these nodes are only spurious in the logical part of the tree. They are kept however to hold propper dependencies of nodes on files.

Author:
fsn
See Also:
Serialized Form

Nested Class Summary
 
Nested classes inherited from class de.spieleck.config.ConfigNodeImpl
ConfigNodeImpl.ConfigIterator
 
Field Summary
protected  java.lang.String fName
           
protected  java.io.File inFile
           
protected  long lastModified
           
protected  java.util.Set subReadNodes
           
 
Fields inherited from class de.spieleck.config.ConfigNodeImpl
children, name, parent, PATHSEP, pm, sourceLine, value
 
Method Summary
protected  void addSubReader(ConfigNode subReader)
           
 ConfigFileNode getBranchNode()
          Find the node responsible for reading this node from file.
 java.lang.String getSourceFileName()
           
protected  void setParent(ConfigNode p)
           
 
Methods inherited from class de.spieleck.config.ConfigNodeImpl
addChild, addChild, addChild, children, childrenNamed, copyChildren, countChildren, countChildrenNamed, getBoolean, getBoolean, getDouble, getDouble, getInhBoolean, getInhDouble, getInhInt, getInhString, getInt, getInt, getName, getParent, getPath, getSourceDescription, getSourceLine, getString, getString, getUnexpanded, getValue, node, nodeInh, printXML, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface de.spieleck.config.ConfigNode
children, childrenNamed, countChildren, countChildrenNamed, getBoolean, getBoolean, getDouble, getDouble, getInhBoolean, getInhDouble, getInhInt, getInhString, getInt, getInt, getName, getParent, getPath, getSourceDescription, getString, getString, getUnexpanded, node, nodeInh, printXML
 

Field Detail

fName

protected java.lang.String fName

inFile

protected java.io.File inFile

lastModified

protected long lastModified

subReadNodes

protected java.util.Set subReadNodes
Method Detail

setParent

protected void setParent(ConfigNode p)
Overrides:
setParent in class ConfigNodeImpl

addSubReader

protected void addSubReader(ConfigNode subReader)

getSourceFileName

public java.lang.String getSourceFileName()
Overrides:
getSourceFileName in class ConfigNodeImpl
Returns:
the name of the XML source where this node comes from.

getBranchNode

public ConfigFileNode getBranchNode()
Description copied from interface: ConfigNode
Find the node responsible for reading this node from file.

Specified by:
getBranchNode in interface ConfigNode
Overrides:
getBranchNode in class ConfigNodeImpl
Returns:
the node responsible for reading the file.

Spieleck

Copyleft 2002 spieleck.de.