Style Intelligence v12.0

inetsoft.uql.schema
Class NumberBaseType

java.lang.Object
  extended by inetsoft.uql.XNode
      extended by inetsoft.uql.schema.XTypeNode
          extended by inetsoft.uql.schema.NumberBaseType
All Implemented Interfaces:
inetsoft.util.XMLSerializable, Serializable, Cloneable, Comparable
Direct Known Subclasses:
ByteType, DoubleType, FloatType, IntegerType, LongType, ShortType

public class NumberBaseType
extends XTypeNode

Base type for all numeric types.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class inetsoft.uql.schema.XTypeNode
STAR
 
Fields inherited from class inetsoft.uql.XNode
value
 
Constructor Summary
NumberBaseType()
          Create a number type node.
NumberBaseType(String name)
          Create a number type node.
 
Method Summary
protected  void applyFormat(XValueNode node)
          Apply format to a value object.
 String getFormat()
          Get the format string of this data type.
 boolean isCompatible(XTypeNode type)
          Check if two types are compatible.
 boolean isNumber()
          Check if this type is a numeric type.
 boolean isPrimitive()
          Return true if this is a primitive type.
 void setFormat(String fmt)
          Set the format string for the type.
 
Methods inherited from class inetsoft.uql.schema.XTypeNode
addAttribute, addChild, clone, clone, cloneType, compareTo, equals, getAttribute, getAttributeCount, getAttributeIndex, getAttributeString, getAttributeType, getMaxOccurs, getMinOccurs, getType, getTypeNode, getXMetaInfo, isDate, isTypeNodeExists, newInstance, newInstance, parseXML, setAttribute, setMaxOccurs, setMinOccurs, setXMetaInfo, toString, writeAttributes, writeTreeXML, writeTypeXML, writeXML
 
Methods inherited from class inetsoft.uql.XNode
addChild, addChild, addr, checkDuplicate, cloneValue, eq, getAttribute, getAttributeNames, getChild, getChild, getChildCount, getChildIndex, getDefaultFormat, getName, getNode, getParent, getPath, getPath, getValue, getValue, hashCode, insertChild, isAncestor, removeAllChildren, removeChild, removeChild, removeChild, removeChild, setAttribute, setChild, setDefaultFormat, setName, setValue, sort, sort
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NumberBaseType

public NumberBaseType()
Create a number type node.


NumberBaseType

public NumberBaseType(String name)
Create a number type node.

Method Detail

isPrimitive

public boolean isPrimitive()
Return true if this is a primitive type.

Overrides:
isPrimitive in class XTypeNode

isNumber

public boolean isNumber()
Check if this type is a numeric type.

Overrides:
isNumber in class XTypeNode

isCompatible

public boolean isCompatible(XTypeNode type)
Check if two types are compatible. If two types are compatible, the values of one value node can be assigned to the value of another value node.

Overrides:
isCompatible in class XTypeNode

applyFormat

protected void applyFormat(XValueNode node)
Apply format to a value object. by this type.


setFormat

public void setFormat(String fmt)
Set the format string for the type. The meaning of the format depends on the data type. For example, for date related formats, the format string is used to construct a SimpleDateFormat object.

Overrides:
setFormat in class XTypeNode

getFormat

public String getFormat()
Get the format string of this data type.

Overrides:
getFormat in class XTypeNode

Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved.