public abstract class QueryContextImpl extends Object implements IQueryContext
Constructor and Description |
---|
QueryContextImpl() |
Modifier and Type | Method and Description |
---|---|
boolean |
available(Class<?> type,
Argument.Advice advice)
Is this type of data available from the context?
|
boolean |
converts(Class<?> type,
Argument.Advice advice)
Does the context have a converter for data of this type?
|
String |
convertToString(Class<?> type,
Argument.Advice advice,
Object value)
Convert the value to a string.
|
Object |
convertToValue(Class<?> type,
Argument.Advice advice,
String value)
Convert the String to the value based on the type and advice.
|
Object |
get(Class<?> type,
Argument.Advice advice)
Get this type of data from the context.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getContextDerivedData, getPrefix, getPrimaryFile, mapToExternalIdentifier, mapToObjectId, parse, parses
public boolean available(Class<?> type, Argument.Advice advice)
IQueryContext
available
in interface IQueryContext
type
- the type the data should be converted toadvice
- advice such as from the query as to how the value should be converted.public Object get(Class<?> type, Argument.Advice advice)
IQueryContext
get
in interface IQueryContext
type
- the type the data should be converted toadvice
- advice such as from the query as to how the value should be converted.public boolean converts(Class<?> type, Argument.Advice advice)
IQueryContext
converts
in interface IQueryContext
public String convertToString(Class<?> type, Argument.Advice advice, Object value) throws SnapshotException
IQueryContext
convertToString
in interface IQueryContext
SnapshotException
public Object convertToValue(Class<?> type, Argument.Advice advice, String value) throws SnapshotException
IQueryContext
convertToValue
in interface IQueryContext
SnapshotException