|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.geotools.referencing.wkt.Formattable org.geotools.parameter.AbstractParameter org.geotools.parameter.ParameterGroup
A group of related parameter values. The same group can be repeated more than once in an
operation or higher level
ParameterValueGroup
, if those instances contain different
values of one or more ParameterValue
s which suitably distinquish among
those groups.
DefaultParameterDescriptorGroup
,
Parameter
,
Serialized FormField Summary | |
static org.opengis.parameter.ParameterValueGroup |
EMPTY
An empty parameter value group. |
Constructor Summary | |
ParameterGroup(java.util.Map properties,
org.opengis.parameter.GeneralParameterValue[] values)
Constructs a parameter group from the specified list of parameters. |
|
ParameterGroup(org.opengis.parameter.ParameterDescriptorGroup descriptor)
Constructs a parameter group from the specified descriptor. |
|
ParameterGroup(org.opengis.parameter.ParameterDescriptorGroup descriptor,
org.opengis.parameter.GeneralParameterValue[] values)
Constructs a parameter group from the specified descriptor and list of parameters. |
Method Summary | |
org.opengis.parameter.ParameterValueGroup |
addGroup(java.lang.String name)
Creates a new group of the specified name. |
java.lang.Object |
clone()
Returns a deep copy of this group of parameter values. |
boolean |
equals(java.lang.Object object)
Compares the specified object with this parameter for equality. |
java.util.List |
groups(java.lang.String name)
Returns all subgroups with the specified name. |
int |
hashCode()
Returns a hash value for this parameter. |
org.opengis.parameter.ParameterValue |
parameter(java.lang.String name)
Returns the value in this group for the specified identifier code. |
java.util.List |
values()
Returns the values in this group. |
Methods inherited from class org.geotools.parameter.AbstractParameter |
formatWKT, getDescriptor, toString, write |
Methods inherited from class org.geotools.referencing.wkt.Formattable |
toWKT, toWKT, toWKT |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.opengis.parameter.GeneralParameterValue |
getDescriptor |
Field Detail |
public static org.opengis.parameter.ParameterValueGroup EMPTY
Constructor Detail |
public ParameterGroup(org.opengis.parameter.ParameterDescriptorGroup descriptor)
descriptor
- The descriptor for this group.public ParameterGroup(org.opengis.parameter.ParameterDescriptorGroup descriptor, org.opengis.parameter.GeneralParameterValue[] values)
descriptor
- The descriptor for this group.values
- The list of parameter values.
java.lang.IllegalStateException
- if the number of parameter
occurences doesn't matches the number declared in the
descriptor.public ParameterGroup(java.util.Map properties, org.opengis.parameter.GeneralParameterValue[] values)
properties
- The properties for the
operation parameter group
to construct from the list of parameters.values
- The list of parameter values.
java.lang.IllegalStateException
- if the number of parameter
occurences doesn't matches the number declared in the
descriptor.Method Detail |
public java.util.List values()
add
operation.
values
in interface org.opengis.parameter.ParameterValueGroup
public org.opengis.parameter.ParameterValue parameter(java.lang.String name) throws org.opengis.parameter.ParameterNotFoundException
minimumOccurs == 0
),
then a parameter value is
automatically created and initialized to its
default value (if any).
This convenience method provides a way to get and set parameter values by name. For
example the following idiom fetches a floating point value for the
"false_easting"
parameter:
double value =
parameter("false_easting").doubleValue();
This method do not search recursively in subgroups. This is because more than one subgroup may exist for the same descriptor. The user must query all subgroups and select explicitly the appropriate one to use.
parameter
in interface org.opengis.parameter.ParameterValueGroup
name
- The case insensitive identifier code of the
parameter to search for.
org.opengis.parameter.ParameterNotFoundException
- if there is no parameter value for the given identifier
code.public java.util.List groups(java.lang.String name) throws org.opengis.parameter.ParameterNotFoundException
minimumOccurs == 0
)
and no value were set, then this method returns an empty set.
groups
in interface org.opengis.parameter.ParameterValueGroup
name
- The case insensitive identifier code
of the parameter group to search for.
org.opengis.parameter.ParameterNotFoundException
- if no descriptor
was found for the given name.public org.opengis.parameter.ParameterValueGroup addGroup(java.lang.String name) throws org.opengis.parameter.ParameterNotFoundException, org.opengis.parameter.InvalidParameterCardinalityException
addGroup
in interface org.opengis.parameter.ParameterValueGroup
name
- The case insensitive identifier code of the
parameter group to create.
org.opengis.parameter.ParameterNotFoundException
- if no descriptor
was found for the given name.
org.opengis.parameter.InvalidParameterCardinalityException
- if this parameter group already contains the
maximum number of occurences
of subgroups of the given name.public boolean equals(java.lang.Object object)
equals
in class AbstractParameter
object
- The object to compare to .
public int hashCode()
hashCode
in class AbstractParameter
public java.lang.Object clone()
clone
in interface org.opengis.parameter.ParameterValueGroup
clone
in class AbstractParameter
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |