|
Oracle Data-aware Controls Reference | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectoracle.dacf.dataset.ValidationManager
The ValidationManager class provides the functionality to validate a given data item by name. This class manages the current validation level and helps the NavigationManager to approve (or disapprove) a focus change. If a DataItem needs to be validated the responsibilty is delegated to the producer of that DataItem.
Field Summary | |
static int |
ATTRIBUTE_INVALID
Constant used to indicate that the column is invalid. |
static int |
COLUMN_INVALID
|
protected static java.lang.String |
ERR_PROD_CODE
|
protected static int |
INITIAL_CAPACITY
|
static int |
QUERYVIEW_INVALID
|
static int |
ROW_INVALID
Constant used to indicate that the row is invalid. |
static int |
ROWSET_INVALID
Constant used to indicate that the query RowSet is invalid. |
static int |
SESSION_INVALID
Constant used to indicate that the session is invalid. |
static int |
VALID
Constant used to setup the ValidationException that is thrown to terminate validation. |
Constructor Summary | |
protected |
ValidationManager()
Default constructor. |
Method Summary | |
void |
addItemProducer(IBItemProducer itemProducer)
Adds a IBItemProducer to the list of registered InfoBus producers. |
void |
addProducer(ProducerObject producer)
Deprecated. |
javax.infobus.DataItem |
getDataItem(InfoObject infoObject)
Gets the DataItem for the specified name. |
InfoObject |
getInfoObject(java.lang.String name)
Gets the InfoObject that corresponds to the specified name. |
InfoObject |
getProducer(java.lang.String name)
Gets the producer of the DataItem that should be used to perform validation. |
int |
getValidationLevel()
Returns the existing validation level. |
static ValidationManager |
getValidationManager()
Returns an instance of the ValidationManager. |
void |
removeItemProducer(IBItemProducer itemProducer)
Removes a IBItemProducer to the list of registered InfoBus producers. |
void |
removeProducer(ProducerObject producer)
Deprecated. |
void |
setProducer(ProducerObject producer)
Deprecated. Use addProducer(ProducerObject) instead. |
void |
setValidationLevel(int level)
This method sets the level at which validations should be performed. |
void |
validateDataItem(java.lang.String dataItemName,
int changeLevel)
Internal: Applications should not use this method. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int VALID
ValidationException
,
Constant Field Valuespublic static final int ATTRIBUTE_INVALID
ValidationException
,
Constant Field Valuespublic static final int COLUMN_INVALID
public static final int ROW_INVALID
ValidationException
,
Constant Field Valuespublic static final int ROWSET_INVALID
ValidationException
,
Constant Field Valuespublic static final int QUERYVIEW_INVALID
public static final int SESSION_INVALID
ValidationException
,
Constant Field Valuesprotected static final int INITIAL_CAPACITY
protected static final java.lang.String ERR_PROD_CODE
Constructor Detail |
protected ValidationManager()
Method Detail |
public static ValidationManager getValidationManager()
public InfoObject getProducer(java.lang.String name)
name
- the producer of the DataItem.public void setProducer(ProducerObject producer)
addProducer(ProducerObject)
instead.
public void addProducer(ProducerObject producer)
public void removeProducer(ProducerObject producer)
public void addItemProducer(IBItemProducer itemProducer)
The IBItemProducer responds to subscription requests. It is used to locate the ProducerObject for a DataItem when validation needs to occur.
itemProducer
- the InfoBus producer that serves as an interface to
the consumer objects#removeItemProducer(ItemProducer itemProducer)
public void removeItemProducer(IBItemProducer itemProducer)
The IBItemProducer responds to subscription requests. It is used to locate the ProducerObject for a DataItem when validation needs to occur.
itemProducer
- the InfoBus producer that serves as an interface to
the consumer objects#addItemProducer(ItemProducer itemProducer)
public void setValidationLevel(int level) throws java.lang.IllegalArgumentException
The validation level ranges from InfoObject.LEVEL_COLUMN to InfoObject.LEVEL_SESSION. By default the validation level is set to InfoObject.LEVEL_ATTRIBUTE.
level
- the new validation level.
java.lang.IllegalArgumentException
- if an invalid validation level
is used.InfoObject
public int getValidationLevel()
public void validateDataItem(java.lang.String dataItemName, int changeLevel) throws ValidationException
Checks whether a DataItem is valid. This method is called by the NavigationManager--clients should never directly call this method.
An exception is thrown if the data item is invalid.
dataItemName
- published name of the item that needs to be
validated.changeLevel
- navigational change attempted by the end user.
ValidationException
- if validation failed.public InfoObject getInfoObject(java.lang.String name)
name
- name of the item.
public javax.infobus.DataItem getDataItem(InfoObject infoObject)
infoObject
- the InfoObject that publishes the DataItem.
|
Oracle Data-aware Controls Reference | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 1997, 2003, Oracle. All rights reserved.