|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.deegree_impl.model.resources.Naming
Methods for binding names to ParameterListDescriptor
s. For example,
Projection
using this class for binding classification
name to parameter list descriptors.
Field Summary | |
private java.util.Map |
descriptors
Map classification name to ParameterListDescriptor
objects. |
private java.lang.String |
initializer
The fully qualified name of the class to load for initializing binding, or null if none. |
private java.lang.String |
logger
The logger to use if initialization failed. |
static Naming |
PROJECTIONS
The naming to use for mapping projection's classification name to parameter descriptor. |
Constructor Summary | |
private |
Naming(java.lang.String initializer,
java.lang.String logger)
Construct a Naming object. |
Method Summary | |
void |
bind(java.lang.String classification,
ParameterListDescriptor descriptor)
Binds a classification name to a parameter list descriptor. |
private void |
bindDefaults(java.lang.String method)
Try to bind a set of default projections. |
ParameterList |
getParameterList(java.lang.String classification,
ParameterListDescriptor fallback)
Returns a parameter list for the specified classification. |
java.lang.String[] |
list()
Returns the list of classification names. |
ParameterListDescriptor |
lookup(java.lang.String classification)
Returns a default parameter descriptor for the specified classification name, or null if none is found. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final Naming PROJECTIONS
private java.util.Map descriptors
ParameterListDescriptor
objects. Keys are CaselessStringKey
object, while
values are ParameterListDescriptor
objects.
private final java.lang.String initializer
null
if none. If non-null, then the static initializer
of this class should invokes bind(java.lang.String, ParameterListDescriptor)
for binding a default set of
descriptors.
private final java.lang.String logger
Constructor Detail |
private Naming(java.lang.String initializer, java.lang.String logger)
Naming
object.
initializer
- The fully qualified name of the class
to load for initializing binding.logger
- The logger to use if initialization failed.Method Detail |
private void bindDefaults(java.lang.String method)
public void bind(java.lang.String classification, ParameterListDescriptor descriptor) throws java.lang.IllegalArgumentException
classification
- The classification name.descriptor
- the parameter list descriptor.
java.lang.IllegalArgumentException
- if a descriptor is already
bounds for the specified classification name.public ParameterListDescriptor lookup(java.lang.String classification)
null
if none is found.
classification
- The classification to look for.
null
if none.public ParameterList getParameterList(java.lang.String classification, ParameterListDescriptor fallback)
classification
- The classification to look for.fallback
- The default parameter list descriptor to use if no
descriptor has been found for the specified classification.
public java.lang.String[] list()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |