|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectFormattableObject
AbstractIdentifiedObject
AbstractParameterDescriptor
DefaultParameterDescriptorGroup
@Immutable public class DefaultParameterDescriptorGroup
The definition of a group of related parameters used by an operation method.
ParameterGroup,
DefaultParameterDescriptor,
Serialized Form
| referencing/geotk-referencing (download) | View source code for this class |
| Field Summary |
|---|
| Fields inherited from class AbstractIdentifiedObject |
|---|
EMPTY_ALIAS_ARRAY, EMPTY_IDENTIFIER_ARRAY, IDENTIFIER_COMPARATOR, NAME_COMPARATOR, REMARKS_COMPARATOR |
| Fields inherited from class FormattableObject |
|---|
EPSG, GEOTIFF, INTERNAL, OGC, SINGLE_LINE |
| Fields inherited from interface IdentifiedObject |
|---|
ALIAS_KEY, IDENTIFIERS_KEY, NAME_KEY, REMARKS_KEY |
| Constructor Summary | |
|---|---|
DefaultParameterDescriptorGroup(Citation authority,
String name,
GeneralParameterDescriptor... parameters)
Constructs a parameter group from a name and an authority. |
|
DefaultParameterDescriptorGroup(Map<String,?> properties,
GeneralParameterDescriptor... parameters)
Constructs a parameter group from a set of properties. |
|
DefaultParameterDescriptorGroup(Map<String,?> properties,
int minimumOccurs,
int maximumOccurs,
GeneralParameterDescriptor... parameters)
Constructs a parameter group from a set of properties. |
|
DefaultParameterDescriptorGroup(ParameterDescriptorGroup group)
Constructs a group with the same values than the specified one. |
|
DefaultParameterDescriptorGroup(String name,
GeneralParameterDescriptor... parameters)
Constructs a parameter group from a name. |
|
| Method Summary | |
|---|---|
protected int |
computeHashCode()
Computes a hash value for this identified object. |
ParameterValueGroup |
createValue()
Creates a new instance of parameter value group initialized with the default values. |
GeneralParameterDescriptor |
descriptor(String name)
Returns the first parameter in this group for the specified identifier code. |
List<GeneralParameterDescriptor> |
descriptors()
Returns the parameters in this group. |
boolean |
equals(Object object,
ComparisonMode mode)
Compares the specified object with this parameter group for equality. |
int |
getMaximumOccurs()
The maximum number of times that values for this parameter group are required. |
String |
toString()
Returns a string representation of this descriptor. |
| Methods inherited from class AbstractParameterDescriptor |
|---|
formatWKT, getMinimumOccurs |
| Methods inherited from class AbstractIdentifiedObject |
|---|
equals, equals, equals, equals, getAlias, getIdentifier, getIdentifier, getIdentifiers, getName, getName, getName, getProperties, getProperties, getRemarks, hashCode, nameMatches, nameMatches, nameMatches |
| Methods inherited from class FormattableObject |
|---|
getDefaultIndentation, print, setDefaultIndentation, toWKT, toWKT, toWKT |
| Methods inherited from class Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface GeneralParameterDescriptor |
|---|
getMinimumOccurs |
| Methods inherited from interface IdentifiedObject |
|---|
getAlias, getIdentifiers, getName, getRemarks, toWKT |
| Constructor Detail |
|---|
public DefaultParameterDescriptorGroup(ParameterDescriptorGroup group)
group - The descriptor to copy.
public DefaultParameterDescriptorGroup(String name,
GeneralParameterDescriptor... parameters)
name - The parameter group name.parameters - The parameter descriptors for this group.
public DefaultParameterDescriptorGroup(Citation authority,
String name,
GeneralParameterDescriptor... parameters)
authority - The authority (e.g. OGC).name - The parameter group name.parameters - The parameter descriptors for this group.
public DefaultParameterDescriptorGroup(Map<String,?> properties,
GeneralParameterDescriptor... parameters)
properties - Set of properties. Should contains at least "name".parameters - The parameter descriptors for this group.
public DefaultParameterDescriptorGroup(Map<String,?> properties,
int minimumOccurs,
int maximumOccurs,
GeneralParameterDescriptor... parameters)
properties - Set of properties. Should contains at least "name".minimumOccurs - The minimum number of times
that values for this parameter group are required.maximumOccurs - The maximum number of times
that values for this parameter group are required.parameters - The parameter descriptors for this group.| Method Detail |
|---|
public int getMaximumOccurs()
getMaximumOccurs in interface GeneralParameterDescriptorgetMaximumOccurs in class AbstractParameterDescriptorAbstractParameterDescriptor.getMinimumOccurs()public ParameterValueGroup createValue()
this object.
createValue in interface GeneralParameterDescriptorcreateValue in interface ParameterDescriptorGroupcreateValue in class AbstractParameterDescriptorpublic List<GeneralParameterDescriptor> descriptors()
descriptors in interface ParameterDescriptorGroup
public GeneralParameterDescriptor descriptor(String name)
throws ParameterNotFoundException
descriptor in interface ParameterDescriptorGroupname - The case insensitive identifier code of the parameter to search for.
ParameterNotFoundException - if there is no parameter for the given identifier code.
public boolean equals(Object object,
ComparisonMode mode)
equals in interface LenientComparableequals in class AbstractParameterDescriptorobject - The object to compare to this.mode - STRICT for performing a strict comparison, or
IGNORE_METADATA for comparing only properties
relevant to transformations.
true if both objects are equal.protected int computeHashCode()
AbstractIdentifiedObject.hashCode() when first needed.
Implementation specific feature
In the Geotk implementation, the name, identifiers and remarks are not used for hash code computation.
Consequently two identified objects will return the same hash value if they are equal in the
sense of equals(…,
ComparisonMode.IGNORE_METADATA). This feature allows users to
implement metadata-insensitive HashMap.
computeHashCode in class AbstractParameterDescriptorpublic String toString()
ParameterWriter.toString(ParameterDescriptorGroup), which
will format this descriptor in a table.
toString in class FormattableObject
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||