public abstract class ModelHelper extends Object
Model
helper.Constructor and Description |
---|
ModelHelper()
Creates a new
ModelHelper instance. |
Modifier and Type | Method and Description |
---|---|
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 . |
public ModelHelper()
ModelHelper
instance.public static Modules getModules(Model model)
Modules
of a Model
.model
- The Model
to get Modules
of.Modules
of Model
or null
.NullPointerException
- if model
is null
.addModules(org.jomc.modlet.Model, org.jomc.model.Modules)
,
setModules(org.jomc.modlet.Model, org.jomc.model.Modules)
public static void setModules(Model model, Modules modules)
Modules
of a Model
.model
- The Model
to set modules
of.modules
- The Modules
to set.NullPointerException
- if model
or modules
is null
.IllegalStateException
- if model
already holds Modules
.addModules(org.jomc.modlet.Model, org.jomc.model.Modules)
,
removeModules(org.jomc.modlet.Model)
public static void addModules(Model model, Modules modules)
Modules
to a Model
.model
- The Model
to add modules
to.modules
- The Modules
to add to model
.NullPointerException
- if model
or modules
is null
.removeModules(org.jomc.modlet.Model)
,
setModules(org.jomc.modlet.Model, org.jomc.model.Modules)
public static void removeModules(Model model)
Modules
from a Model
.model
- The Model
to remove modules
from.NullPointerException
- if model
is null
.addModules(org.jomc.modlet.Model, org.jomc.model.Modules)
,
setModules(org.jomc.modlet.Model, org.jomc.model.Modules)
Copyright © 2005-2013 The JOMC Project. All Rights Reserved.