com.agimatec.commons.config
Class FileNode
java.lang.Object
com.agimatec.commons.config.Node
com.agimatec.commons.config.FileNode
- All Implemented Interfaces:
- java.io.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
| Fields inherited from class com.agimatec.commons.config.Node |
name |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
dir
protected java.lang.String dir
file
protected java.lang.String file
relative
protected boolean relative
myConfigManager
protected ConfigManager myConfigManager
FileNode
public FileNode(ConfigManager theConfigManager)
getObjectValue
public java.lang.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 java.lang.String getConfigRootPath()
- Returns:
- the config root path
getURLPath
public java.lang.String getURLPath()
- Returns:
- the complete path+filename
getFilePath
public java.lang.String getFilePath()
- Returns:
getDir
public java.lang.String getDir()
setDir
public void setDir(java.lang.String value)
getFile
public java.lang.String getFile()
setFile
public void setFile(java.lang.String value)
getFileContentString
public java.lang.String getFileContentString()
throws java.io.IOException
- Throws:
java.io.IOException
getFileName
public java.lang.String getFileName()
- Returns:
- the filename as it is meant by the tag
Copyright © 2008-2012. All Rights Reserved.