org.jomc.sequences
Class SequenceChangeEvent

Package class diagram package SequenceChangeEvent
java.lang.Object
  extended by java.util.EventObject
      extended by org.jomc.sequences.SequenceChangeEvent
All Implemented Interfaces:
Serializable

@Generated(value="org.jomc.tools.SourceFileProcessor 1.0",
           comments="See http://jomc.sourceforge.net/jomc/1.0/jomc-tools")
public class SequenceChangeEvent
extends EventObject

A "SequenceChange" event gets delivered whenever the state of a sequence changes.

Version:
$Id: SequenceChangeEvent.java 2244 2010-06-29 07:58:09Z schulte2005 $
Author:
Christian Schulte 1.0
See Also:
Serialized Form

Nested Class Summary
Modifier and Type Class and Description
static class SequenceChangeEvent.Status
          Status of a SequenceChangeEvent.
 
Field Summary
Modifier and Type Field and Description
static SequenceChangeEvent.Status ILLEGAL_LENGTH
          A property value is of illegal length.
static SequenceChangeEvent.Status ILLEGAL_VALUE
          A property value is illegal.
static SequenceChangeEvent.Status MANDATORY_VALUE
          A mandatory property is missing a value.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
Constructor and Description
SequenceChangeEvent(Object source, Sequence oldSequence, Sequence newSequence)
          Creates a new SequenceChangeEvent instance.
 
Method Summary
Modifier and Type Method and Description
 Sequence getNewSequence()
          Gets the entity the old sequence is changed to.
 Sequence getOldSequence()
          Gets the entity getting changed.
 List<SequenceChangeEvent.Status> getStatus(String key)
          Gets status for a given key.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

MANDATORY_VALUE

public static final SequenceChangeEvent.Status MANDATORY_VALUE
A mandatory property is missing a value.


ILLEGAL_VALUE

public static final SequenceChangeEvent.Status ILLEGAL_VALUE
A property value is illegal.


ILLEGAL_LENGTH

public static final SequenceChangeEvent.Status ILLEGAL_LENGTH
A property value is of illegal length.

Constructor Detail

SequenceChangeEvent

public SequenceChangeEvent(Object source,
                           Sequence oldSequence,
                           Sequence newSequence)
Creates a new SequenceChangeEvent instance.

Parameters:
source - The source of the event.
oldSequence - The entity getting changed or null if newValue is about to be added to source.
newSequence - The value oldValue will be changed to or null if oldValue is about to be removed from source.
Method Detail

getOldSequence

public Sequence getOldSequence()
Gets the entity getting changed.

Returns:
The entity getting changed or null if a new sequence is added to the source of.the event.

getNewSequence

public Sequence getNewSequence()
Gets the entity the old sequence is changed to.

Returns:
The entity the old sequence is changed to or null if the old sequence is removed from the source of the event.

getStatus

public List<SequenceChangeEvent.Status> getStatus(String key)
Gets status for a given key.

Parameters:
key - The key of the status to return.
Returns:
The status for key.


Copyright © 2005-2010 The JOMC Project. All Rights Reserved.