| java.lang.Object es.udc.mypersonalizer.kernel.model.query.executor.MetaPropertyResolver
MetaPropertyResolver | public class MetaPropertyResolver (Code) | | Helper class with the purpose of resolving metaproperty names to
MetaProperty objects. This can be done by fetching the
root property of the MetaService with the given name, by
finding the child metaproperty of the context (usually the last resolved
metaproperty) or by looking the name up in the registry of
VirtualProperties .
This class keeps state of the resolved properties to allow navigation
from parent to children metaproperties, so the order of the calls to
MetaPropertyResolver.resolve(String) is relevant.
See Also: es.udc.mypersonalizer.kernel.model.query.executor.QueryExecutor author: Abel Muinho since: 1.0 |
Method Summary | |
protected MetaPropertyResolverContext | getContext() Obtains the current context metaproperty, which will be used by the
resolver on the next call to resolve() . | public MetaProperty | resolve(String name) Resolves the next Step 's name to a
MetaProperty , or returns null if
the name can't be resolved.
Parameters: name - A property name to be resolved. |
MetaPropertyResolver | public MetaPropertyResolver()(Code) | | Default constructor which sets a null context.
|
MetaPropertyResolver | public MetaPropertyResolver(MetaPropertyResolver resolver)(Code) | | Constructor setting an initial context based on the state of the given
resolver.
Parameters: resolver - the resolver whose state will be copied. |
getContext | protected MetaPropertyResolverContext getContext()(Code) | | Obtains the current context metaproperty, which will be used by the
resolver on the next call to resolve() .
the context metaproperty. |
resolve | public MetaProperty resolve(String name)(Code) | | Resolves the next Step 's name to a
MetaProperty , or returns null if
the name can't be resolved.
Parameters: name - A property name to be resolved. the next MetaProperty or null . |
|
|