fedora.server.config
Class Parameter

java.lang.Object
  extended by fedora.server.config.Parameter
All Implemented Interfaces:
Constants

public class Parameter
extends java.lang.Object
implements Constants


Nested Class Summary
 
Nested classes/interfaces inherited from interface fedora.common.Constants
Constants.FedoraHome
 
Field Summary
 
Fields inherited from interface fedora.common.Constants
ACTION, BDEF, BMECH, DATASTREAM, DC, DISSEMINATOR, ENVIRONMENT, FEDORA, FEDORA_HOME, FEDORA_SYSTEM_DEF_PID, FEDORA_SYSTEM_DEF_URI, HTTP_REQUEST, MODEL, OBJECT, RDF, RECOVERY, RELS_EXT, RESOURCE, SUBJECT, TUCANA, VIEW, XSD
 
Constructor Summary
Parameter(java.lang.String name, java.lang.String value, boolean isFilePath, java.lang.String comment, java.util.Map profileValues)
           
 
Method Summary
 java.lang.String getComment()
           
 boolean getIsFilePath()
           
 java.lang.String getName()
           
 java.util.Map getProfileValues()
           
 java.lang.String getValue()
          Gets the value of the parameter.
 java.lang.String getValue(boolean asAbsolutePath)
          Gets the value of the parameter.
 void setComment(java.lang.String comment)
           
 void setIsFilePath(boolean newValue)
           
 void setValue(java.lang.String newValue)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Parameter

public Parameter(java.lang.String name,
                 java.lang.String value,
                 boolean isFilePath,
                 java.lang.String comment,
                 java.util.Map profileValues)
Method Detail

getName

public java.lang.String getName()

getValue

public java.lang.String getValue()
Gets the value of the parameter. Same as getValue(false).

Returns:
The value of the parameter

getValue

public java.lang.String getValue(boolean asAbsolutePath)
Gets the value of the parameter. Prepends the location of FEDORA_HOME if asAbsolutePath is true and the parameter location does not already specify an absolute pathname.

Parameters:
asAbsolutePath - Whether to return the parameter value as an absolute file path relative to FEDORA_HOME.
Returns:
The value, null if undefined.

setValue

public void setValue(java.lang.String newValue)

getProfileValues

public java.util.Map getProfileValues()

setIsFilePath

public void setIsFilePath(boolean newValue)

getIsFilePath

public boolean getIsFilePath()

getComment

public java.lang.String getComment()

setComment

public void setComment(java.lang.String comment)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object