|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fcrepo.server.Parameterized
public abstract class Parameterized
Abstract superclass of all Fedora components that can be configured by a set of name-value pairs.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.fcrepo.common.Constants |
|---|
Constants.FedoraHome |
| Field Summary |
|---|
| Constructor Summary | |
|---|---|
Parameterized()
Creates a Parameterized with no parameters. |
|
Parameterized(List<Parameter> parameters)
|
|
Parameterized(Map<String,String> parameters)
Creates a Parameterized with name-value pairs from the supplied Map. |
|
| Method Summary | |
|---|---|
String |
getParameter(String name)
Gets the value of a named configuration parameter. |
String |
getParameter(String name,
boolean asAbsolutePath)
Gets the value of a named configuration parameter. |
Parameter |
getParameter(String name,
Class<Parameter> type)
|
protected static List<Parameter> |
getParameterList(Map<String,String> map)
|
Map<String,String> |
getParameters()
|
Collection<Parameter> |
getParameters(Class<Parameter> type)
|
Iterator<String> |
parameterNames()
Gets an Iterator over the names of parameters for this component. |
protected void |
setParameter(String name,
String value)
|
protected void |
setParameters(List<Parameter> parameters)
|
protected void |
setParameters(Map<String,String> parameters)
Sets the parameters with name-value pairs from the supplied Map. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Parameterized()
public Parameterized(Map<String,String> parameters)
parameters - The map from which to derive the name-value pairs.public Parameterized(List<Parameter> parameters)
| Method Detail |
|---|
protected final void setParameters(Map<String,String> parameters)
parameters - The map from which to derive the name-value pairs.protected final void setParameters(List<Parameter> parameters)
public final String getParameter(String name,
boolean asAbsolutePath)
name - The parameter name.asAbsolutePath - Whether to return the parameter value as an absolute path relative
to FEDORA_HOME.
public final String getParameter(String name)
name - The parameter name.
public final Parameter getParameter(String name,
Class<Parameter> type)
protected final void setParameter(String name,
String value)
public Map<String,String> getParameters()
public Collection<Parameter> getParameters(Class<Parameter> type)
public final Iterator<String> parameterNames()
protected static List<Parameter> getParameterList(Map<String,String> map)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||