public final class ModulesDescriptor
extends java.lang.Object
It basically contains module descriptors, but may also contain any meta data.
| Constructor and Description |
|---|
ModulesDescriptor(java.lang.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(java.lang.String slot)
Adds the given slot to all module descriptors that have not set their slots
explicitly.
|
java.util.List<ModuleDescriptor> |
getDescriptors()
Returns the list of descriptors for modules.
|
java.lang.String |
getModulesId()
Returns the identifier of the set of modules.
|
java.lang.String |
toString() |
public ModulesDescriptor(java.lang.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 java.lang.String getModulesId()
public void addDescriptor(ModuleDescriptor descriptor) throws java.lang.NullPointerException
descriptor - the descriptor to add.java.lang.NullPointerException - if descriptor is null.public java.util.List<ModuleDescriptor> getDescriptors()
public void applyDefaultSlot(java.lang.String slot)
slot - the slot to set.public java.lang.String toString()
Provides the properties via reflection for displaying debug information.
toString in class java.lang.Object