org.jomc.model.modlet
Class ModelHelper

Package class diagram package ModelHelper
java.lang.Object
  extended by org.jomc.model.modlet.ModelHelper

public abstract class ModelHelper
extends Object

Object management and configuration Model helper.

Version:
$JOMC: ModelHelper.java 3838 2011-10-08 20:15:41Z schulte2005 $
Author:
Christian Schulte

Constructor Summary
ModelHelper()
          Creates a new ModelHelper instance.
 
Method Summary
static void addModules(Model model, Modules modules)
          Adds Modules to a Model.
static Modules getModules(Model model)
          Gets the Modules of a Model.
static void removeModules(Model model)
          Removes Modules from a Model.
static void setModules(Model model, Modules modules)
          Sets the Modules of a Model.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModelHelper

public ModelHelper()
Creates a new ModelHelper instance.

Method Detail

getModules

public static Modules getModules(Model model)
Gets the Modules of a Model.

Parameters:
model - The Model to get Modules of.
Returns:
The Modules of Model or null.
Throws:
NullPointerException - if model is null.
See Also:
addModules(org.jomc.modlet.Model, org.jomc.model.Modules), setModules(org.jomc.modlet.Model, org.jomc.model.Modules)

setModules

public static void setModules(Model model,
                              Modules modules)
Sets the Modules of a Model.

Parameters:
model - The Model to set modules of.
modules - The Modules to set.
Throws:
NullPointerException - if model or modules is null.
IllegalStateException - if model already holds Modules.
See Also:
addModules(org.jomc.modlet.Model, org.jomc.model.Modules), removeModules(org.jomc.modlet.Model)

addModules

public static void addModules(Model model,
                              Modules modules)
Adds Modules to a Model.

Parameters:
model - The Model to add modules to.
modules - The Modules to add to model.
Throws:
NullPointerException - if model or modules is null.
See Also:
removeModules(org.jomc.modlet.Model), setModules(org.jomc.modlet.Model, org.jomc.model.Modules)

removeModules

public static void removeModules(Model model)
Removes Modules from a Model.

Parameters:
model - The Model to remove modules from.
Throws:
NullPointerException - if model is null.
See Also:
addModules(org.jomc.modlet.Model, org.jomc.model.Modules), setModules(org.jomc.modlet.Model, org.jomc.model.Modules)


Copyright © 2005-2012 The JOMC Project. All Rights Reserved.Get JOMC at SourceForge.net. Fast, secure and Free Open Source software downloads
Please note that this documentation is maintained by non-native english speaking authors. As such, you may encounter phrases or wordings which seem imprecise or may even have a totally different meaning to native english speaking readers than what the individual author was trying to express. If you are a native english speaking reader and find any such phrases or wordings we kindly ask you to send an email to the corresponding author and help us improve this documentation in order to avoid misunderstandings. You will find the authors' email addresses at the top of each class. Please accept our apologies for any inconvenience caused.