org.grinvin.factories
Class AbstractFactory
java.lang.Object
org.grinvin.factories.AbstractFactory
- Factory
public class AbstractFactory
extends java.lang.Object
Provides classes and interfaces for general factories.
Basic concepts
This package introduces the concept of a
factory. These factories can
be used to create graphs or invariants of a certain kind. All factories are represented as objects
of type
Factory
and can have certain parameters set.
protected void | checkParameters(Object[] values) - Check whether all parameters were properly initialized.
|
Object[] | getParameterValues() - Return the (current) parameter values.
|
ParameterList | getParameters() - Returns the list of parameters accepted by this factory.
|
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) - Initialize the factory with new parameter values.
|
valueStrings
protected String[] valueStrings
values
protected Object[] values
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.
getParameterValues
public Object[] getParameterValues()
Return the (current) parameter values.
- getParameterValues in interface Factory
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.