|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.xs.bindings.XSNonNegativeIntegerBinding
public class XSNonNegativeIntegerBinding
Binding object for the type http://www.w3.org/2001/XMLSchema:nonNegativeInteger.
<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>
Field Summary |
---|
Fields inherited from interface org.geotools.xml.Binding |
---|
AFTER, BEFORE, OVERRIDE |
Constructor Summary | |
---|---|
XSNonNegativeIntegerBinding()
|
Method Summary | |
---|---|
java.lang.String |
encode(java.lang.Object object,
java.lang.String value)
|
int |
getExecutionMode()
|
javax.xml.namespace.QName |
getTarget()
|
java.lang.Class |
getType()
This binding returns objects of type Number.class . |
java.lang.Object |
parse(InstanceComponent instance,
java.lang.Object value)
Restriction of integer to non negative values. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XSNonNegativeIntegerBinding()
Method Detail |
---|
public javax.xml.namespace.QName getTarget()
getTarget
in interface Binding
public int getExecutionMode()
getExecutionMode
in interface Binding
Binding.AFTER
,
Binding.BEFORE
,
Binding.OVERRIDE
public java.lang.Class getType()
Number.class
.
getType
in interface Binding
public java.lang.Object parse(InstanceComponent instance, java.lang.Object value) throws java.lang.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
- BigInteger from parent XSIntegerStratagy
java.lang.Exception
public java.lang.String encode(java.lang.Object object, java.lang.String value) throws java.lang.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.
java.lang.Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |