org.geotools.resources
Class DescriptorNaming

java.lang.Object
  extended byorg.geotools.resources.DescriptorNaming

Deprecated. Was used for the legacy CTS implementation only. No replacement.

public final class DescriptorNaming
extends java.lang.Object

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

Version:
$Id: DescriptorNaming.java 17672 2006-01-19 00:25:55Z desruisseaux $
Author:
Martin Desruisseaux

Field Summary
static DescriptorNaming PROJECTIONS
          Deprecated. The naming to use for mapping projection's classification name to parameter descriptor.
 
Method Summary
 void bind(java.lang.String classification, javax.media.jai.ParameterListDescriptor descriptor)
          Deprecated. Binds a classification name to a parameter list descriptor.
static boolean equals(javax.media.jai.ParameterListDescriptor d1, javax.media.jai.ParameterListDescriptor d2)
          Deprecated. Checks if two ParameterListDescriptor are equal.
static boolean equals(javax.media.jai.ParameterList p1, javax.media.jai.ParameterList p2)
          Deprecated. Checks if two ParameterList are equal.
 javax.media.jai.ParameterList getParameterList(java.lang.String classification, javax.media.jai.ParameterListDescriptor fallback)
          Deprecated. Returns a parameter list for the specified classification.
static Unit getParameterUnit(java.lang.String name)
          Deprecated. Returns the unit for the specified parameter.
 java.lang.String[] list()
          Deprecated. Returns the list of classification names.
 javax.media.jai.ParameterListDescriptor lookup(java.lang.String classification)
          Deprecated. 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 DescriptorNaming PROJECTIONS
Deprecated. 
The naming to use for mapping projection's classification name to parameter descriptor.

Method Detail

bind

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

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

lookup

public javax.media.jai.ParameterListDescriptor lookup(java.lang.String classification)
Deprecated. 
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(java.lang.String classification,
                                                      javax.media.jai.ParameterListDescriptor fallback)
Deprecated. 
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 java.lang.String[] list()
Deprecated. 
Returns the list of classification names.


equals

public static boolean equals(javax.media.jai.ParameterListDescriptor d1,
                             javax.media.jai.ParameterListDescriptor d2)
Deprecated. 
Checks if two ParameterListDescriptor are equal. This method is a workaround, because the default ParameterListDescriptor do not overrides Object.equals(java.lang.Object).


equals

public static boolean equals(javax.media.jai.ParameterList p1,
                             javax.media.jai.ParameterList p2)
Deprecated. 
Checks if two ParameterList are equal. This method is a workaround, because the default ParameterList do not overrides Object.equals(java.lang.Object).


getParameterUnit

public static Unit getParameterUnit(java.lang.String name)
Deprecated. 
Returns the unit for the specified parameter. This method returns one of the following:

Parameters:
name - The parameter name.
Returns:
The parameter unit, or null.


Copyright © GeoTools. All Rights Reserved.