public class NullTypeBinding extends AbstractSimpleBinding
<code>
<simpleType name="NullType">
<annotation>
<documentation>
If a bounding shape is not provided for a feature collection,
explain why. Allowable values are:
innapplicable - the features do not have geometry
unknown - the boundingBox cannot be computed
unavailable - there may be a boundingBox but it is not divulged
missing - there are no features
</documentation>
</annotation>
<restriction base="string">
<enumeration value="inapplicable"/>
<enumeration value="unknown"/>
<enumeration value="unavailable"/>
<enumeration value="missing"/>
</restriction>
</simpleType>
</code>
| Constructor and Description |
|---|
NullTypeBinding() |
| 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) |
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
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
AbstractSimpleBindingencode 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–2021 Geotools. All rights reserved.