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.FileNotFoundExceptionpublic AoSession evalAoSession(org.w3c.dom.Element elem) throws QueryStructureGeneratorException
elem - The aosession element node.QueryStructureGeneratorExceptionpublic 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.QueryStructureGeneratorExceptionpublic QueryStructureExt getQueryStructureExt(ApplicationStructure asObj, org.w3c.dom.Element root) throws QueryStructureGeneratorException
asObj - the application structure.root - the root element node of the definition.QueryStructureGeneratorExceptionpublic 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.QueryStructureGeneratorExceptionpublic SelAIDNameUnitId[] evalAnuSeq(ApplicationStructure asObj, org.w3c.dom.Element[] anuSeq) throws QueryStructureGeneratorException
asObj - the application structure.anuSeq - An element array containing the anuseq elements.QueryStructureGeneratorExceptionpublic 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.QueryStructureGeneratorExceptionpublic SelItem[] evalCondSeq(ApplicationStructure asObj, org.w3c.dom.Element[] condSeq) throws QueryStructureGeneratorException
asObj - the application structure.condSeq - An element array containing the condseq elements.QueryStructureGeneratorExceptionpublic 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.QueryStructureGeneratorExceptionpublic AIDName[] evalGroupBy(ApplicationStructure asObj, org.w3c.dom.Element[] groupBy) throws QueryStructureGeneratorException
asObj - the application structure.groupBy - An element array containing the groupby elements.QueryStructureGeneratorExceptionpublic 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.QueryStructureGeneratorExceptionpublic JoinDef[] evalJoinSeq(ApplicationStructure asObj, org.w3c.dom.Element[] joindef) throws QueryStructureGeneratorException
asObj - the application structure.joindef - An element array containing the joindef elements.QueryStructureGeneratorExceptionpublic 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.QueryStructureGeneratorExceptionpublic JoinDef evalJoinDef(ApplicationStructure asObj, org.w3c.dom.Element elem) throws QueryStructureGeneratorException
asObj - the application structure.elem - An element represents the JoinDef element.QueryStructureGeneratorExceptionpublic 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.QueryStructureGeneratorExceptionpublic SelOrder[] evalOrderBy(ApplicationStructure asObj, org.w3c.dom.Element[] orderBy) throws QueryStructureGeneratorException
asObj - the application structure.orderBy - An element array containing the orderby elements.QueryStructureGeneratorExceptionpublic 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.QueryStructureGeneratorExceptionpublic SelOrder evalSelOrder(ApplicationStructure asObj, org.w3c.dom.Element elem) throws QueryStructureGeneratorException
asObj - the application structure.elem - An element represents the SelOrder element.QueryStructureGeneratorExceptionpublic 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.QueryStructureGeneratorExceptionpublic SelAIDNameUnitId evalSelAIDNameUnitId(ApplicationStructure asObj, org.w3c.dom.Element elem) throws QueryStructureGeneratorException
asObj - the application structure.elem - An element represents the SelAIDNameUnitId element.QueryStructureGeneratorExceptionpublic 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.QueryStructureGeneratorExceptionpublic SelItem evalSelItem(ApplicationStructure asObj, org.w3c.dom.Element elem) throws QueryStructureGeneratorException
asObj - the application structure.elem - An element represents the SelItem element.QueryStructureGeneratorExceptionpublic 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.QueryStructureGeneratorExceptionpublic SelOperator evalSelOperator(ApplicationStructure asObj, org.w3c.dom.Element elem) throws QueryStructureGeneratorException
asObj - the application structure.elem - An element represents an element with attribute type.QueryStructureGeneratorExceptionpublic 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.QueryStructureGeneratorExceptionpublic SelValueExt evalSelValueExt(ApplicationStructure asObj, org.w3c.dom.Element elem) throws QueryStructureGeneratorException
asObj - the application structure.elem - An element represents the selvalueext element.QueryStructureGeneratorExceptionpublic 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.QueryStructureGeneratorExceptionpublic SelOpcode evalSelOpcode(ApplicationStructure asObj, org.w3c.dom.Element elem) throws QueryStructureGeneratorException
asObj - the application structure.elem - An element represents an element with attribute selopcode.QueryStructureGeneratorExceptionpublic 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.QueryStructureGeneratorExceptionpublic TS_Value evalTS_Value(ApplicationStructure asObj, org.w3c.dom.Element elem) throws QueryStructureGeneratorException
asObj - the application structure.elem - An element represents the SelItem element.QueryStructureGeneratorExceptionpublic 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.QueryStructureGeneratorExceptionpublic short evalFlag(ApplicationStructure asObj, org.w3c.dom.Element elem) throws QueryStructureGeneratorException
asObj - the application structure.elem - An element represents an element with attribute flag.QueryStructureGeneratorExceptionpublic 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.QueryStructureGeneratorExceptionpublic 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.QueryStructureGeneratorExceptionpublic 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.QueryStructureGeneratorExceptionpublic AIDNameUnitId evalAIDNameUnitId(ApplicationStructure asObj, org.w3c.dom.Element elem) throws QueryStructureGeneratorException
asObj - the application structure.elem - An element represents the AIDNameUnitId element.QueryStructureGeneratorExceptionpublic 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.QueryStructureGeneratorExceptionpublic AIDName evalAIDName(ApplicationStructure asObj, org.w3c.dom.Element elem) throws QueryStructureGeneratorException
asObj - the application structure.elem - An element represents the aidname element.QueryStructureGeneratorExceptionpublic 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.QueryStructureGeneratorExceptionpublic T_LONGLONG evalAID(ApplicationStructure asObj, org.w3c.dom.Element elem) throws QueryStructureGeneratorException
asObj - the application structure.elem - An element represents the aid element.QueryStructureGeneratorExceptionpublic 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.QueryStructureGeneratorExceptionpublic 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.QueryStructureGeneratorExceptionpublic 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.QueryStructureGeneratorExceptionpublic InstanceElement evalUnit(ApplicationStructure asObj, org.w3c.dom.Element elem) throws QueryStructureGeneratorException
asObj - the application structure.elem - An element represents the unit element.QueryStructureGeneratorExceptionpublic 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.QueryStructureGeneratorExceptionpublic AggrFunc evalAggregate(ApplicationStructure asObj, org.w3c.dom.Element elem) throws QueryStructureGeneratorException
asObj - the application structure.elem - An element represents the aggregate element.QueryStructureGeneratorExceptionpublic 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.QueryStructureGeneratorExceptionpublic JoinType evalJoinType(ApplicationStructure asObj, org.w3c.dom.Element elem) throws QueryStructureGeneratorException
asObj - the application structure.elem - An joindef element.QueryStructureGeneratorExceptionpublic 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.QueryStructureGeneratorExceptionprotected 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 childMultipleElementNotAllowedExceptionMissingChildNodeException