|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectXSNonNegativeIntegerBinding
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 Binding |
---|
AFTER, BEFORE, OVERRIDE |
Constructor Summary | |
---|---|
XSNonNegativeIntegerBinding()
|
Method Summary | |
---|---|
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. |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XSNonNegativeIntegerBinding()
Method Detail |
---|
public QName getTarget()
getTarget
in interface Binding
public int getExecutionMode()
getExecutionMode
in interface Binding
Binding.AFTER
,
Binding.BEFORE
,
Binding.OVERRIDE
public Class getType()
Number.class
.
getType
in interface Binding
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
- BigInteger from parent XSIntegerStratagy
Exception
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |