| 
 | Oracle® XML Java API Reference Release 1 (10.1) B12024-01 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--oracle.xml.parser.schema.XSDDataValue
Class used to represent a value as per XML Schema Part 2, simple types.
| Field Summary | 
| Constructor Summary | |
| XSDDataValue(int type, java.lang.String lex)Construct a XSDDataValue based of the type and lexical value | |
| Method Summary | |
|  int | compareTo(XSDDataValue val)Compare two values return int -1 -- smaller, 0 -- equal, 1 -- greater | 
|  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 | 
| Constructor Detail | 
public XSDDataValue(int type,
                    java.lang.String lex)
             throws XSDException
type - - Type as defined in XSDTypeConstantslex - - Lexical value of the typeXSDException, - if the lexical value doesn't match the typeXSDException| Method Detail | 
public int getLength()
              throws XSDException
XSDException - if the data value is not of String/Binary type
public int getPrecision()
                 throws XSDException
XSDException - if the data value is not of decimal type
public int getScale()
             throws XSDException
XSDException - if the data value is not decimal typepublic java.lang.String getLexicalValue()
public int compareTo(XSDDataValue val)
              throws XSDException
XSDException - if the data values are not comparable| 
 | Oracle® XML Java API Reference Release 1 (10.1) B12024-01 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||