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()
AbstractSimpleBinding
Binding.AFTER
.
Subclasses should override to change this behaviour.
getExecutionMode
in interface Binding
getExecutionMode
in class AbstractSimpleBinding
Binding.AFTER
,
Binding.BEFORE
,
Binding.OVERRIDE
public Object parse(InstanceComponent instance, Object value) throws Exception
AbstractSimpleBinding
null
.parse
in interface SimpleBinding
parse
in class AbstractSimpleBinding
instance
- 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.Exception
public String encode(Object object, String value) throws Exception
encode
in interface SimpleBinding
encode
in class AbstractSimpleBinding
object
- The object being encoded, never null.value
- The string returned from another binding in the type hierachy, which could be
null.Exception
Copyright © 1996–2019 Geotools. All rights reserved.