public interface EjbJarDescriptor extends Descriptor, DescriptorNamespace<EjbJarDescriptor>, EjbJarCommonDescriptor<EjbJarDescriptor,EnterpriseBeansType<EjbJarDescriptor>>
This deployment descriptor provides the functionalities as described in the specification
Example:
EjbJarDescriptor descriptor = Descriptors.create(EjbJarDescriptor.class);
Modifier and Type | Method and Description |
---|---|
IconType<EjbJarDescriptor> |
createIcon()
Creates a new
icon element |
EjbJarDescriptor |
description(String... values)
Creates for all String objects representing
description elements,
a new description element |
EjbJarDescriptor |
displayName(String... values)
Creates for all String objects representing
display-name elements,
a new display-name element |
EjbJarDescriptor |
ejbClientJar(String ejbClientJar)
Sets the
ejb-client-jar element |
List<String> |
getAllDescription()
Returns all
description elements |
List<String> |
getAllDisplayName()
Returns all
display-name elements |
List<IconType<EjbJarDescriptor>> |
getAllIcon()
Returns all
icon elements |
String |
getEjbClientJar()
Returns the
ejb-client-jar element |
String |
getId()
Returns the
id attribute |
AssemblyDescriptorType<EjbJarDescriptor> |
getOrCreateAssemblyDescriptor()
If not already created, a new
assembly-descriptor element with the given value will be created. |
EnterpriseBeansType<EjbJarDescriptor> |
getOrCreateEnterpriseBeans()
If not already created, a new
enterprise-beans element with the given value will be created. |
IconType<EjbJarDescriptor> |
getOrCreateIcon()
If not already created, a new
icon element will be created and returned. |
InterceptorsType<EjbJarDescriptor> |
getOrCreateInterceptors()
If not already created, a new
interceptors element with the given value will be created. |
RelationshipsType<EjbJarDescriptor> |
getOrCreateRelationships()
If not already created, a new
relationships element with the given value will be created. |
String |
getVersion()
Returns the
version attribute |
EjbJarDescriptor |
id(String id)
Sets the
id attribute |
Boolean |
isMetadataComplete()
Returns the
metadata-complete attribute |
EjbJarDescriptor |
metadataComplete(Boolean metadataComplete)
Sets the
metadata-complete attribute |
EjbJarDescriptor |
removeAllDescription()
Removes the
description element |
EjbJarDescriptor |
removeAllDisplayName()
Removes the
display-name element |
EjbJarDescriptor |
removeAllIcon()
Removes all
icon elements |
EjbJarDescriptor |
removeAssemblyDescriptor()
Removes the
assembly-descriptor element |
EjbJarDescriptor |
removeEjbClientJar()
Removes the
ejb-client-jar element |
EjbJarDescriptor |
removeEnterpriseBeans()
Removes the
enterprise-beans element |
EjbJarDescriptor |
removeId()
Removes the
id attribute |
EjbJarDescriptor |
removeInterceptors()
Removes the
interceptors element |
EjbJarDescriptor |
removeMetadataComplete()
Removes the
metadata-complete attribute |
EjbJarDescriptor |
removeRelationships()
Removes the
relationships element |
EjbJarDescriptor |
removeVersion()
Removes the
version attribute |
EjbJarDescriptor |
version(String version)
Sets the
version attribute |
addDefaultNamespaces, addNamespace, getNamespaces, removeAllNamespaces
exportAsString, exportTo, getDescriptorName
static final String VERSION
EjbJarDescriptor description(String... values)
description
elements,
a new description
elementvalues
- list of description
objectsEjbJarDescriptor
List<String> getAllDescription()
description
elementsdescription
EjbJarDescriptor removeAllDescription()
description
elementEjbJarDescriptor
EjbJarDescriptor displayName(String... values)
display-name
elements,
a new display-name
elementvalues
- list of display-name
objectsEjbJarDescriptor
List<String> getAllDisplayName()
display-name
elementsdisplay-name
EjbJarDescriptor removeAllDisplayName()
display-name
elementEjbJarDescriptor
IconType<EjbJarDescriptor> getOrCreateIcon()
icon
element will be created and returned.
Otherwise, the first existing icon
element will be returned.icon
IconType<EjbJarDescriptor> createIcon()
icon
elementIconType
List<IconType<EjbJarDescriptor>> getAllIcon()
icon
elementsicon
EjbJarDescriptor removeAllIcon()
icon
elementsIconType
EnterpriseBeansType<EjbJarDescriptor> getOrCreateEnterpriseBeans()
enterprise-beans
element with the given value will be created.
Otherwise, the existing enterprise-beans
element will be returned.EnterpriseBeansType
EjbJarDescriptor removeEnterpriseBeans()
enterprise-beans
elementEjbJarDescriptor
InterceptorsType<EjbJarDescriptor> getOrCreateInterceptors()
interceptors
element with the given value will be created.
Otherwise, the existing interceptors
element will be returned.InterceptorsType
EjbJarDescriptor removeInterceptors()
interceptors
elementEjbJarDescriptor
RelationshipsType<EjbJarDescriptor> getOrCreateRelationships()
relationships
element with the given value will be created.
Otherwise, the existing relationships
element will be returned.RelationshipsType
EjbJarDescriptor removeRelationships()
relationships
elementEjbJarDescriptor
AssemblyDescriptorType<EjbJarDescriptor> getOrCreateAssemblyDescriptor()
assembly-descriptor
element with the given value will be created.
Otherwise, the existing assembly-descriptor
element will be returned.AssemblyDescriptorType
EjbJarDescriptor removeAssemblyDescriptor()
assembly-descriptor
elementEjbJarDescriptor
EjbJarDescriptor ejbClientJar(String ejbClientJar)
ejb-client-jar
elementejbClientJar
- the value for the element ejb-client-jar
EjbJarDescriptor
String getEjbClientJar()
ejb-client-jar
elementejb-client-jar
EjbJarDescriptor removeEjbClientJar()
ejb-client-jar
elementEjbJarDescriptor
EjbJarDescriptor version(String version)
version
attributeversion
in interface EjbJarCommonDescriptor<EjbJarDescriptor,EnterpriseBeansType<EjbJarDescriptor>>
version
- the value for the attribute version
EjbJarDescriptor
String getVersion()
version
attributegetVersion
in interface EjbJarCommonDescriptor<EjbJarDescriptor,EnterpriseBeansType<EjbJarDescriptor>>
version
EjbJarDescriptor removeVersion()
version
attributeremoveVersion
in interface EjbJarCommonDescriptor<EjbJarDescriptor,EnterpriseBeansType<EjbJarDescriptor>>
EjbJarDescriptor
EjbJarDescriptor metadataComplete(Boolean metadataComplete)
metadata-complete
attributemetadataComplete
in interface EjbJarCommonDescriptor<EjbJarDescriptor,EnterpriseBeansType<EjbJarDescriptor>>
metadataComplete
- the value for the attribute metadata-complete
EjbJarDescriptor
Boolean isMetadataComplete()
metadata-complete
attributeisMetadataComplete
in interface EjbJarCommonDescriptor<EjbJarDescriptor,EnterpriseBeansType<EjbJarDescriptor>>
metadata-complete
EjbJarDescriptor removeMetadataComplete()
metadata-complete
attributeremoveMetadataComplete
in interface EjbJarCommonDescriptor<EjbJarDescriptor,EnterpriseBeansType<EjbJarDescriptor>>
EjbJarDescriptor
EjbJarDescriptor id(String id)
id
attributeid
in interface EjbJarCommonDescriptor<EjbJarDescriptor,EnterpriseBeansType<EjbJarDescriptor>>
id
- the value for the attribute id
EjbJarDescriptor
String getId()
id
attributegetId
in interface EjbJarCommonDescriptor<EjbJarDescriptor,EnterpriseBeansType<EjbJarDescriptor>>
id
EjbJarDescriptor removeId()
id
attributeremoveId
in interface EjbJarCommonDescriptor<EjbJarDescriptor,EnterpriseBeansType<EjbJarDescriptor>>
EjbJarDescriptor
Copyright © 2018 JBoss by Red Hat. All rights reserved.