public abstract class AbstractParameter extends Formattable implements GeneralParameterValue, Serializable
AbstractParameterDescriptor
,
Serialized FormSINGLE_LINE
Modifier | Constructor and Description |
---|---|
protected |
AbstractParameter(GeneralParameterDescriptor descriptor)
Constructs a parameter value from the specified descriptor.
|
Modifier and Type | Method and Description |
---|---|
AbstractParameter |
clone()
Returns a copy of this parameter value or group.
|
boolean |
equals(Object object)
Compares the specified object with this parameter for equality.
|
protected String |
formatWKT(Formatter formatter)
Format the inner part of this parameter as Well
Known Text (WKT).
|
GeneralParameterDescriptor |
getDescriptor()
Returns the abstract definition of this parameter or group of parameters.
|
int |
hashCode()
Returns a hash value for this parameter.
|
String |
toString()
Returns a string representation of this parameter.
|
protected void |
write(TableWriter table)
Write the content of this parameter to the specified table.
|
cleanupThreadLocals, toWKT, toWKT, toWKT, toWKT
protected AbstractParameter(GeneralParameterDescriptor descriptor)
descriptor
- The abstract definition of this parameter or group of parameters.public GeneralParameterDescriptor getDescriptor()
getDescriptor
in interface GeneralParameterValue
public AbstractParameter clone()
clone
in interface GeneralParameterValue
clone
in class Object
Object.clone()
public boolean equals(Object object)
public int hashCode()
public final String toString()
write(org.geotools.util.TableWriter)
, which should be overridden by subclasses.toString
in class Formattable
protected void write(TableWriter table) throws IOException
toString()
method. The table's columns are
defined as below:
The default implementation is suitable for most cases. However, subclasses are free to override this method with the following idiom:
table.write("parameter name"); table.nextColumn() table.write('='); table.nextColumn() table.write("parameter value"); table.nextLine()
table
- The table where to format the parameter value.IOException
- if an error occurs during output operation.protected final String formatWKT(Formatter formatter)
formatWKT
in class Formattable
formatter
- The formatter to use."GEOGCS"
).Formattable.toWKT()
,
Formattable.toString()
Copyright © 1996–2019 Geotools. All rights reserved.