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:
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

Field Summary
protected  java.lang.String dir
           
protected  java.lang.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
 java.lang.String getConfigRootPath()
           
 java.lang.String getDir()
           
 java.lang.String getFile()
           
 java.lang.String getFileContentString()
           
 java.lang.String getFileName()
           
 java.lang.String getFilePath()
           
 java.lang.Object getObjectValue()
           
 boolean getRelative()
          return if the file name/path is relative to cfgroot (true) or absolute (false).
 java.lang.String getURLPath()
           
 void setDir(java.lang.String value)
           
 void setFile(java.lang.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 java.lang.String dir

file

protected java.lang.String file

relative

protected boolean relative

myConfigManager

protected ConfigManager myConfigManager
Constructor Detail

FileNode

public FileNode(ConfigManager theConfigManager)
Method Detail

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.