public final class ModulesDescriptor extends Object
It basically contains module descriptors, but may also contain any meta data.
| Constructor and Description |
|---|
ModulesDescriptor(String modulesId)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addDescriptor(ModuleDescriptor descriptor)
Adds the given descriptor to the list of module descriptors.
|
void |
applyDefaultSlot(String slot)
Adds the given slot to all module descriptors that have not set their slots
explicitly.
|
List<ModuleDescriptor> |
getDescriptors()
Returns the list of descriptors for modules.
|
String |
getModulesId()
Returns the identifier of the set of modules.
|
String |
toString() |
public ModulesDescriptor(String modulesId)
modulesId - the identifier of the set of modules. Used for error
reporting mainly. Typically this is the system identifier of the
XML file this descriptor is based on.public String getModulesId()
public void addDescriptor(ModuleDescriptor descriptor) throws NullPointerException
descriptor - the descriptor to add.NullPointerException - if descriptor is null.public List<ModuleDescriptor> getDescriptors()
public void applyDefaultSlot(String slot)
slot - the slot to set.Copyright © 2013–2019 FuseSource. All rights reserved.