|
|||||||||||
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
Abstract parameter value or group of parameter values.
AbstractParameterDescriptor
,
Serialized FormConstructor Summary | |
protected |
AbstractParameter(org.opengis.parameter.GeneralParameterDescriptor descriptor)
Constructs a parameter value from the specified descriptor. |
Method Summary | |
java.lang.Object |
clone()
Returns a copy of this parameter value or group. |
boolean |
equals(java.lang.Object object)
Compares the specified object with this parameter for equality. |
protected java.lang.String |
formatWKT(Formatter formatter)
Format the inner part of this parameter as Well Known Text (WKT). |
org.opengis.parameter.GeneralParameterDescriptor |
getDescriptor()
Returns the abstract definition of this parameter or group of parameters. |
int |
hashCode()
Returns a hash value for this parameter. |
java.lang.String |
toString()
Returns a string representation of this parameter. |
protected void |
write(TableWriter table)
Write the content of this parameter to the specified table. |
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 |
Constructor Detail |
protected AbstractParameter(org.opengis.parameter.GeneralParameterDescriptor descriptor)
descriptor
- The abstract definition of this parameter or group of parameters.Method Detail |
public org.opengis.parameter.GeneralParameterDescriptor getDescriptor()
getDescriptor
in interface org.opengis.parameter.GeneralParameterValue
public java.lang.Object clone()
clone
in interface org.opengis.parameter.GeneralParameterValue
public boolean equals(java.lang.Object object)
object
- The object to compare to .
public int hashCode()
public final java.lang.String toString()
write(org.geotools.io.TableWriter)
, which should be overriden by subclasses.
toString
in class Formattable
protected void write(TableWriter table) throws java.io.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.
java.io.IOException
- if an error occurs during output operation.protected final java.lang.String formatWKT(Formatter formatter)
formatWKT
in class Formattable
formatter
- The formatter to use.
Formattable.toWKT()
,
Formattable.toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |