|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.datatools.connectivity.oda.spec.ValidationContext
public class ValidationContext
The context for validation of a query specification and associated query specification expressions. It may include a custom validator and/or the contributor of the expression being validated.
Nested Class Summary | |
---|---|
class |
ValidationContext.Connection
A connection context for online validation. |
Constructor Summary | |
---|---|
ValidationContext(ExtensionContributor contributor)
|
|
ValidationContext(IValidator validator)
|
Method Summary | |
---|---|
ValidationContext.Connection |
getConnection()
Gets the optional connection context that may be used by an IValidator implementation
for online validation. |
ExtensionContributor |
getContributor()
Gets the contributor of a custom filter expression being validated. |
java.lang.Object |
getData(java.lang.String key)
Gets the value of a named property. |
java.lang.String |
getQueryText()
Gets the optional query text specified in this context. |
IValidator |
getValidator()
Gets the custom validator of a filter expression being validated. |
void |
setConnection(ValidationContext.Connection validationConn)
Sets the connection context for online validation. |
void |
setData(java.lang.String key,
java.lang.Object value)
Sets the value of a named property. |
void |
setQueryText(java.lang.String queryText)
Sets the query text specified in this context. |
void |
setValidator(IValidator validator)
Sets the custom validator of a filter expression being validated. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ValidationContext(ExtensionContributor contributor)
public ValidationContext(IValidator validator)
Method Detail |
---|
public ExtensionContributor getContributor()
ExtensionContributor
that defines its scope and capabilities,
or null if none is availablepublic IValidator getValidator()
IValidator
instance, or null if none is availablepublic void setValidator(IValidator validator)
validator
- an IValidator
instancepublic java.lang.Object getData(java.lang.String key)
key
- the name of property
public void setData(java.lang.String key, java.lang.Object value)
key
- the name of propertyvalue
- the new value of the named propertypublic java.lang.String getQueryText()
public void setQueryText(java.lang.String queryText)
queryText
- query text; may be null to unset previous valuepublic ValidationContext.Connection getConnection()
IValidator
implementation
for online validation.
A client may optimize performance by re-using its properties for opening a related connection
to prepare and execute a query.
public void setConnection(ValidationContext.Connection validationConn)
IValidator
implementation
to open a connection to perform online validation.
props
- connection properties for opening a connection for online validation
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |