|
ShrinkWrap Descriptors Generated Java EE API 2.0.0-alpha-3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ApplicationDescriptor
This deployment descriptor provides the functionalities as described in the specification
Example:
ApplicationDescriptor descriptor = Descriptors.create(ApplicationDescriptor.class);
Method Summary | |
---|---|
IconType<ApplicationDescriptor> |
createIcon()
Creates a new icon element |
ModuleType<ApplicationDescriptor> |
createModule()
Creates a new module element |
SecurityRoleType<ApplicationDescriptor> |
createSecurityRole()
Creates a new security-role element |
ApplicationDescriptor |
description(String... values)
Creates for all String objects representing description elements,
a new description element |
ApplicationDescriptor |
displayName(String... values)
Creates for all String objects representing display-name elements,
a new display-name element |
List<String> |
getAllDescription()
Returns all description elements |
List<String> |
getAllDisplayName()
Returns all display-name elements |
List<IconType<ApplicationDescriptor>> |
getAllIcon()
Returns all icon elements |
List<ModuleType<ApplicationDescriptor>> |
getAllModule()
Returns all module elements |
List<SecurityRoleType<ApplicationDescriptor>> |
getAllSecurityRole()
Returns all security-role elements |
String |
getLibraryDirectory()
Returns the library-directory element |
IconType<ApplicationDescriptor> |
getOrCreateIcon()
If not already created, a new icon element will be created and returned. |
ModuleType<ApplicationDescriptor> |
getOrCreateModule()
If not already created, a new module element will be created and returned. |
SecurityRoleType<ApplicationDescriptor> |
getOrCreateSecurityRole()
If not already created, a new security-role element will be created and returned. |
String |
getVersion()
Returns the version attribute |
ApplicationDescriptor |
libraryDirectory(String libraryDirectory)
Sets the library-directory element |
ApplicationDescriptor |
removeAllDescription()
Removes the description element |
ApplicationDescriptor |
removeAllDisplayName()
Removes the display-name element |
ApplicationDescriptor |
removeAllIcon()
Removes all icon elements |
ApplicationDescriptor |
removeAllModule()
Removes all module elements |
ApplicationDescriptor |
removeAllSecurityRole()
Removes all security-role elements |
ApplicationDescriptor |
removeLibraryDirectory()
Removes the library-directory element |
ApplicationDescriptor |
removeVersion()
Removes the version attribute |
ApplicationDescriptor |
version(String version)
Sets the version attribute |
Methods inherited from interface org.jboss.shrinkwrap.descriptor.api.Descriptor |
---|
exportAsString, exportTo, getDescriptorName |
Methods inherited from interface org.jboss.shrinkwrap.descriptor.api.DescriptorNamespace |
---|
addDefaultNamespaces, addNamespace, getNamespaces, removeAllNamespaces |
Method Detail |
---|
ApplicationDescriptor description(String... values)
description
elements,
a new description
element
values
- list of description
objects
ApplicationDescriptor
List<String> getAllDescription()
description
elements
description
ApplicationDescriptor removeAllDescription()
description
element
ApplicationDescriptor
ApplicationDescriptor displayName(String... values)
display-name
elements,
a new display-name
element
values
- list of display-name
objects
ApplicationDescriptor
List<String> getAllDisplayName()
display-name
elements
display-name
ApplicationDescriptor removeAllDisplayName()
display-name
element
ApplicationDescriptor
IconType<ApplicationDescriptor> getOrCreateIcon()
icon
element will be created and returned.
Otherwise, the first existing icon
element will be returned.
icon
IconType<ApplicationDescriptor> createIcon()
icon
element
IconType
List<IconType<ApplicationDescriptor>> getAllIcon()
icon
elements
icon
ApplicationDescriptor removeAllIcon()
icon
elements
IconType
ModuleType<ApplicationDescriptor> getOrCreateModule()
module
element will be created and returned.
Otherwise, the first existing module
element will be returned.
module
ModuleType<ApplicationDescriptor> createModule()
module
element
ModuleType
List<ModuleType<ApplicationDescriptor>> getAllModule()
module
elements
module
ApplicationDescriptor removeAllModule()
module
elements
ModuleType
SecurityRoleType<ApplicationDescriptor> getOrCreateSecurityRole()
security-role
element will be created and returned.
Otherwise, the first existing security-role
element will be returned.
security-role
SecurityRoleType<ApplicationDescriptor> createSecurityRole()
security-role
element
SecurityRoleType
List<SecurityRoleType<ApplicationDescriptor>> getAllSecurityRole()
security-role
elements
security-role
ApplicationDescriptor removeAllSecurityRole()
security-role
elements
SecurityRoleType
ApplicationDescriptor libraryDirectory(String libraryDirectory)
library-directory
element
libraryDirectory
- the value for the element library-directory
ApplicationDescriptor
String getLibraryDirectory()
library-directory
element
library-directory
ApplicationDescriptor removeLibraryDirectory()
library-directory
element
ApplicationDescriptor
ApplicationDescriptor version(String version)
version
attribute
version
- the value for the attribute version
ApplicationDescriptor
String getVersion()
version
attribute
version
ApplicationDescriptor removeVersion()
version
attribute
ApplicationDescriptor
|
ShrinkWrap Descriptors Generated Java EE API 2.0.0-alpha-3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |