org.jbind.xml.instance.data
Class UnsignedByteData

java.lang.Object
  extended byorg.jbind.xml.instance.data.AbstractData
      extended byorg.jbind.xml.instance.data.AbstractSimpleData
          extended byorg.jbind.xml.instance.data.AbstractDecimalData
              extended byorg.jbind.xml.instance.data.AbstractIntegerData
                  extended byorg.jbind.xml.instance.data.AbstractUnsignedIntData
                      extended byorg.jbind.xml.instance.data.AbstractUnsignedShortData
                          extended byorg.jbind.xml.instance.data.UnsignedByteData
All Implemented Interfaces:
IAnySimpleTypeData, IAnyTypeData, IDecimalData, IHasDigits, IHasOrder, IHasTotalOrder, IIntegerData, ISimpleData, ITextContentProvider, IUnsignedByteData, IUnsignedIntData, IUnsignedLongData, IUnsignedShortData

public class UnsignedByteData
extends AbstractUnsignedShortData
implements IUnsignedByteData


Constructor Summary
UnsignedByteData()
           
 
Method Summary
 int compareSubTypeData_(IDecimalData aData)
          Compares this decimal data with the specified data.
protected  void doAccept(java.lang.String aString)
          Hook method that accepts the normalized value and converts it into a corresponging internal representation (the so called simple storage object).
 java.lang.String getCanonicalForm_()
          Gets the canonical form.
 int getInt()
           
 short getShort()
           
 java.lang.Object getSimpleStorageObject()
          Gets the simple storage object.
 void setInt(int aValue)
           
 void setShort(short aNewValue)
           
 void setSimpleStorageObject(java.lang.Object aValue)
           
 
Methods inherited from class org.jbind.xml.instance.data.AbstractUnsignedShortData
getLong, setLong
 
Methods inherited from class org.jbind.xml.instance.data.AbstractUnsignedIntData
getBigInteger, setBigInteger
 
Methods inherited from class org.jbind.xml.instance.data.AbstractIntegerData
getBigDecimal, setBigDecimal
 
Methods inherited from class org.jbind.xml.instance.data.AbstractDecimalData
compareDecimal_, getNbDigits, getNbFractionDigits, isEqual, isGreater, isGreaterOrEqual, isLess, isLessOrEqual, simpleStorageValueEquals, simpleStorageValueHashCode
 
Methods inherited from class org.jbind.xml.instance.data.AbstractSimpleData
acceptImpl_, completeSimpleStorageAssignment_, doAcceptEnds_, doAcceptStarts_, getLexicalValue_, getNormalizedValue_, getObject, getTextContent_, setLexicalValue_, setObject, toString
 
Methods inherited from class org.jbind.xml.instance.data.AbstractData
accept_, addReferencedData_, createElement_, createElement_, createUncheckedAttributeData_, equals, fetchByXPath_, getAttribute_, getDataDesc_, getFixed_, getImpl_, getParent_, getSubstitutionHead_, getType_, hashCode, isDefault_, isNil_, iterAttributes_, iterElements_, iterReferencedData_, newElementData_, numberByXPath_, removeAttributeData_, selectByXPath_, setAttribute_, setDataDesc_, setImpl_, setSubstitutionHead_, setType_, stringByXPath_, testByXPath_
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jbind.xml.core.data.IUnsignedIntData
getLong, setLong
 
Methods inherited from interface org.jbind.xml.core.data.IIntegerData
getBigInteger, setBigInteger
 
Methods inherited from interface org.jbind.xml.core.data.IDecimalData
compareDecimal_, getBigDecimal, setBigDecimal
 
Methods inherited from interface org.jbind.xml.core.data.IHasOrder
isEqual, isGreater, isGreaterOrEqual, isLess, isLessOrEqual
 
Methods inherited from interface org.jbind.xml.core.data.IHasDigits
getNbDigits, getNbFractionDigits
 
Methods inherited from interface org.jbind.xml.core.data.IAnySimpleTypeData
getObject, setObject, toString
 
Methods inherited from interface org.jbind.xml.core.data.IAnyTypeData
accept_, acceptImpl_, addReferencedData_, createElement_, createElement_, equals, getAttribute_, getDataDesc_, getImpl_, getParent_, getSubstitutionHead_, getType_, hashCode, isDefault_, isNil_, iterAttributes_, iterElements_, setAttribute_, setDataDesc_, setImpl_, setSubstitutionHead_, setType_
 
Methods inherited from interface org.jbind.xml.core.data.ISimpleData
getLexicalValue_, getNormalizedValue_, setLexicalValue_, simpleStorageValueEquals, simpleStorageValueHashCode
 
Methods inherited from interface org.jbind.xml.core.base.ITextContentProvider
getTextContent_
 

Constructor Detail

UnsignedByteData

public UnsignedByteData()
Method Detail

doAccept

protected void doAccept(java.lang.String aString)
                 throws XmlException
Description copied from class: AbstractSimpleData
Hook method that accepts the normalized value and converts it into a corresponging internal representation (the so called simple storage object).

If an exception is raised during execution of the method then this data object may be inconsistent. It is in the responsibility of the caller either to rollback the changes or to discard this data object.

Overrides:
doAccept in class AbstractDecimalData
Throws:
XmlException

getCanonicalForm_

public java.lang.String getCanonicalForm_()
Description copied from interface: ISimpleData
Gets the canonical form. The canonical form of a data object is the result of converting the data into a string.

Specified by:
getCanonicalForm_ in interface ISimpleData
Returns:
A string (required).

getShort

public short getShort()
Specified by:
getShort in interface IUnsignedByteData

setShort

public void setShort(short aNewValue)
              throws XmlException
Specified by:
setShort in interface IUnsignedByteData
Throws:
XmlException

compareSubTypeData_

public int compareSubTypeData_(IDecimalData aData)
Description copied from interface: IDecimalData
Compares this decimal data with the specified data. The type of this decimal data must be a base type of the type of the specified data.

Specified by:
compareSubTypeData_ in interface IDecimalData
Returns:
Returns -1, 0, or 1 if this decimal data is less than, equal to, or greater than the specified data, respectively.

getSimpleStorageObject

public java.lang.Object getSimpleStorageObject()
Description copied from interface: ISimpleData
Gets the simple storage object. If the value of the simple data object is stored with a reference type then the simple storage object is the same as the value object. Otherwise the value is stored with a primitive type. In this case the simple storage object wraps the primitive value.

Specified by:
getSimpleStorageObject in interface ISimpleData
Returns:
(required).

setSimpleStorageObject

public void setSimpleStorageObject(java.lang.Object aValue)
Specified by:
setSimpleStorageObject in class AbstractSimpleData

getInt

public int getInt()
Specified by:
getInt in interface IUnsignedShortData

setInt

public void setInt(int aValue)
            throws XmlException
Specified by:
setInt in interface IUnsignedShortData
Throws:
XmlException