public class QueryModelXml extends QueryModel
QueryConst
.ASXML
.
To use this model you would typically add PatternElement
objects through the
addQueryPattern
method. You would typically declare an XML-based pattern
as well as a set of constraints on each pattern element. The base model then allows
further access to the query elements.
Modifier and Type | Field and Description |
---|---|
protected org.licas_xml.abs.Element |
structure
This defines the structure required for the reply.
|
protected java.lang.String |
structureType
Defines a default structure condition that a reply can match to
|
fileList, fileType, otherMeta, pattern, queryID, queryType, selectedPattern
Modifier | Constructor and Description |
---|---|
protected |
QueryModelXml()
Create a new instance of QueryModelXml
|
Modifier and Type | Method and Description |
---|---|
void |
addQueryPattern(PatternElement newPattern)
Add the pattern element to the list for the query pattern.
|
org.licas_xml.abs.Element |
getOtherMeta()
Get the other metadata value.
|
org.licas_xml.abs.Element |
getQueryStructure()
Get the reply structure.
|
java.lang.String |
getStructureType()
Get the default structure typeCondition that a reply can map to.
|
void |
setOtherMeta(org.licas_xml.abs.Element theOtherMeta)
Set the other metadata value.
|
void |
setQueryStructure(java.lang.String theStructureType)
Set the structure element based on the structure typeCondition.
|
constraintValues, createAsTextModel, createModel, createNumericalModel, createTextModel, createXmlModel, firstConstraint, firstConstraintType, firstPattern, fromXml, getFileList, getFileType, getPatternNestedAt, getQueryID, getQueryPattern, getQueryType, getTotalNestedPatternCount, getTotalPatternCount, isNumericalQuery, isOtherQuery, isTextQuery, isXmlQuery, patternToNested, printPatternType, removePatternNestedAt, setFileList, setFileType, setQueryID, setQueryPattern, setQueryType, setSingleCondition, setSingleCondition, setSingleCondition, toXml, typeFromOpOther, typeFromOpText
protected java.lang.String structureType
protected org.licas_xml.abs.Element structure
public void addQueryPattern(PatternElement newPattern)
newPattern
- the new pattern to add.public void setQueryStructure(java.lang.String theStructureType)
theStructureType
- the structure typeCondition.public java.lang.String getStructureType()
public org.licas_xml.abs.Element getQueryStructure()
public void setOtherMeta(org.licas_xml.abs.Element theOtherMeta)
MetaConst.META
(Meta) tag name.setOtherMeta
in class QueryModel
theOtherMeta
- and other metadata.public org.licas_xml.abs.Element getOtherMeta()
MetaConst.META
(Meta).getOtherMeta
in class QueryModel