deegree 2.1 (2007/11/08 09:57 build-328-official)

org.deegree.model.csct.resources
Class Naming

java.lang.Object
  extended by org.deegree.model.csct.resources.Naming

public final class Naming
extends Object

Methods for binding names to ParameterListDescriptors. For example, Projection using this class for binding classification name to parameter list descriptors.

Version:
1.0
Author:
Martin Desruisseaux

Field Summary
static Naming PROJECTIONS
          The naming to use for mapping projection's classification name to parameter descriptor.
 
Method Summary
 void bind(String classification, javax.media.jai.ParameterListDescriptor descriptor)
          Binds a classification name to a parameter list descriptor.
 javax.media.jai.ParameterList getParameterList(String classification, javax.media.jai.ParameterListDescriptor fallback)
          Returns a parameter list for the specified classification.
 String[] list()
          Returns the list of classification names.
 javax.media.jai.ParameterListDescriptor lookup(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

PROJECTIONS

public static final Naming PROJECTIONS
The naming to use for mapping projection's classification name to parameter descriptor.

Method Detail

bind

public void bind(String classification,
                 javax.media.jai.ParameterListDescriptor descriptor)
          throws IllegalArgumentException
Binds a classification name to a parameter list descriptor.

Parameters:
classification - The classification name.
descriptor - the parameter list descriptor.
Throws:
IllegalArgumentException - if a descriptor is already bounds for the specified classification name.

lookup

public javax.media.jai.ParameterListDescriptor lookup(String classification)
Returns a default parameter descriptor for the specified classification name, or null if none is found.

Parameters:
classification - The classification to look for.
Returns:
The descriptor for the specified classification, or null if none.

getParameterList

public javax.media.jai.ParameterList getParameterList(String classification,
                                                      javax.media.jai.ParameterListDescriptor fallback)
Returns a parameter list for the specified classification. If there is no explicit parameter descriptor for the specified classification, then a default descriptor is used.

Parameters:
classification - The classification to look for.
fallback - The default parameter list descriptor to use if no descriptor has been found for the specified classification.
Returns:
A parameter list to use for the specified classification

list

public String[] list()
Returns the list of classification names.

Returns:
list of classification names.

deegree 2.1 (2007/11/08 09:57 build-328-official)

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://deegree.sourceforge.net