Style Intelligence v12.0

inetsoft.uql.schema
Class EnumType

java.lang.Object
  extended by inetsoft.uql.XNode
      extended by inetsoft.uql.schema.XTypeNode
          extended by inetsoft.uql.schema.StringType
              extended by inetsoft.uql.schema.EnumType
All Implemented Interfaces:
inetsoft.util.XMLSerializable, Serializable, Cloneable, Comparable

public class EnumType
extends StringType

Enum type node.

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
EnumType()
          Create a Enum type node.
EnumType(String name)
          Create a Enum type node.
 
Method Summary
protected  String getAttributeString()
          Get additional attributes string.
 String[] getEnums()
           
 String getType()
          Get the type of this node.
 boolean isPrimitive()
          Return true if this is a primitive type.
 XNode newInstance()
          Create a value tree corresponding to the data type defined by this type.
 void parseXML(Element root)
          Parse the XML element that contains information on this data source.
 void setEnums(String[] enums)
           
 
Methods inherited from class inetsoft.uql.schema.XTypeNode
addAttribute, addChild, clone, clone, cloneType, compareTo, equals, getAttribute, getAttributeCount, getAttributeIndex, getAttributeType, getFormat, getMaxOccurs, getMinOccurs, getTypeNode, getXMetaInfo, isCompatible, isDate, isNumber, isTypeNodeExists, newInstance, setAttribute, setFormat, 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

EnumType

public EnumType()
Create a Enum type node.


EnumType

public EnumType(String name)
Create a Enum type node.

Method Detail

getType

public String getType()
Get the type of this node. The types are defined in XSchema class.

Overrides:
getType in class StringType

isPrimitive

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

Overrides:
isPrimitive in class StringType

newInstance

public XNode newInstance()
Create a value tree corresponding to the data type defined by this type.

Overrides:
newInstance in class StringType

getEnums

public String[] getEnums()

setEnums

public void setEnums(String[] enums)

parseXML

public void parseXML(Element root)
Parse the XML element that contains information on this data source.

Specified by:
parseXML in interface inetsoft.util.XMLSerializable
Overrides:
parseXML in class XTypeNode

getAttributeString

protected String getAttributeString()
Get additional attributes string.

Overrides:
getAttributeString in class XTypeNode

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