com.agimatec.commons.config
Class FileNode

java.lang.Object
  extended by com.agimatec.commons.config.Node
      extended by com.agimatec.commons.config.FileNode
All Implemented Interfaces:
Serializable

public class FileNode
extends Node

Description: a config entry representing a reference to a file or directory. Copyright: Copyright (c) 2001-2007

Author:
Roman Stumm
See Also:
Serialized Form

Field Summary
protected  String dir
           
protected  String file
           
protected  ConfigManager myConfigManager
           
protected  boolean relative
           
 
Fields inherited from class com.agimatec.commons.config.Node
name
 
Constructor Summary
FileNode(ConfigManager theConfigManager)
           
 
Method Summary
 String getConfigRootPath()
           
 String getDir()
           
 String getFile()
           
 String getFileContentString()
           
 String getFileName()
           
 String getFilePath()
           
 Object getObjectValue()
           
 boolean getRelative()
          return if the file name/path is relative to cfgroot (true) or absolute (false).
 String getURLPath()
           
 void setDir(String value)
           
 void setFile(String value)
           
 void setRelative(boolean aRelative)
           
 
Methods inherited from class com.agimatec.commons.config.Node
evaluatePath, getName, setName, toString, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

dir

protected String dir

file

protected String file

relative

protected boolean relative

myConfigManager

protected ConfigManager myConfigManager
Constructor Detail

FileNode

public FileNode(ConfigManager theConfigManager)
Method Detail

getObjectValue

public Object getObjectValue()
Specified by:
getObjectValue in class Node

setRelative

public void setRelative(boolean aRelative)

getRelative

public boolean getRelative()
return if the file name/path is relative to cfgroot (true) or absolute (false). true is the default.


getConfigRootPath

public String getConfigRootPath()
Returns:
the config root path

getURLPath

public String getURLPath()
Returns:
the complete path+filename

getFilePath

public String getFilePath()
Returns:

getDir

public String getDir()

setDir

public void setDir(String value)

getFile

public String getFile()

setFile

public void setFile(String value)

getFileContentString

public String getFileContentString()
                            throws IOException
Throws:
IOException

getFileName

public String getFileName()
Returns:
the filename as it is meant by the tag


Copyright © 2008-2012. All Rights Reserved.