com.pmease.quickbuild.plugin.report.engine.datatype
Class AbstractDataType
java.lang.Object
com.pmease.quickbuild.plugin.report.engine.datatype.AbstractDataType
- All Implemented Interfaces:
- DataType, TypedObject, java.io.Serializable
- Direct Known Subclasses:
- AbstractCollectionType, AbstractNumericType, BooleanType, DateType, EnumType, ObjectType, StringType, TimeType
public abstract class AbstractDataType
- extends java.lang.Object
- implements DataType
- See Also:
- Serialized Form
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.TypedObject |
getType |
nodeType
protected NodeType nodeType
XML_FORMAT
public static final java.lang.String XML_FORMAT
- See Also:
- Constant Field Values
CSV_FORMAT
public static final java.lang.String CSV_FORMAT
- See Also:
- Constant Field Values
AbstractDataType
protected AbstractDataType()
AbstractDataType
protected AbstractDataType(NodeType nodeType)
fromString
public java.lang.Object fromString(java.lang.String str)
- Specified by:
fromString
in interface DataType
fromString
public java.lang.Object fromString(java.lang.String str,
java.lang.String pattern)
- Specified by:
fromString
in interface DataType
asString
public java.lang.String asString(java.lang.Object value)
- Specified by:
asString
in interface DataType
asString
public java.lang.String asString(java.lang.Object value,
java.lang.String pattern)
- Specified by:
asString
in interface DataType
getDefaultValue
public java.lang.Object getDefaultValue()
- Specified by:
getDefaultValue
in interface DataType
isEqual
public boolean isEqual(java.lang.Object x,
java.lang.Object y)
- Specified by:
isEqual
in interface DataType
compare
public int compare(java.lang.Object x,
java.lang.Object y)
- Specified by:
compare
in interface DataType
isNumericType
public boolean isNumericType()
- Specified by:
isNumericType
in interface DataType
isCollectionType
public boolean isCollectionType()
- Specified by:
isCollectionType
in interface DataType
isIdType
public boolean isIdType()
- Specified by:
isIdType
in interface DataType
isPrimitiveType
public boolean isPrimitiveType()
- Specified by:
isPrimitiveType
in interface DataType
newInstance
public DataType newInstance()
- Specified by:
newInstance
in interface DataType
fromXML
public void fromXML(org.dom4j.Element node)
- Specified by:
fromXML
in interface DataType
toXML
public void toXML(org.dom4j.Element node)
- Specified by:
toXML
in interface DataType
getNodeType
public NodeType getNodeType()
- Specified by:
getNodeType
in interface DataType
setNodeType
public void setNodeType(NodeType nodeType)
getReadFormat
protected java.lang.String getReadFormat()
getWriteFormat
protected java.lang.String getWriteFormat()
readFromNode
public java.lang.Object readFromNode(org.dom4j.Element node,
java.lang.String nodeName,
java.util.Locale locale)
- Specified by:
readFromNode
in interface DataType
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
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2005-2010 PMEase Inc. All Rights Reserved.