public class CandidatePath extends Val implements Path
Modifier and Type | Class and Description |
---|---|
static class |
CandidatePath.Traversal
Represents a traversal through a field.
|
Modifier and Type | Field and Description |
---|---|
protected LinkedList |
_actions |
protected String |
_correlationVar |
Constructor and Description |
---|
CandidatePath() |
Modifier and Type | Method and Description |
---|---|
void |
castTo(Class type)
Cast this path to the given type.
|
boolean |
equals(Object other) |
protected Object |
eval(Object candidate,
Object orig,
StoreContext ctx,
Object[] params)
Return this value for the given candidate.
|
void |
get(FieldMetaData field,
boolean nullTraversal)
Traverse into the given field of the current object, and update
the current object to that field value.
|
void |
get(FieldMetaData fmd,
XMLMetaData meta)
Traverse into the given field that maps to xml column, and update
the current object to that field value.
|
void |
get(XMLMetaData meta,
String name)
Traverse into the gevin xpath name of the current object, and update
the current object to that xpath field.
|
protected Class |
getCandidateType() |
String |
getCorrelationVar() |
String |
getSchemaAlias() |
Class |
getType()
Return the expected type for this value, or
Object if
the type is unknown. |
XMLMetaData |
getXmlMapping()
Return the current XPath's xmlmapping metadata.
|
int |
hashCode() |
FieldMetaData |
last()
Return the last field in the path, or null if the path does not
not contain a final field.
|
void |
setImplicitType(Class type)
Set the implicit type of the value, based on how it is used in the
filter.
|
void |
setSchemaAlias(String schemaAlias)
Set the schema alias (the identification variable)
this path is begin with.
|
void |
setSubqueryContext(Context conext,
String correlationVar) |
acceptVisit, eval, evaluate, evaluate, getAlias, getMetaData, getName, getPath, getSelectAs, isAggregate, isVariable, isXPath, setAlias, setMetaData
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
acceptVisit, getAlias, getMetaData, getName, getPath, getSelectAs, isAggregate, isVariable, isXPath, setAlias, setMetaData
protected LinkedList _actions
protected String _correlationVar
public void get(FieldMetaData field, boolean nullTraversal)
public Class getType()
Value
Object
if
the type is unknown.protected Class getCandidateType()
public void setImplicitType(Class type)
Value
Object
from Value.getType()
.setImplicitType
in interface Value
public FieldMetaData last()
Path
public void castTo(Class type)
protected Object eval(Object candidate, Object orig, StoreContext ctx, Object[] params)
Val
public void get(FieldMetaData fmd, XMLMetaData meta)
Path
public void get(XMLMetaData meta, String name)
Path
public XMLMetaData getXmlMapping()
Path
getXmlMapping
in interface Path
public void setSchemaAlias(String schemaAlias)
Path
setSchemaAlias
in interface Path
public String getSchemaAlias()
getSchemaAlias
in interface Path
public void setSubqueryContext(Context conext, String correlationVar)
setSubqueryContext
in interface Path
public String getCorrelationVar()
getCorrelationVar
in interface Path
Copyright © 2006–2019 Apache Software Foundation. All rights reserved.