public class XSPositiveIntegerBinding extends Object implements SimpleBinding
<xs:simpleType name="positiveInteger" id="positiveInteger">
<xs:annotation>
<xs:documentation source="http://www.w3.org/TR/xmlschema-2/#positiveInteger"/>
</xs:annotation>
<xs:restriction base="xs:nonNegativeInteger">
<xs:minInclusive value="1" id="positiveInteger.minInclusive"/>
</xs:restriction>
</xs:simpleType>
Constructor and Description |
---|
XSPositiveIntegerBinding() |
Modifier and Type | Method and Description |
---|---|
String |
encode(Object object,
String value) |
int |
getExecutionMode() |
QName |
getTarget() |
Class |
getType()
This binding returns objects of type
BigInteger |
Object |
parse(InstanceComponent instance,
Object value)
Restriction of integer to positive values.
|
public QName getTarget()
public int getExecutionMode()
getExecutionMode
in interface Binding
Binding.AFTER
,
Binding.BEFORE
,
Binding.OVERRIDE
public Class getType()
BigInteger
.
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 SimpleBinding
instance
- with text to be parsedvalue
- Number from parent XSNonNegativeIntegerStratagyException
public String encode(Object object, String value) throws Exception
encode
in interface SimpleBinding
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.