Oracle Data-aware Controls Reference

oracle.dacf.dataset
Class ValidationEvent

java.lang.Object
  extended byjava.util.EventObject
      extended byoracle.dacf.dataset.ValidationEvent
All Implemented Interfaces:
java.io.Serializable

public class ValidationEvent
extends java.util.EventObject

ValidationEvents are fired by an InfoObject in order to:

A ValidationEvent describes:

ValidationEvents are veteoable and are fired before the navigation events. A listener (which implements the ValidationListener interface) can veto the ValidationEvent by throwing a ValidationException. Vetoing the event disapproves the navigation change.

See Also:
InfoObject, ValidationManager, ValidationListener, ValidationException, Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ValidationEvent(java.lang.Object source, javax.infobus.DataItem dataItem, java.lang.String childItemName, int level)
          Constructs a ValidationEvent object.
 
Method Summary
 java.lang.String getChildItemName()
          Returns the name of this DataItem's child, typically a column, which also must be validated.
 javax.infobus.DataItem getDataItem()
          Returns the DataItem published by the InfoObject being validated.
 int getLevel()
          Returns the level of validation to be performed.
 java.lang.String toString()
          Returns a string representation of the validation event.
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ValidationEvent

public ValidationEvent(java.lang.Object source,
                       javax.infobus.DataItem dataItem,
                       java.lang.String childItemName,
                       int level)
Constructs a ValidationEvent object.

Parameters:
source - object firing the event.
level - level of validation to be performed. Validation levels range from InfoObject.LEVEL_COLUMN to InfoObject.LEVEL_APPLICATION.
Method Detail

getChildItemName

public final java.lang.String getChildItemName()
Returns the name of this DataItem's child, typically a column, which also must be validated.

Returns:
the name of this DataItem's child.

getLevel

public final int getLevel()
Returns the level of validation to be performed. Validation levels range from InfoObject.LEVEL_COLUMN to InfoObject.LEVEL_APPLICATION.

Returns:
level of validation.

getDataItem

public final javax.infobus.DataItem getDataItem()
Returns the DataItem published by the InfoObject being validated.

Returns:
the DataItem published by the InfoObject.

toString

public java.lang.String toString()
Returns a string representation of the validation event.

Returns:
the string representation of the validation event.

Oracle Data-aware Controls Reference

 

Copyright © 1997, 2003, Oracle. All rights reserved.