|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--pl.edu.pjwstk.yaod.yaql.engine.queryresulttypes.QueryResult | +--pl.edu.pjwstk.yaod.yaql.engine.queryresulttypes.SingleValue | +--pl.edu.pjwstk.yaod.yaql.engine.queryresulttypes.BinderValue
The BinderValue
class represents a single binder, which is
a pair (name, result). Such binder is a basic element which can be hold on
environmental stack in its sections (activation records).
EnvironmentalStack
,
ActivationRecord
,
QueryResult
Constructor Summary | |
BinderValue(java.lang.String name,
QueryResult value)
Creates a new binder with specified name and value . |
Method Summary | |
java.lang.String |
getName()
Returns the name of the binder. |
java.lang.String |
getTypeAsString()
Returns a name of the result ( QueryResult ) type. |
QueryResult |
getValue()
Returns the value of the binder. |
ActivationRecord |
nested()
The result of nested function, as specified in Stack Based Approach
by K. |
BooleanValue |
operatorCOMPARE(QueryResult r)
Returns a the result of comparing this binder with the result. |
QueryResult |
operatorCREATE(IdentifierValue id)
Creates a new object in data store, which structure corresponds to the structure this binder. |
QueryResult |
operatorCREATELOCAL(IdentifierValue id)
Creates a new local object in data store, which structure corresponds to the structure this binder. |
QueryResult |
operatorCREATEPERMANENT(IdentifierValue id)
Creates a new permanent object in data store, which structure corresponds to the structure this binder. |
QueryResult |
operatorDEREFERENCE()
Returns a the result of dereference operation on binder result, which is this binder itself. |
QueryResult |
operatorFULLDEREFERENCE()
Return a the result of full dereference operation on binder result, which is this binder containing recursively dereferenced value. |
QueryResult |
operatorMIXEDDEREFERENCE()
Returns a the result of mixed dereference operation on binder result, which is this binder contained recursively dereferenced value. |
void |
operatorPRINT(java.lang.String st,
java.io.PrintWriter out)
Prints the actual binder in the normal fashion. |
QueryResult |
operatorSPECIALDEREFERENCE()
Returns a the result of special dereference operation on binder result, which is this binder containing recursively dereferenced value. |
void |
operatorXMLPRINT(java.lang.String st,
java.io.PrintWriter out)
Prints the actual binder in the XML fasion. |
void |
setName(java.lang.String name)
Sets the new name of the binder. |
QueryResult |
setValue(QueryResult value)
Sets the new value of the binder. |
void |
show(java.lang.String st,
java.io.PrintWriter out)
Prints the actual binder in the raw fasion. |
Methods inherited from class pl.edu.pjwstk.yaod.yaql.engine.queryresulttypes.SingleValue |
getNextResultAt, getNumberOfResults, operatorAS, operatorASCENDING, operatorBAG, operatorCOMMA, operatorCOUNT, operatorEXISTS, operatorGROUPAS, operatorINCLUSION, operatorSEQUENCE, operatorSTRUCT, operatorTOSINGLE, operatorUNION, operatorUNIQUE |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BinderValue(java.lang.String name, QueryResult value)
name
and value
.name
- the name of the binder.value
- the value of the binder.QueryResult
Method Detail |
public java.lang.String getTypeAsString()
QueryResult
) type.getTypeAsString
in class QueryResult
QueryResult
public java.lang.String getName()
public void setName(java.lang.String name)
name
- the new name of the binder.public QueryResult getValue()
public QueryResult setValue(QueryResult value)
value
- the new value of the binder.public ActivationRecord nested()
nested
function, as specified in Stack Based Approach
by K. Subieta, is a new activation record containing this binder.nested
in class QueryResult
ActivationRecord
public QueryResult operatorDEREFERENCE() throws TypeMismatchException
operatorDEREFERENCE
in class QueryResult
TypeMismatchException
- never in this case.public QueryResult operatorFULLDEREFERENCE() throws TypeMismatchException
operatorFULLDEREFERENCE
in class QueryResult
TypeMismatchException
- never in this case.public QueryResult operatorSPECIALDEREFERENCE() throws TypeMismatchException
operatorSPECIALDEREFERENCE
in class QueryResult
TypeMismatchException
- - never in this case.public QueryResult operatorMIXEDDEREFERENCE() throws TypeMismatchException
operatorMIXEDDEREFERENCE
in class QueryResult
TypeMismatchException
- never in this case.public BooleanValue operatorCOMPARE(QueryResult r) throws TypeMismatchException
operatorCOMPARE
in class QueryResult
r
- the object to be compare with.TypeMismatchException
- never in this case.BooleanValue
,
QueryResult
public void show(java.lang.String st, java.io.PrintWriter out)
out
object.show
in class QueryResult
st
- the string which is an auxiliary tabulator.out
- the object responsible for displaying information.TypeMismatchException
- never in this case.public void operatorPRINT(java.lang.String st, java.io.PrintWriter out) throws TypeMismatchException
out
object.operatorPRINT
in class QueryResult
st
- the string which is an auxiliary tabulator.out
- the object responsible for displaying information.TypeMismatchException
- never in this case.public void operatorXMLPRINT(java.lang.String st, java.io.PrintWriter out) throws TypeMismatchException
out
object.operatorXMLPRINT
in class QueryResult
st
- the string which is an auxiliary tabulator.out
- the object responsible for displaying information.TypeMismatchException
- never in this case.public QueryResult operatorCREATE(IdentifierValue id) throws TypeMismatchException
operatorCREATELOCAL
.operatorCREATE
in class QueryResult
id
- Identifier of the parent object in object store.TypeMismatchException
- if the structure of binder is not valid.public QueryResult operatorCREATELOCAL(IdentifierValue id) throws TypeMismatchException
operatorCREATELOCAL
in class QueryResult
id
- Identifier of the parent object in object store.TypeMismatchException
- if the structure of binder is not valid.public QueryResult operatorCREATEPERMANENT(IdentifierValue id) throws TypeMismatchException
operatorCREATEPERMANENT
in class QueryResult
id
- Identifier of the parent object in object store.TypeMismatchException
- if the structure of binder is not valid.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |