public class XSNonNegativeIntegerBinding extends Object implements SimpleBinding
<xs:simpleType name="nonNegativeInteger" id="nonNegativeInteger">
<xs:annotation>
<xs:documentation source="http://www.w3.org/TR/xmlschema-2/#nonNegativeInteger"/>
</xs:annotation>
<xs:restriction base="xs:integer">
<xs:minInclusive value="0" id="nonNegativeInteger.minInclusive"/>
</xs:restriction>
</xs:simpleType>
| Constructor and Description |
|---|
XSNonNegativeIntegerBinding() |
| Modifier and Type | Method and Description |
|---|---|
String |
encode(Object object,
String value) |
int |
getExecutionMode() |
QName |
getTarget() |
Class |
getType()
This binding returns objects of type
Number.class |
Object |
parse(InstanceComponent instance,
Object value)
Restriction of integer to non negative values.
|
public QName getTarget()
public int getExecutionMode()
getExecutionMode in interface BindingBinding.AFTER,
Binding.BEFORE,
Binding.OVERRIDEpublic Class getType()
Number.class.
public Object parse(InstanceComponent instance, Object value) throws Exception
Please just treat this as a Number, actual value returned may be BigInteger or Long or Integer.
parse in interface SimpleBindinginstance - with text to be parsedvalue - BigInteger from parent XSIntegerStratagyExceptionpublic String encode(Object object, String value) throws Exception
encode in interface SimpleBindingobject - 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.