public abstract class AbstractParameterDescriptor extends AbstractIdentifiedObject implements GeneralParameterDescriptor
AbstractParameter
,
Serialized FormEMPTY_ALIAS_ARRAY, EMPTY_IDENTIFIER_ARRAY, IDENTIFIER_COMPARATOR, NAME_COMPARATOR, REMARKS_COMPARATOR
SINGLE_LINE
ALIAS_KEY, IDENTIFIERS_KEY, NAME_KEY, REMARKS_KEY
Modifier | Constructor and Description |
---|---|
protected |
AbstractParameterDescriptor(GeneralParameterDescriptor descriptor)
Constructs a descriptor with the same values than the specified one.
|
protected |
AbstractParameterDescriptor(Map<String,?> properties,
int minimumOccurs,
int maximumOccurs)
Constructs a parameter from a set of properties.
|
Modifier and Type | Method and Description |
---|---|
abstract GeneralParameterValue |
createValue()
Creates a new instance of parameter value or group initialized
with the default value(s).
|
boolean |
equals(AbstractIdentifiedObject object,
boolean compareMetadata)
Compares the specified object with this parameter for equality.
|
protected String |
formatWKT(Formatter formatter)
Format the inner part of a Well
Known Text (WKT) element.
|
abstract int |
getMaximumOccurs()
The maximum number of times that values for this parameter group or parameter can be
included.
|
int |
getMinimumOccurs()
The minimum number of times that values for this parameter group or parameter are required.
|
int |
hashCode()
Returns a hash value for this parameter.
|
asSet, ensureAngularUnit, ensureLinearUnit, ensureNonNull, ensureNonNull, ensureTimeUnit, equals, equals, equals, equals, getAlias, getIdentifier, getIdentifier, getIdentifiers, getName, getName, getName, getProperties, getProperties, getRemarks, nameMatches, nameMatches, nameMatches
cleanupThreadLocals, toString, toWKT, toWKT, toWKT, toWKT
getAlias, getIdentifiers, getName, getRemarks, toWKT
protected AbstractParameterDescriptor(GeneralParameterDescriptor descriptor)
protected AbstractParameterDescriptor(Map<String,?> properties, int minimumOccurs, int maximumOccurs)
properties
- Set of properties. Should contains at least "name"
.minimumOccurs
- The minimum number of times that values
for this parameter group or parameter are required.maximumOccurs
- The maximum number of times that values
for this parameter group or parameter are required. This value is used in order to check
the range. For ParameterValue
, it should always be 1.public abstract GeneralParameterValue createValue()
this
object.
Example implementation:
return new Parameter(this);
createValue
in interface GeneralParameterDescriptor
public int getMinimumOccurs()
getMinimumOccurs
in interface GeneralParameterDescriptor
getMaximumOccurs()
public abstract int getMaximumOccurs()
getMaximumOccurs
in interface GeneralParameterDescriptor
getMinimumOccurs()
public boolean equals(AbstractIdentifiedObject object, boolean compareMetadata)
equals
in class AbstractIdentifiedObject
object
- The object to compare to this
.compareMetadata
- true
for performing a strict comparaison, or false
for
comparing only properties relevant to transformations.true
if both objects are equal.public int hashCode()
hashCode
in class AbstractIdentifiedObject
protected String formatWKT(Formatter formatter)
formatWKT
in class Formattable
formatter
- The formatter to use.Formattable.toWKT()
,
Formattable.toString()
Copyright © 1996–2019 Geotools. All rights reserved.