org.openbp.cockpit.generator.generic
Class ProcessEntrySettingsImpl

java.lang.Object
  extended by org.openbp.cockpit.generator.GeneratorSettings
      extended by org.openbp.cockpit.generator.generic.ProcessEntrySettingsImpl
All Implemented Interfaces:
java.lang.Cloneable, ProcessEntrySettings, Copyable, Validatable

public class ProcessEntrySettingsImpl
extends GeneratorSettings
implements ProcessEntrySettings

Process entry settings object. This class usually serves as base class for generator settings that contain a list of process entries.

Author:
Heiko Erhardt

Field Summary
 
Fields inherited from interface org.openbp.common.generic.Copyable
COPY_DEEP, COPY_FIRST_LEVEL, COPY_SHALLOW
 
Constructor Summary
ProcessEntrySettingsImpl()
          Default constructor.
 
Method Summary
 void addEntry(ProcessEntry entry)
          Adds an entry.
 void afterDeserialization(MsgContainer msgs)
          This template method is called after the settings object has been deserialized.
 void beforeSerialization()
          This template method is called before the settings object is being serialized.
 void clearEntries()
          Clears the entry list.
 void copyFrom(java.lang.Object source, int copyMode)
          Copies the values of the source object to this object.
 java.util.Iterator getEntries()
          Gets the entry list.
 java.util.List getEntryList()
          Gets the entry list.
 void setEntryList(java.util.List entryList)
          Sets the entry list.
 
Methods inherited from class org.openbp.cockpit.generator.GeneratorSettings
clone, getGeneratorName, getModel, setGeneratorName, setModel, validate
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.openbp.cockpit.generator.generic.ProcessEntrySettings
getModel
 

Constructor Detail

ProcessEntrySettingsImpl

public ProcessEntrySettingsImpl()
Default constructor.

Method Detail

copyFrom

public void copyFrom(java.lang.Object source,
                     int copyMode)
              throws java.lang.CloneNotSupportedException
Copies the values of the source object to this object.

Specified by:
copyFrom in interface Copyable
Overrides:
copyFrom in class GeneratorSettings
Parameters:
source - The source object. Must be of the same type as this object.
copyMode - Determines if a deep copy, a first level copy or a shallow copy is to be performed. See the constants of the org.openbp.common.generic.description.Copyable class.
Throws:
java.lang.CloneNotSupportedException - If the cloning of one of the contained objects failed

getEntries

public java.util.Iterator getEntries()
Gets the entry list.

Returns:
An iterator of ProcessEntry objects

addEntry

public void addEntry(ProcessEntry entry)
Adds an entry.

Parameters:
entry - The entry to add

clearEntries

public void clearEntries()
Clears the entry list.


getEntryList

public java.util.List getEntryList()
Gets the entry list.

Specified by:
getEntryList in interface ProcessEntrySettings
Returns:
A list of ProcessEntry objects

setEntryList

public void setEntryList(java.util.List entryList)
Sets the entry list.

Specified by:
setEntryList in interface ProcessEntrySettings
Parameters:
entryList - A list of ProcessEntry objects

beforeSerialization

public void beforeSerialization()
This template method is called before the settings object is being serialized. It can be overridden to implement custom operations.

Specified by:
beforeSerialization in interface ProcessEntrySettings
Overrides:
beforeSerialization in class GeneratorSettings

afterDeserialization

public void afterDeserialization(MsgContainer msgs)
This template method is called after the settings object has been deserialized. It will add all data members that are not present in the field list to the field list.

Specified by:
afterDeserialization in interface ProcessEntrySettings
Overrides:
afterDeserialization in class GeneratorSettings
Parameters:
msgs - Container for error messages


Copyright © 2011. All Rights Reserved.