oracle.xml.parser.schema
Class XSDDataValue

java.lang.Object
  |
  +--oracle.xml.parser.schema.XSDDataValue

public class XSDDataValue
extends java.lang.Object
implements XSDTypeConstants


Fields inherited from interface oracle.xml.parser.schema.XSDTypeConstants
_atomic, _base64, _collapse, _hex, _preserve, _replace, ANY_SIMPLE, ANY_URI, BASE64_BINARY, BINARY, BOOLEAN, BYTE, CDATA, CENTURY, DATE, DATE_TIME, DECIMAL, DOUBLE, DURATION, ENCODING, ENTITIES, ENTITY, ENUMERATION, FLOAT, FRACTION_DIGITS, GDAY, GMONTH, GMONTH_DAY, GYEAR, GYEAR_MONTH, HEX_BINARY, iANY_SIMPLE, iANY_URI, iBASE64_BINARY, iBOOLEAN, ID, iDATE, iDATE_TIME, iDECIMAL, iDOUBLE, IDREF, IDREFS, iDUMMY, iDURATION, iENUMERATION, iFLOAT, iFRACTION_DIGITS, iGDAY, iGMONTH, iGMONTH_DAY, iGYEAR, iGYEAR_MONTH, iHEX_BINARY, iLENGTH, iMAXEXCLUSIVE, iMAXINCLUSIVE, iMAXLENGTH, iMINEXCLUSIVE, iMININCLUSIVE, iMINLENGTH, iNOTATION, INT, INTEGER, iPATTERN, iQNAME, iSTRING, iTIME, iTOTAL_DIGITS, iWHITESPACE, LANGUAGE, LENGTH, LONG, MAXEXCLUSIVE, MAXINCLUSIVE, MAXLENGTH, MINEXCLUSIVE, MININCLUSIVE, MINLENGTH, MONTH, N_STRING, NAME, NCNAME, NEGATIVE_INTEGER, nFacets, NMTOKEN, NMTOKENS, NON_NEGATIVE_INTEGER, NON_POSITIVE_INTEGER, PATTERN, PERIOD, POSITIVE_INTEGER, PRECISION, QNAME, RECURRING_DATE, RECURRING_DAY, RECURRING_DURATION, SCALE, sFacets, SHORT, SNOTATION, STRING, sTypes, TIME, TIME_DURATION, TIME_INSTANT, TIME_PERIOD, TOKEN, TOTAL_DIGITS, UNSIGNED_BYTE, UNSIGNED_INT, UNSIGNED_LONG, UNSIGNED_SHORT, URI_REFERENCE, WHITESPACE, YEAR
 
Method Summary
TypeMethod
 int compareTo(XSDDataValue val)
          Compare two values return int -1 -- smaller, 0 -- equal, 1 -- greater
 java.lang.String getEncoding()
          Deprecated.  
 int getLength()
          Gets the length of STRING/BINARY value return int length
 java.lang.String getLexicalValue()
          Gets LEXICAL value from the XSDDataValue class return String value
 int getPrecision()
          Gets the precision of decimal value return int precision
 int getScale()
          Gets the scale of decimal value return int scale
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getLength

public int getLength()
              throws XSDException
Gets the length of STRING/BINARY value return int length
Throws:
XSDException - if the data value is not of String/Binary type

getPrecision

public int getPrecision()
                 throws XSDException
Gets the precision of decimal value return int precision
Throws:
XSDException - if the data value is not of decimal type

getScale

public int getScale()
             throws XSDException
Gets the scale of decimal value return int scale
Throws:
XSDException - if the data value is not decimal type

getEncoding

public java.lang.String getEncoding()
Deprecated.  


getLexicalValue

public java.lang.String getLexicalValue()
Gets LEXICAL value from the XSDDataValue class return String value
Throws:
XSDException - if the type requested is different from type set

compareTo

public int compareTo(XSDDataValue val)
              throws XSDException
Compare two values return int -1 -- smaller, 0 -- equal, 1 -- greater
Throws:
XSDException - if the data values are not comparable