|
Data Request Broker 2-3-release |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.gael.drb.query.ExternalVariable
public class ExternalVariable
Variable declared as external in the XQuery module prologs.
The variable may be provided before any phase of the processing of the XQuery script. In most cases, the list of external variables is however, augmented during the static analysis phase and used during the dynamic evaluation phase.
Regarding the default value, it is evaluated as soon as the variable has been declared. The default value is not re-evaluated each time they are use, and therefore, their value is independent from the context during any dynamic evaluation phase.
| Constructor Summary | |
|---|---|
protected |
ExternalVariable(fr.gael.drb.query.QName name,
fr.gael.drb.query.SequenceType sequence_type,
DrbSequence default_value)
Constructor of an external variable. |
| Method Summary | |
|---|---|
Object |
clone()
Clones the current instance. |
DrbSequence |
getDefaultValue()
Returns the default value of the variable. |
String |
getLabel()
Deprecated. this operation shall no longer be used as far as the label will no longer be supported in further versions of the engine. |
String |
getName()
Returns the string form of the qualified name of the variable. |
fr.gael.drb.query.QName |
getQName()
Returns the qualified name of the variable. |
protected fr.gael.drb.query.SequenceType |
getSequenceType()
Returns the sequence type of the variable. |
String |
getSequenceTypeName()
Returns the string form of the qualified name of the sequence type of the variable. |
DrbSequence |
getValue()
Returns the value of the variable. |
void |
initialize(fr.gael.drb.query.DynamicContext context)
Returns the value of the variable. |
boolean |
isExternal()
Checks if this variable is declared as external. |
protected void |
setLabel(String label)
Deprecated. this operation shall no longer be used as far as the label will no longer be supported in further versions of the engine. |
protected void |
setName(String name)
Assigns a new name to the variable. |
void |
setValue(DrbItem value)
Assigns item as value of the variable. |
void |
setValue(DrbSequence value)
Assigns a value to the variable. |
String |
toString()
Returns a detailed description of the variable and its value. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected ExternalVariable(fr.gael.drb.query.QName name,
fr.gael.drb.query.SequenceType sequence_type,
DrbSequence default_value)
name - string form of the variable qualified name.sequence_type - the type of the variable.default_value - the default value of the variable.| Method Detail |
|---|
public DrbSequence getDefaultValue()
protected void setLabel(String label)
label - the label of the external variable.public String getLabel()
public Object clone()
public void setValue(DrbSequence value)
throws fr.gael.drb.query.TypeCastException
value - sequence to be assigned as value of the variable.
fr.gael.drb.query.TypeCastExceptionpublic void setValue(DrbItem value)
value - item to be assigned as value of the variable.public DrbSequence getValue()
public void initialize(fr.gael.drb.query.DynamicContext context)
context - a dynamic context not considered in this impelmentation.public String toString()
public fr.gael.drb.query.QName getQName()
public String getName()
protected void setName(String name)
name - the new qualified name of the variable.protected fr.gael.drb.query.SequenceType getSequenceType()
public String getSequenceTypeName()
public boolean isExternal()
|
Data Request Broker - DRB API® 2-3-release |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||