com.agimatec.commons.config
Class FileNode
java.lang.Object
com.agimatec.commons.config.Node
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
| Fields inherited from class com.agimatec.commons.config.Node |
name |
dir
protected String dir
file
protected String file
relative
protected boolean relative
myConfigManager
protected ConfigManager myConfigManager
FileNode
public FileNode(ConfigManager theConfigManager)
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-2011. All Rights Reserved.