|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.geotools.xs.bindings.XSPositiveIntegerBinding
public class XSPositiveIntegerBinding
Binding object for the type http://www.w3.org/2001/XMLSchema:positiveInteger.
<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>
Field Summary |
---|
Fields inherited from interface org.geotools.xml.Binding |
---|
AFTER, BEFORE, OVERRIDE |
Constructor Summary | |
---|---|
XSPositiveIntegerBinding()
|
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 BigInteger . |
java.lang.Object |
parse(InstanceComponent instance,
java.lang.Object value)
Restriction of integer to positive values. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XSPositiveIntegerBinding()
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()
BigInteger
.
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
- Number from parent XSNonNegativeIntegerStratagy
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 |