org.nakedobjects.applib.events
Class ParseValueEvent

java.lang.Object
  extended by java.util.EventObject
      extended by org.nakedobjects.applib.events.InteractionEvent
          extended by org.nakedobjects.applib.events.ValidityEvent
              extended by org.nakedobjects.applib.events.ParseValueEvent
All Implemented Interfaces:
java.io.Serializable, ProposedHolderEvent

public class ParseValueEvent
extends ValidityEvent
implements ProposedHolderEvent

Represents a check as to whether the proposed values of the value type is valid.

If InteractionEvent.getReason() is not null then provides the reason why the proposed value is invalid, otherwise the new value is acceptable.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
ParseValueEvent(java.lang.Object source, Identifier classIdentifier, java.lang.String proposed)
           
 
Method Summary
 java.lang.String getProposed()
           
 java.lang.Object getSource()
          Will be the source provided in the constructor if not null, otherwise will fallback to the proposed value.
 
Methods inherited from class org.nakedobjects.applib.events.InteractionEvent
advised, getAdvisorClass, getClassName, getClassNaturalName, getIdentifier, getMemberName, getMemberNaturalName, getMemberParameterNames, getMemberParameterNaturalNames, getReason, isVeto
 
Methods inherited from class java.util.EventObject
toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.nakedobjects.applib.events.ProposedHolderEvent
getMemberNaturalName
 

Constructor Detail

ParseValueEvent

public ParseValueEvent(java.lang.Object source,
                       Identifier classIdentifier,
                       java.lang.String proposed)
Method Detail

getSource

public java.lang.Object getSource()
Will be the source provided in the constructor if not null, otherwise will fallback to the proposed value.

Overrides:
getSource in class ValidityEvent

getProposed

public java.lang.String getProposed()
Specified by:
getProposed in interface ProposedHolderEvent


Copyright © 2001-2009 Naked Objects Group Ltd.. All Rights Reserved.