org.grinvin.factories

Class AbstractFactory

Known Direct Subclasses:
AbstractGraphFactory

public class AbstractFactory
extends java.lang.Object

Field Summary

protected ParameterList
list
protected String[]
valueStrings
protected Object[]
values

Method Summary

protected void
checkParameters(Object[] values)
Check whether all parameters were properly initialized.
Object[]
getParameterValues()
ParameterList
getParameters()
String
getParametersAsString()
Convert the current parameters to a 'query' string, which is usually used as a suffix of an identifier or URI for the object created by this factory.
void
setParameterValues(Object[] values)

Field Details

list

protected ParameterList list

valueStrings

protected String[] valueStrings

values

protected Object[] values

Method Details

checkParameters

protected void checkParameters(Object[] values)
            throws FactoryParameterException
Check whether all parameters were properly initialized. Can be overridden by client. This implementation simply checks whether all parameters have been given a value.
Throws:
FactoryParameterException - when the parameters were not properly initialized or invalid.

getParameterValues

public Object[] getParameterValues()

getParameters

public ParameterList getParameters()

getParametersAsString

public String getParametersAsString()
Convert the current parameters to a 'query' string, which is usually used as a suffix of an identifier or URI for the object created by this factory.

setParameterValues

public void setParameterValues(Object[] values)
            throws FactoryParameterException