com.servingxml.util.record
Class ScalarValue
java.lang.Object
com.servingxml.util.record.ScalarValue
- All Implemented Interfaces:
- Value
public class ScalarValue
- extends java.lang.Object
- implements Value
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
ScalarValue
public ScalarValue(java.lang.Object value,
ValueType valueType)
getObject
public java.lang.Object getObject()
- Specified by:
getObject
in interface Value
getString
public java.lang.String getString()
- Specified by:
getString
in interface Value
getStringArray
public java.lang.String[] getStringArray()
- Specified by:
getStringArray
in interface Value
getSegments
@Deprecated
public Record[] getSegments()
- Deprecated. since ServingXML 0.8.3: replaced by
getRecords()
- Returns the value as an array of records
- Specified by:
getSegments
in interface Value
getRecords
public Record[] getRecords()
- Returns the value as an array of records
- Specified by:
getRecords
in interface Value
getType
public ValueType getType()
- Specified by:
getType
in interface Value
getSqlValue
public java.lang.Object getSqlValue()
- Specified by:
getSqlValue
in interface Value
getSqlType
public int getSqlType()
- Specified by:
getSqlType
in interface Value
writeToContentHandler
public void writeToContentHandler(Name fieldName,
PrefixMap prefixMap,
org.xml.sax.ContentHandler handler)
throws org.xml.sax.SAXException
- Specified by:
writeToContentHandler
in interface Value
- Throws:
org.xml.sax.SAXException
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
equalsValue
public boolean equalsValue(Value aValue)
- Specified by:
equalsValue
in interface Value
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object