com.pmease.quickbuild.plugin.report.engine.datatype
Class AbstractNumericType

java.lang.Object
  extended by com.pmease.quickbuild.plugin.report.engine.datatype.AbstractDataType
      extended by com.pmease.quickbuild.plugin.report.engine.datatype.AbstractNumericType
All Implemented Interfaces:
DataType, TypedObject, java.io.Serializable
Direct Known Subclasses:
ByteType, DoubleType, FloatType, IntegerType, LongType

public abstract class AbstractNumericType
extends AbstractDataType

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.pmease.quickbuild.plugin.report.engine.datatype.AbstractDataType
CSV_FORMAT, nodeType, XML_FORMAT
 
Constructor Summary
AbstractNumericType()
           
 
Method Summary
 java.lang.Object asDbObject(java.lang.Object original)
           
 boolean isNumericType()
           
 boolean isPrimitiveType()
           
 java.lang.Object readFromNode(org.dom4j.Element node, java.lang.String nodeName, java.util.Locale locale)
           
 java.lang.Number toNumber(java.lang.Object other)
           
 void writeToNode(org.dom4j.Element parentNode, java.lang.String nodeName, java.lang.Object value, java.util.Locale locale)
           
 
Methods inherited from class com.pmease.quickbuild.plugin.report.engine.datatype.AbstractDataType
asString, asString, compare, equals, fromString, fromString, fromXML, getDefaultValue, getNodeType, getReadFormat, getWriteFormat, hashCode, isCollectionType, isEqual, isIdType, newInstance, setNodeType, toString, toXML
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.pmease.quickbuild.plugin.report.engine.extensionpoint.DataType
asString, fromDbObject, fromString, getDefaultPattern, getReturnedClass, getSqlType, typeCast
 
Methods inherited from interface com.pmease.quickbuild.plugin.report.engine.extensionpoint.TypedObject
getType
 

Constructor Detail

AbstractNumericType

public AbstractNumericType()
Method Detail

isNumericType

public boolean isNumericType()
Specified by:
isNumericType in interface DataType
Overrides:
isNumericType in class AbstractDataType

isPrimitiveType

public boolean isPrimitiveType()
Specified by:
isPrimitiveType in interface DataType
Overrides:
isPrimitiveType in class AbstractDataType

asDbObject

public java.lang.Object asDbObject(java.lang.Object original)

readFromNode

public java.lang.Object readFromNode(org.dom4j.Element node,
                                     java.lang.String nodeName,
                                     java.util.Locale locale)
Specified by:
readFromNode in interface DataType
Overrides:
readFromNode in class AbstractDataType

writeToNode

public void writeToNode(org.dom4j.Element parentNode,
                        java.lang.String nodeName,
                        java.lang.Object value,
                        java.util.Locale locale)
Specified by:
writeToNode in interface DataType
Overrides:
writeToNode in class AbstractDataType

toNumber

public java.lang.Number toNumber(java.lang.Object other)


Copyright © 2005-2010 PMEase Inc. All Rights Reserved.