public class ObjectFactory
extends java.lang.Object
Constructor and Description |
---|
ObjectFactory() |
Modifier and Type | Method and Description |
---|---|
void |
appendAggregate(ApplicationStructure asObj,
AggrFunc aggr,
org.w3c.dom.Element parent)
Get an element that represents aggregate function.
|
void |
appendAID(ApplicationStructure asObj,
T_LONGLONG aid,
org.w3c.dom.Element parent)
Get an element that represents an application element id.
|
void |
appendAIDName(ApplicationStructure asObj,
AIDName aidName,
org.w3c.dom.Element parent)
Get an element that represents AIDName array.
|
void |
appendAIDNameUnitId(ApplicationStructure asObj,
AIDNameUnitId aidNameUnitId,
org.w3c.dom.Element parent)
Get an element that represents AIDNameUnitId.
|
void |
appendAnuSeq(ApplicationStructure asObj,
SelAIDNameUnitId[] anuSeq,
org.w3c.dom.Element parent)
Get an element that represents SelAIDNameUnitId array.
|
void |
appendCondSeq(ApplicationStructure asObj,
SelItem[] condSeq,
org.w3c.dom.Element parent)
Get an element that represents SelItem array.
|
void |
appendDataType(ApplicationStructure asObj,
DataType dataType,
org.w3c.dom.Element parent)
Get an element that represents Datatype.
|
void |
appendFlag(ApplicationStructure asObj,
short flag,
org.w3c.dom.Element parent)
Append flag to the attribute.
|
void |
appendFromAID(ApplicationStructure asObj,
T_LONGLONG aid,
org.w3c.dom.Element parent)
Get an element that represents an application element id.
|
void |
appendGroupBy(ApplicationStructure asObj,
AIDName[] aidName,
org.w3c.dom.Element parent)
Append elements representing the AIDName array.
|
void |
appendJoinDef(ApplicationStructure asObj,
JoinDef joinDef,
org.w3c.dom.Element parent)
Get an element that represents JoinDef.
|
void |
appendJoinSeq(ApplicationStructure asObj,
JoinDef[] joinSeq,
org.w3c.dom.Element parent)
Get an element that represents JoinDef array.
|
void |
appendJoinType(ApplicationStructure asObj,
JoinType joinType,
org.w3c.dom.Element parent)
Append the joiningtape attribute.
|
void |
appendOrderBy(ApplicationStructure asObj,
SelOrder[] orderby,
org.w3c.dom.Element parent)
Get an element that represents SelOrder.
|
void |
appendSelAIDNameUnitId(ApplicationStructure asObj,
SelAIDNameUnitId selAIDNameUnitId,
org.w3c.dom.Element parent)
Get an element that represents SelAIDNameUnitId object.
|
void |
appendSelItem(ApplicationStructure asObj,
SelItem selItem,
org.w3c.dom.Element parent)
Get an element that represents SelItem.
|
void |
appendSelOpcode(ApplicationStructure asObj,
SelOpcode selOpcode,
org.w3c.dom.Element parent)
Get an element that represents SelOpcode.
|
void |
appendSelOperator(ApplicationStructure asObj,
SelOperator selOperator,
org.w3c.dom.Element parent)
Get an element that represents selection operator.
|
void |
appendSelOrder(ApplicationStructure asObj,
SelOrder selOrder,
org.w3c.dom.Element parent)
Get an element that represents SelOrder.
|
void |
appendSelValueExt(ApplicationStructure asObj,
SelValueExt selValueExt,
org.w3c.dom.Element parent)
Get an element that represents SelValueExt object.
|
void |
appendToAID(ApplicationStructure asObj,
T_LONGLONG aid,
org.w3c.dom.Element parent)
Get an element that represents an application element id.
|
void |
appendTS_Value(ApplicationStructure asObj,
TS_Value ts_value,
org.w3c.dom.Element parent)
Append an ts_value element according to the given object.
|
void |
appendUnit(ApplicationStructure asObj,
T_LONGLONG unitId,
org.w3c.dom.Element parent)
Get an element that represents unit.
|
AggrFunc |
evalAggregate(ApplicationStructure asObj,
org.w3c.dom.Element elem)
Get the AggrFunc according to the aggregate elements.
|
T_LONGLONG |
evalAID(ApplicationStructure asObj,
org.w3c.dom.Element elem)
Get the ID of an ApplicationElement according to the aid elements.
|
AIDName |
evalAIDName(ApplicationStructure asObj,
org.w3c.dom.Element elem)
Get the AIDName according to the aidname element.
|
AIDNameUnitId |
evalAIDNameUnitId(ApplicationStructure asObj,
org.w3c.dom.Element elem)
Get the AIDNameUnitId according to the aidnameunitid elements.
|
SelAIDNameUnitId[] |
evalAnuSeq(ApplicationStructure asObj,
org.w3c.dom.Element[] anuSeq)
Get the SelAIDNameUnitId array according to the array of anuseq elements.
|
AoSession |
evalAoSession(org.w3c.dom.Element elem)
Get a session from DOM tree.
|
protected boolean |
evalBoolean(java.lang.String value,
boolean defValue)
Evaluate a boolean.
|
SelItem[] |
evalCondSeq(ApplicationStructure asObj,
org.w3c.dom.Element[] condSeq)
Get the SelItem array according to the array of condseq elements.
|
DataType |
evalDataType(ApplicationStructure asObj,
org.w3c.dom.Element elem)
Get the Datatype according to the datatype attribute.
|
short |
evalFlag(ApplicationStructure asObj,
org.w3c.dom.Element elem)
Get the flag value according to the flag attribute.
|
AIDName[] |
evalGroupBy(ApplicationStructure asObj,
org.w3c.dom.Element[] groupBy)
Get the AIDName array according to the array of groupby elements.
|
JoinDef |
evalJoinDef(ApplicationStructure asObj,
org.w3c.dom.Element elem)
Get the JoinDef according to the joindef elements.
|
JoinDef[] |
evalJoinSeq(ApplicationStructure asObj,
org.w3c.dom.Element[] joindef)
Get the JoinDef array according to the array of joindef elements.
|
JoinType |
evalJoinType(ApplicationStructure asObj,
org.w3c.dom.Element elem)
Get the JoinType according to the jointype elements.
|
SelOrder[] |
evalOrderBy(ApplicationStructure asObj,
org.w3c.dom.Element[] orderBy)
Get the SelOrder array according to the array of orderby elements.
|
SelAIDNameUnitId |
evalSelAIDNameUnitId(ApplicationStructure asObj,
org.w3c.dom.Element elem)
Get the SelAIDNameUnitId according to the selaidnameunitid elements.
|
SelItem |
evalSelItem(ApplicationStructure asObj,
org.w3c.dom.Element elem)
Get the SelItem according to the selitem element.
|
SelOpcode |
evalSelOpcode(ApplicationStructure asObj,
org.w3c.dom.Element elem)
Get the SelOpcode according to the selopcode attribute.
|
SelOperator |
evalSelOperator(ApplicationStructure asObj,
org.w3c.dom.Element elem)
Get the SelItem according to the type attribute.
|
SelOrder |
evalSelOrder(ApplicationStructure asObj,
org.w3c.dom.Element elem)
Get the SelOrder according to the selorder elements.
|
SelValueExt |
evalSelValueExt(ApplicationStructure asObj,
org.w3c.dom.Element elem)
Get the SelValueExt according to the selvalueext element.
|
TS_Value |
evalTS_Value(ApplicationStructure asObj,
org.w3c.dom.Element elem)
Get the TS_Value according to the ts_value element.
|
InstanceElement |
evalUnit(ApplicationStructure asObj,
org.w3c.dom.Element elem)
Get the Unit according to the unit elements.
|
static ObjectFactory |
getInstance()
Get the instance of the factory.
|
java.io.PrintStream |
getPrintStream(org.w3c.dom.Element elem)
Get printstream array.
|
QueryStructureExt |
getQueryStructureExt(ApplicationStructure asObj,
org.w3c.dom.Element root)
Get the query structure.
|
QueryStructureExt |
getQueryStructureExt(ApplicationStructure asObj,
org.w3c.dom.Element[] anuSeq,
org.w3c.dom.Element[] condSeq,
org.w3c.dom.Element[] groupBy,
org.w3c.dom.Element[] joinSeq,
org.w3c.dom.Element[] orderBy)
Get the query structure.
|
org.w3c.dom.Element |
getQueryStructureExtElem(ApplicationStructure asObj,
QueryStructureExt qse,
org.w3c.dom.Element parent)
Get an element that represents query structure.
|
protected org.w3c.dom.Element |
getSingleObligatoryElement(org.w3c.dom.Element parent,
java.lang.String name,
boolean obligatory)
Get a single child element from given node.
|
public static ObjectFactory getInstance()
public java.io.PrintStream getPrintStream(org.w3c.dom.Element elem) throws java.io.FileNotFoundException
elem
- The printstream element node.java.io.FileNotFoundException
public AoSession evalAoSession(org.w3c.dom.Element elem) throws QueryStructureGeneratorException
elem
- The aosession element node.QueryStructureGeneratorException
public org.w3c.dom.Element getQueryStructureExtElem(ApplicationStructure asObj, QueryStructureExt qse, org.w3c.dom.Element parent) throws QueryStructureGeneratorException
asObj
- the application structure.qse
- the query structure.parent
- the xml parent of the newly created node.QueryStructureGeneratorException
public QueryStructureExt getQueryStructureExt(ApplicationStructure asObj, org.w3c.dom.Element root) throws QueryStructureGeneratorException
asObj
- the application structure.root
- the root element node of the definition.QueryStructureGeneratorException
public QueryStructureExt getQueryStructureExt(ApplicationStructure asObj, org.w3c.dom.Element[] anuSeq, org.w3c.dom.Element[] condSeq, org.w3c.dom.Element[] groupBy, org.w3c.dom.Element[] joinSeq, org.w3c.dom.Element[] orderBy) throws QueryStructureGeneratorException
asObj
- the application structure.anuSeq
- An element array containing the anuseq elements.condSeq
- An element array containing the condSeq elements.groupBy
- An element array containing the groupBy elements.joinSeq
- An element array containing the joinSeq elements.orderBy
- An element array containing the orderBy elements.QueryStructureGeneratorException
public SelAIDNameUnitId[] evalAnuSeq(ApplicationStructure asObj, org.w3c.dom.Element[] anuSeq) throws QueryStructureGeneratorException
asObj
- the application structure.anuSeq
- An element array containing the anuseq elements.QueryStructureGeneratorException
public void appendAnuSeq(ApplicationStructure asObj, SelAIDNameUnitId[] anuSeq, org.w3c.dom.Element parent) throws QueryStructureGeneratorException
asObj
- the application structure.anuseq
- the array of SelAIDNameUnitId objectsparent
- the xml parent of the newly created node.QueryStructureGeneratorException
public SelItem[] evalCondSeq(ApplicationStructure asObj, org.w3c.dom.Element[] condSeq) throws QueryStructureGeneratorException
asObj
- the application structure.condSeq
- An element array containing the condseq elements.QueryStructureGeneratorException
public void appendCondSeq(ApplicationStructure asObj, SelItem[] condSeq, org.w3c.dom.Element parent) throws QueryStructureGeneratorException
asObj
- the application structure.condseq
- the array of SelItem objectsparent
- the xml parent of the newly created node.QueryStructureGeneratorException
public AIDName[] evalGroupBy(ApplicationStructure asObj, org.w3c.dom.Element[] groupBy) throws QueryStructureGeneratorException
asObj
- the application structure.groupBy
- An element array containing the groupby elements.QueryStructureGeneratorException
public void appendGroupBy(ApplicationStructure asObj, AIDName[] aidName, org.w3c.dom.Element parent) throws QueryStructureGeneratorException
asObj
- the application structure.groupBy
- the object arrayparent
- the xml parent of the newly created node.QueryStructureGeneratorException
public JoinDef[] evalJoinSeq(ApplicationStructure asObj, org.w3c.dom.Element[] joindef) throws QueryStructureGeneratorException
asObj
- the application structure.joindef
- An element array containing the joindef elements.QueryStructureGeneratorException
public void appendJoinSeq(ApplicationStructure asObj, JoinDef[] joinSeq, org.w3c.dom.Element parent) throws QueryStructureGeneratorException
asObj
- the application structure.joinseq
- the array of JoinDef objectsparent
- the xml parent of the newly created node.QueryStructureGeneratorException
public JoinDef evalJoinDef(ApplicationStructure asObj, org.w3c.dom.Element elem) throws QueryStructureGeneratorException
asObj
- the application structure.elem
- An element represents the JoinDef element.QueryStructureGeneratorException
public void appendJoinDef(ApplicationStructure asObj, JoinDef joinDef, org.w3c.dom.Element parent) throws QueryStructureGeneratorException
asObj
- the application structure.joinDef
- the objectparent
- the xml parent of the newly created node.QueryStructureGeneratorException
public SelOrder[] evalOrderBy(ApplicationStructure asObj, org.w3c.dom.Element[] orderBy) throws QueryStructureGeneratorException
asObj
- the application structure.orderBy
- An element array containing the orderby elements.QueryStructureGeneratorException
public void appendOrderBy(ApplicationStructure asObj, SelOrder[] orderby, org.w3c.dom.Element parent) throws QueryStructureGeneratorException
asObj
- the application structure.orderby
- the object arrayparent
- the xml parent of the newly created node.QueryStructureGeneratorException
public SelOrder evalSelOrder(ApplicationStructure asObj, org.w3c.dom.Element elem) throws QueryStructureGeneratorException
asObj
- the application structure.elem
- An element represents the SelOrder element.QueryStructureGeneratorException
public void appendSelOrder(ApplicationStructure asObj, SelOrder selOrder, org.w3c.dom.Element parent) throws QueryStructureGeneratorException
asObj
- the application structure.selOrder
- the objectparent
- the xml parent of the newly created node.QueryStructureGeneratorException
public SelAIDNameUnitId evalSelAIDNameUnitId(ApplicationStructure asObj, org.w3c.dom.Element elem) throws QueryStructureGeneratorException
asObj
- the application structure.elem
- An element represents the SelAIDNameUnitId element.QueryStructureGeneratorException
public void appendSelAIDNameUnitId(ApplicationStructure asObj, SelAIDNameUnitId selAIDNameUnitId, org.w3c.dom.Element parent) throws QueryStructureGeneratorException
asObj
- the application structure.selAIDNameUnitId
- the SelAIDNameUnitId objectparent
- the xml parent of the newly created node.QueryStructureGeneratorException
public SelItem evalSelItem(ApplicationStructure asObj, org.w3c.dom.Element elem) throws QueryStructureGeneratorException
asObj
- the application structure.elem
- An element represents the SelItem element.QueryStructureGeneratorException
public void appendSelItem(ApplicationStructure asObj, SelItem selItem, org.w3c.dom.Element parent) throws QueryStructureGeneratorException
asObj
- the application structure.selItem
- the SelItem objectparent
- the xml parent of the newly created node.QueryStructureGeneratorException
public SelOperator evalSelOperator(ApplicationStructure asObj, org.w3c.dom.Element elem) throws QueryStructureGeneratorException
asObj
- the application structure.elem
- An element represents an element with attribute type.QueryStructureGeneratorException
public void appendSelOperator(ApplicationStructure asObj, SelOperator selOperator, org.w3c.dom.Element parent) throws QueryStructureGeneratorException
asObj
- the application structure.selOperator
- the operatorparent
- the xml parent of the newly created node.QueryStructureGeneratorException
public SelValueExt evalSelValueExt(ApplicationStructure asObj, org.w3c.dom.Element elem) throws QueryStructureGeneratorException
asObj
- the application structure.elem
- An element represents the selvalueext element.QueryStructureGeneratorException
public void appendSelValueExt(ApplicationStructure asObj, SelValueExt selValueExt, org.w3c.dom.Element parent) throws QueryStructureGeneratorException
asObj
- the application structure.selValueExt
- the objectparent
- the xml parent of the newly created node.QueryStructureGeneratorException
public SelOpcode evalSelOpcode(ApplicationStructure asObj, org.w3c.dom.Element elem) throws QueryStructureGeneratorException
asObj
- the application structure.elem
- An element represents an element with attribute selopcode.QueryStructureGeneratorException
public void appendSelOpcode(ApplicationStructure asObj, SelOpcode selOpcode, org.w3c.dom.Element parent) throws QueryStructureGeneratorException
asObj
- the application structure.selOpcode
- the objectparent
- the xml parent of the newly created node.QueryStructureGeneratorException
public TS_Value evalTS_Value(ApplicationStructure asObj, org.w3c.dom.Element elem) throws QueryStructureGeneratorException
asObj
- the application structure.elem
- An element represents the SelItem element.QueryStructureGeneratorException
public void appendTS_Value(ApplicationStructure asObj, TS_Value ts_value, org.w3c.dom.Element parent) throws QueryStructureGeneratorException
asObj
- the application structure.ts_value
- the objectparent
- the xml parent of the newly created node.QueryStructureGeneratorException
public short evalFlag(ApplicationStructure asObj, org.w3c.dom.Element elem) throws QueryStructureGeneratorException
asObj
- the application structure.elem
- An element represents an element with attribute flag.QueryStructureGeneratorException
public void appendFlag(ApplicationStructure asObj, short flag, org.w3c.dom.Element parent) throws QueryStructureGeneratorException
asObj
- the application structure.flag
- the valueparent
- the xml parent of the newly created node.QueryStructureGeneratorException
public DataType evalDataType(ApplicationStructure asObj, org.w3c.dom.Element elem) throws QueryStructureGeneratorException
asObj
- the application structure.elem
- An element represents an element with attribute datatype.DataType.DT_STRING
if failed.QueryStructureGeneratorException
public void appendDataType(ApplicationStructure asObj, DataType dataType, org.w3c.dom.Element parent) throws QueryStructureGeneratorException
asObj
- the application structure.dataType
- the objectparent
- the xml parent of the newly created node.QueryStructureGeneratorException
public AIDNameUnitId evalAIDNameUnitId(ApplicationStructure asObj, org.w3c.dom.Element elem) throws QueryStructureGeneratorException
asObj
- the application structure.elem
- An element represents the AIDNameUnitId element.QueryStructureGeneratorException
public void appendAIDNameUnitId(ApplicationStructure asObj, AIDNameUnitId aidNameUnitId, org.w3c.dom.Element parent) throws QueryStructureGeneratorException
asObj
- the application structure.aidNameUnitId
- the SelAIDNameUnitId objectparent
- the xml parent of the newly created node.QueryStructureGeneratorException
public AIDName evalAIDName(ApplicationStructure asObj, org.w3c.dom.Element elem) throws QueryStructureGeneratorException
asObj
- the application structure.elem
- An element represents the aidname element.QueryStructureGeneratorException
public void appendAIDName(ApplicationStructure asObj, AIDName aidName, org.w3c.dom.Element parent) throws QueryStructureGeneratorException
asObj
- the application structure.aidName
- the AIDName objectparent
- the xml parent of the newly created node.QueryStructureGeneratorException
public T_LONGLONG evalAID(ApplicationStructure asObj, org.w3c.dom.Element elem) throws QueryStructureGeneratorException
asObj
- the application structure.elem
- An element represents the aid element.QueryStructureGeneratorException
public void appendAID(ApplicationStructure asObj, T_LONGLONG aid, org.w3c.dom.Element parent) throws QueryStructureGeneratorException
asObj
- the application structure.aid
- the application element idparent
- the xml parent of the newly created node.QueryStructureGeneratorException
public void appendFromAID(ApplicationStructure asObj, T_LONGLONG aid, org.w3c.dom.Element parent) throws QueryStructureGeneratorException
asObj
- the application structure.aid
- the application element idparent
- the xml parent of the newly created node.QueryStructureGeneratorException
public void appendToAID(ApplicationStructure asObj, T_LONGLONG aid, org.w3c.dom.Element parent) throws QueryStructureGeneratorException
asObj
- the application structure.aid
- the application element idparent
- the xml parent of the newly created node.QueryStructureGeneratorException
public InstanceElement evalUnit(ApplicationStructure asObj, org.w3c.dom.Element elem) throws QueryStructureGeneratorException
asObj
- the application structure.elem
- An element represents the unit element.QueryStructureGeneratorException
public void appendUnit(ApplicationStructure asObj, T_LONGLONG unitId, org.w3c.dom.Element parent) throws QueryStructureGeneratorException
asObj
- the application structure.unitId
- the id of the unitparent
- the xml parent of the newly created node.QueryStructureGeneratorException
public AggrFunc evalAggregate(ApplicationStructure asObj, org.w3c.dom.Element elem) throws QueryStructureGeneratorException
asObj
- the application structure.elem
- An element represents the aggregate element.QueryStructureGeneratorException
public void appendAggregate(ApplicationStructure asObj, AggrFunc aggr, org.w3c.dom.Element parent) throws QueryStructureGeneratorException
asObj
- the application structure.aggr
- the AggrFunc objectparent
- the xml parent of the newly created node.QueryStructureGeneratorException
public JoinType evalJoinType(ApplicationStructure asObj, org.w3c.dom.Element elem) throws QueryStructureGeneratorException
asObj
- the application structure.elem
- An joindef element.QueryStructureGeneratorException
public void appendJoinType(ApplicationStructure asObj, JoinType joinType, org.w3c.dom.Element parent) throws QueryStructureGeneratorException
asObj
- the application structure.joinType
- the objectparent
- the xml parent of the newly created node.QueryStructureGeneratorException
protected boolean evalBoolean(java.lang.String value, boolean defValue)
value
- The boolean value.defValue
- the default.protected org.w3c.dom.Element getSingleObligatoryElement(org.w3c.dom.Element parent, java.lang.String name, boolean obligatory) throws MultipleElementNotAllowedException, MissingChildNodeException
node
- the parent nodename
- the name of the childMultipleElementNotAllowedException
MissingChildNodeException