public class UnitBinding extends AbstractSimpleBinding
| Constructor and Description |
|---|
UnitBinding() |
| Modifier and Type | Method and Description |
|---|---|
String |
encode(Object object,
String value)
Performs the encoding of the object as a String.
|
int |
getExecutionMode()
This implementation returns
Binding.AFTER. |
QName |
getTarget() |
Class |
getType() |
Object |
parse(InstanceComponent instance,
Object value)
Subclasses need to override this method, this implementation returns
null. |
public QName getTarget()
public Class getType()
public int getExecutionMode()
AbstractSimpleBindingBinding.AFTER.
Subclasses should override to change this behaviour.
getExecutionMode in interface BindinggetExecutionMode in class AbstractSimpleBindingBinding.AFTER,
Binding.BEFORE,
Binding.OVERRIDEpublic Object parse(InstanceComponent instance, Object value) throws Exception
AbstractSimpleBindingnull.parse in interface SimpleBindingparse in class AbstractSimpleBindinginstance - The component being parsed.value - The result of the parse from another strategy in the type hierarchy. Could be
null if this is the first strategy being executed.Exceptionpublic String encode(Object object, String value) throws Exception
encode in interface SimpleBindingencode in class AbstractSimpleBindingobject - The object being encoded, never null.value - The string returned from another binding in the type hierachy, which could be
null.ExceptionCopyright © 1996–2019 Geotools. All rights reserved.