|
Style Intelligence v12.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectinetsoft.uql.XNode
inetsoft.uql.schema.XTypeNode
inetsoft.uql.schema.UserDefinedType
public class UserDefinedType
User defined type. A user defined type can be a composite type, which contains other data items.
| Field Summary | |
|---|---|
protected XTypeNode |
type
|
| Fields inherited from class inetsoft.uql.schema.XTypeNode |
|---|
STAR |
| Fields inherited from class inetsoft.uql.XNode |
|---|
value |
| Constructor Summary | |
|---|---|
UserDefinedType()
Create an user defined type. |
|
UserDefinedType(String name)
Create an user defined type. |
|
UserDefinedType(String name,
XTypeNode[] children)
Create a user defined type with a list of children. |
|
| Method Summary | |
|---|---|
void |
addAttribute(XTypeNode attr)
Add an attribute to the type. |
void |
addChild(XNode child)
Add a child to this node. |
Object |
clone()
Create a clone of this object. |
XTypeNode |
clone(String tp)
Create a primitive type node. |
XTypeNode |
getAttribute(int idx)
Get the specified attribute. |
int |
getAttributeCount()
Get the number of attributes in this type. |
int |
getAttributeIndex(XTypeNode attr)
Get the index of an attribute. |
protected String |
getAttributeString()
Get additional attributes string. |
XTypeNode |
getAttributeType(String name)
Get the attribute type node with specified name. |
XNode |
getChild(int idx)
Get the specified child node. |
int |
getChildCount()
Get the number of children under this node. |
int |
getChildIndex(XNode child)
Find the index of the child in this node. |
String |
getFormat()
Get the format string of this data type. |
String |
getType()
Get the type of this node. |
XTypeNode |
getUserType()
Get the type of this user node. |
void |
insertChild(int idx,
XNode child)
Insert a child to this node at the specified position. |
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 |
removeAllChildren()
Remove all child in the tree. |
void |
removeChild(int idx)
Remove the specified child. |
void |
removeChild(XNode child)
Remove the specified child. |
void |
setAttribute(int index,
XTypeNode attr)
Set an attribute at an index. |
void |
setChild(int idx,
XNode child)
Set the specified child of this node to the new child. |
void |
setFormat(String fmt)
Set the format string for the type. |
void |
setUserType(XTypeNode type)
Set the type of this user node. |
void |
writeTypeXML(PrintWriter writer)
Write the XML schema specification. |
| Methods inherited from class inetsoft.uql.schema.XTypeNode |
|---|
addChild, cloneType, compareTo, equals, getMaxOccurs, getMinOccurs, getTypeNode, getXMetaInfo, isCompatible, isDate, isNumber, isTypeNodeExists, newInstance, parseXML, setMaxOccurs, setMinOccurs, setXMetaInfo, toString, writeAttributes, writeTreeXML, writeXML |
| Methods inherited from class inetsoft.uql.XNode |
|---|
addChild, addr, checkDuplicate, cloneValue, eq, getAttribute, getAttributeNames, getChild, getDefaultFormat, getName, getNode, getParent, getPath, getPath, getValue, getValue, hashCode, isAncestor, removeChild, removeChild, setAttribute, setDefaultFormat, setName, setValue, sort, sort |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected XTypeNode type
| Constructor Detail |
|---|
public UserDefinedType()
public UserDefinedType(String name)
public UserDefinedType(String name,
XTypeNode[] children)
| Method Detail |
|---|
public void setUserType(XTypeNode type)
public XTypeNode getUserType()
public void addAttribute(XTypeNode attr)
addAttribute in class XTypeNode
public void setAttribute(int index,
XTypeNode attr)
setAttribute in class XTypeNodeindex - the specified indexattr - the specified attributepublic int getAttributeCount()
getAttributeCount in class XTypeNodepublic XTypeNode getAttribute(int idx)
getAttribute in class XTypeNodepublic int getAttributeIndex(XTypeNode attr)
getAttributeIndex in class XTypeNodeattr - the specified attribute
public XTypeNode getAttributeType(String name)
getAttributeType in class XTypeNodepublic String getType()
getType in class XTypeNodepublic boolean isPrimitive()
isPrimitive in class XTypeNodepublic XNode newInstance()
newInstance in class XTypeNodepublic int getChildCount()
getChildCount in class XNodepublic XNode getChild(int idx)
getChild in class XNodeidx - child index.
public int getChildIndex(XNode child)
getChildIndex in class XNodepublic void addChild(XNode child)
addChild in class XNode
public void setChild(int idx,
XNode child)
setChild in class XNodepublic void removeChild(XNode child)
removeChild in class XNodepublic void removeChild(int idx)
removeChild in class XNodeidx - the index of the child to removepublic void removeAllChildren()
removeAllChildren in class XNode
public void insertChild(int idx,
XNode child)
insertChild in class XNodepublic void setFormat(String fmt)
setFormat in class XTypeNodepublic String getFormat()
getFormat in class XTypeNodeprotected String getAttributeString()
getAttributeString in class XTypeNodepublic void writeTypeXML(PrintWriter writer)
writeTypeXML in class XTypeNodepublic Object clone()
clone in class XTypeNodepublic XTypeNode clone(String tp)
clone in class XTypeNodetp - one of the primitive types defined in XSchema.
|
Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||