|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.wpi.cs.dsrg.xmldb.xat.common.operator.XATPropertiesImp | +--edu.wpi.cs.dsrg.xmldb.xat.common.operator.XATQueryObjectImp | +--edu.wpi.cs.dsrg.xmldb.xat.common.operator.XATOperatorImp
Implementation for interface XATOperator.
Field Summary | |
protected int |
columnsFiltered
|
protected java.lang.String |
outputColumnName
|
protected XATNode |
xnodOwner
|
protected XATDataSource |
xtabOutput
|
Fields inherited from class edu.wpi.cs.dsrg.xmldb.xat.common.operator.XATQueryObjectImp |
stats,
statsPresent |
Constructor Summary | |
XATOperatorImp(XATNode node)
Assign a node to this operator . |
Method Summary | |
java.lang.Object |
clone()
Clones the XATOperator. |
int |
getColumnsFiltered()
Gets column filtersd. |
XATNode |
getNode()
Gets the node. |
XATTable |
getOutput()
Deprecated. use XATOperator.getOutputDataSource, then cast to a table or a queue |
java.lang.String |
getOutputColumnName()
Gets output column name. |
XATDataSource |
getOutputDataSource()
Get the output of this Operator. |
java.util.Iterator |
getOutputDataSources()
Get all output data sources for this XATOperator |
XATDataSource |
getPrimaryDataSource()
Get primary data source. |
XATTable |
getPrimarySource()
Deprecated. use XATOperator.getPrimaryDataSource, then cast to a table or a queue |
protected void |
setDefaultProperties()
This will set the default properties that all XATOperators will have. |
void |
setNode(XATNode node)
Sets the opertor's node. |
void |
setOutput(XATDataSource output)
Sets the ouput data source. |
void |
setOutputColumnName(java.lang.String OutputColumnName)
Sets output columns. |
void |
setProperty(java.lang.String name,
java.lang.String value)
sets the given property to the new value. |
java.lang.String |
toString()
returns a string representation |
Methods inherited from class edu.wpi.cs.dsrg.xmldb.xat.common.operator.XATQueryObjectImp |
addStatistic,
compareTo,
getStatistics,
isValidStatistic,
setDefaultStatistics |
Methods inherited from class edu.wpi.cs.dsrg.xmldb.xat.common.operator.XATPropertiesImp |
addProperty,
getProperties,
getProperty,
isValidPropertyName,
setNewPropertyValue |
Methods inherited from class java.lang.Object |
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
protected XATNode xnodOwner
protected XATDataSource xtabOutput
protected java.lang.String outputColumnName
protected int columnsFiltered
Constructor Detail |
public XATOperatorImp(XATNode node)
node
- edu.wpi.cs.dsrg.xmldb.xat.common.xatnode.XATNodeMethod Detail |
public java.lang.Object clone()
public int getColumnsFiltered()
public XATNode getNode()
public XATTable getOutput()
public java.lang.String getOutputColumnName()
public XATDataSource getOutputDataSource()
public java.util.Iterator getOutputDataSources()
public XATDataSource getPrimaryDataSource() throws XATNodeDoesNotExistException
public XATTable getPrimarySource() throws XATNodeDoesNotExistException
protected void setDefaultProperties()
public void setNode(XATNode node)
newNode
- edu.wpi.cs.dsrg.xmldb.xat.common.xatnode.XATNodepublic void setOutput(XATDataSource output)
newoutput
- output data sourcepublic void setOutputColumnName(java.lang.String OutputColumnName)
OutputColumnName
- java.lang.Stringpublic void setProperty(java.lang.String name, java.lang.String value) throws java.lang.Exception
Once it is known that the object supports the property, the value must be validated. Each implementor of XATStatistics has a set of properties that are common to all of its types and some that are specific to types. For example, all XATOperators (which implement XATStatistics) have certain properties while an individual XATOperator has specific properties. The indivual types should only validate their own specific types. If the caller is trying to set a common type, it should be validated by the super class by calling super.setProperty(name, value). This will reduce duplicate code.
When it is determined the name / value pair is correct, the pair is updated using setNewPropertyValue()
XATStatisticsImp provides default validation by checking to see if the property's value is
>=0. propertyValues that are Strings will just be set. If the property requires more strict constraints than this,
it is up to the subclass that created the property to validate it (as described above).
name
- the name of the property to setvalue
- the new value of the propertyname
- the name of the property to setvalue
- the new value of the property
public java.lang.String toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |