More information


de.spieleck.config
Class ConfigFileNode

java.lang.Object
  |
  +--de.spieleck.config.ConfigNodeImpl
        |
        +--de.spieleck.config.ConfigFileNode
All Implemented Interfaces:
ConfigNode

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.


Inner 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, 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, children, childrenNamed, copyChildren, countChildren, countChildrenNamed, getBoolean, getBoolean, getDouble, getDouble, getInhBoolean, getInhDouble, getInhInt, getInhString, getInt, getInt, getName, getParent, getPath, getString, getString, getValue, node, nodeInh, print, 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, getString, getString, node, nodeInh, print
 

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

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

More information