public interface ModuleDescriptor extends Descriptor, DescriptorNamespace<ModuleDescriptor>
This deployment descriptor provides the functionalities as described in the specification
Example:
ModuleDescriptor descriptor = Descriptors.create(ModuleDescriptor.class);
Modifier and Type | Method and Description |
---|---|
String |
getName()
Returns the
name attribute |
DependenciesType<ModuleDescriptor> |
getOrCreateDependencies()
If not already created, a new
dependencies element with the given value will be created. |
FilterType<ModuleDescriptor> |
getOrCreateExports()
If not already created, a new
exports element with the given value will be created. |
ClassNameType<ModuleDescriptor> |
getOrCreateMainClass()
If not already created, a new
main-class element with the given value will be created. |
PermissionsType<ModuleDescriptor> |
getOrCreatePermissions()
If not already created, a new
permissions element with the given value will be created. |
PropertyListType<ModuleDescriptor> |
getOrCreateProperties()
If not already created, a new
properties element with the given value will be created. |
ResourcesType<ModuleDescriptor> |
getOrCreateResources()
If not already created, a new
resources element with the given value will be created. |
String |
getSlot()
Returns the
slot attribute |
ModuleDescriptor |
name(String name)
Sets the
name attribute |
ModuleDescriptor |
removeDependencies()
Removes the
dependencies element |
ModuleDescriptor |
removeExports()
Removes the
exports element |
ModuleDescriptor |
removeMainClass()
Removes the
main-class element |
ModuleDescriptor |
removeName()
Removes the
name attribute |
ModuleDescriptor |
removePermissions()
Removes the
permissions element |
ModuleDescriptor |
removeProperties()
Removes the
properties element |
ModuleDescriptor |
removeResources()
Removes the
resources element |
ModuleDescriptor |
removeSlot()
Removes the
slot attribute |
ModuleDescriptor |
slot(String slot)
Sets the
slot attribute |
exportAsString, exportTo, getDescriptorName
addDefaultNamespaces, addNamespace, getNamespaces, removeAllNamespaces
FilterType<ModuleDescriptor> getOrCreateExports()
exports
element with the given value will be created.
Otherwise, the existing exports
element will be returned.FilterType
ModuleDescriptor removeExports()
exports
elementModuleDescriptor
DependenciesType<ModuleDescriptor> getOrCreateDependencies()
dependencies
element with the given value will be created.
Otherwise, the existing dependencies
element will be returned.DependenciesType
ModuleDescriptor removeDependencies()
dependencies
elementModuleDescriptor
ResourcesType<ModuleDescriptor> getOrCreateResources()
resources
element with the given value will be created.
Otherwise, the existing resources
element will be returned.ResourcesType
ModuleDescriptor removeResources()
resources
elementModuleDescriptor
ClassNameType<ModuleDescriptor> getOrCreateMainClass()
main-class
element with the given value will be created.
Otherwise, the existing main-class
element will be returned.ClassNameType
ModuleDescriptor removeMainClass()
main-class
elementModuleDescriptor
PropertyListType<ModuleDescriptor> getOrCreateProperties()
properties
element with the given value will be created.
Otherwise, the existing properties
element will be returned.PropertyListType
ModuleDescriptor removeProperties()
properties
elementModuleDescriptor
PermissionsType<ModuleDescriptor> getOrCreatePermissions()
permissions
element with the given value will be created.
Otherwise, the existing permissions
element will be returned.PermissionsType
ModuleDescriptor removePermissions()
permissions
elementModuleDescriptor
ModuleDescriptor name(String name)
name
attributename
- the value for the attribute name
ModuleDescriptor
String getName()
name
attributename
ModuleDescriptor removeName()
name
attributeModuleDescriptor
ModuleDescriptor slot(String slot)
slot
attributeslot
- the value for the attribute slot
ModuleDescriptor
String getSlot()
slot
attributeslot
ModuleDescriptor removeSlot()
slot
attributeModuleDescriptor
Copyright © 2019 JBoss by Red Hat. All rights reserved.