org.jboss.shrinkwrap.descriptor.impl.ejbjar30
Class EjbJar30DescriptorImpl

java.lang.Object
  extended by org.jboss.shrinkwrap.descriptor.spi.DescriptorImplBase
      extended by org.jboss.shrinkwrap.descriptor.spi.NodeProviderImplBase
          extended by org.jboss.shrinkwrap.descriptor.impl.ejbjar30.EjbJar30DescriptorImpl
All Implemented Interfaces:
org.jboss.shrinkwrap.descriptor.api.Descriptor, org.jboss.shrinkwrap.descriptor.api.DescriptorNamespace<EjbJar30Descriptor>, EjbJar30Descriptor, org.jboss.shrinkwrap.descriptor.spi.NodeProvider

public class EjbJar30DescriptorImpl
extends org.jboss.shrinkwrap.descriptor.spi.NodeProviderImplBase
implements org.jboss.shrinkwrap.descriptor.api.DescriptorNamespace<EjbJar30Descriptor>, EjbJar30Descriptor

This deployment descriptor provides the functionalities as described in the ejb-jar_3_0.xsd specification

Example:

EjbJar30Descriptor descriptor = Descriptors.create(EjbJar30Descriptor.class);

Since:
Generation date :2011-07-19T22:54:35.59+02:00
Author:
Ralf Battenfeld

Constructor Summary
EjbJar30DescriptorImpl(java.lang.String descriptorName)
           
EjbJar30DescriptorImpl(java.lang.String descriptorName, org.jboss.shrinkwrap.descriptor.spi.Node node)
           
 
Method Summary
 EjbJar30Descriptor addDefaultNamespaces()
           
 EjbJar30Descriptor addNamespace(java.lang.String name, java.lang.String value)
           
 AssemblyDescriptorType<EjbJar30Descriptor> assemblyDescriptor()
          If not already created, a new assembly-descriptor element will be created and returned.
 EnterpriseBeansType<EjbJar30Descriptor> enterpriseBeans()
          If not already created, a new enterprise-beans element will be created and returned.
 java.util.List<java.lang.String> getDescriptionList()
          Returns all description elements
 java.util.List<java.lang.String> getDisplayNameList()
          Returns all display-name elements
 java.lang.String getEjbClientJar()
          Returns the ejb-client-jar element
 java.util.List<IconType<EjbJar30Descriptor>> getIconList()
          Returns all icon elements
 java.util.List<java.lang.String> getNamespaces()
           
 org.jboss.shrinkwrap.descriptor.spi.Node getRootNode()
           
 java.lang.String getVersion()
          Returns the version element
 IconType<EjbJar30Descriptor> icon()
          Returns the icon element
 InterceptorsType<EjbJar30Descriptor> interceptors()
          If not already created, a new interceptors element will be created and returned.
 java.lang.Boolean isMetadataComplete()
          Returns the metadata-complete element
 RelationshipsType<EjbJar30Descriptor> relationships()
          If not already created, a new relationships element will be created and returned.
 EjbJar30Descriptor removeAllDescription()
          Removes the description element
 EjbJar30Descriptor removeAllDisplayName()
          Removes the display-name element
 EjbJar30Descriptor removeAllIcon()
          Removes all icon elements
 EjbJar30Descriptor removeAllNamespaces()
           
 EjbJar30Descriptor removeAssemblyDescriptor()
          Removes the assembly-descriptor element
 EjbJar30Descriptor removeEjbClientJar()
          Removes the ejb-client-jar element
 EjbJar30Descriptor removeEnterpriseBeans()
          Removes the enterprise-beans element
 EjbJar30Descriptor removeInterceptors()
          Removes the interceptors element
 EjbJar30Descriptor removeMetadataComplete()
          Removes the metadata-complete attribute
 EjbJar30Descriptor removeRelationships()
          Removes the relationships element
 EjbJar30Descriptor removeVersion()
          Removes the version attribute
 EjbJar30Descriptor setDescription(java.lang.String description)
          Creates a new description element
 EjbJar30Descriptor setDescriptionList(java.lang.String... values)
          Creates for all String objects representing description elements, a new description element
 EjbJar30Descriptor setDisplayName(java.lang.String displayName)
          Creates a new display-name element
 EjbJar30Descriptor setDisplayNameList(java.lang.String... values)
          Creates for all String objects representing display-name elements, a new display-name element
 EjbJar30Descriptor setEjbClientJar(java.lang.String ejbClientJar)
          If not already created, a new ejb-client-jar element with the given value will be created.
 EjbJar30Descriptor setMetadataComplete(java.lang.Boolean metadataComplete)
          Sets the metadata-complete attribute
 EjbJar30Descriptor setVersion(java.lang.String version)
          Sets the version attribute
 
Methods inherited from class org.jboss.shrinkwrap.descriptor.spi.NodeProviderImplBase
exportAsString, exportTo
 
Methods inherited from class org.jboss.shrinkwrap.descriptor.spi.DescriptorImplBase
getDescriptorName
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.shrinkwrap.descriptor.api.Descriptor
exportAsString, exportTo, getDescriptorName
 

Constructor Detail

EjbJar30DescriptorImpl

public EjbJar30DescriptorImpl(java.lang.String descriptorName)

EjbJar30DescriptorImpl

public EjbJar30DescriptorImpl(java.lang.String descriptorName,
                              org.jboss.shrinkwrap.descriptor.spi.Node node)
Method Detail

getRootNode

public org.jboss.shrinkwrap.descriptor.spi.Node getRootNode()
Specified by:
getRootNode in interface org.jboss.shrinkwrap.descriptor.spi.NodeProvider

addDefaultNamespaces

public EjbJar30Descriptor addDefaultNamespaces()
Specified by:
addDefaultNamespaces in interface org.jboss.shrinkwrap.descriptor.api.DescriptorNamespace<EjbJar30Descriptor>

addNamespace

public EjbJar30Descriptor addNamespace(java.lang.String name,
                                       java.lang.String value)
Specified by:
addNamespace in interface org.jboss.shrinkwrap.descriptor.api.DescriptorNamespace<EjbJar30Descriptor>

getNamespaces

public java.util.List<java.lang.String> getNamespaces()
Specified by:
getNamespaces in interface org.jboss.shrinkwrap.descriptor.api.DescriptorNamespace<EjbJar30Descriptor>

removeAllNamespaces

public EjbJar30Descriptor removeAllNamespaces()
Specified by:
removeAllNamespaces in interface org.jboss.shrinkwrap.descriptor.api.DescriptorNamespace<EjbJar30Descriptor>

removeEnterpriseBeans

public EjbJar30Descriptor removeEnterpriseBeans()
Removes the enterprise-beans element

Specified by:
removeEnterpriseBeans in interface EjbJar30Descriptor
Returns:
the current instance of EjbJar30Descriptor

enterpriseBeans

public EnterpriseBeansType<EjbJar30Descriptor> enterpriseBeans()
If not already created, a new enterprise-beans element will be created and returned. Otherwise, the existing enterprise-beans element will be returned.

Specified by:
enterpriseBeans in interface EjbJar30Descriptor
Returns:
the node defined for the element enterprise-beans

removeInterceptors

public EjbJar30Descriptor removeInterceptors()
Removes the interceptors element

Specified by:
removeInterceptors in interface EjbJar30Descriptor
Returns:
the current instance of EjbJar30Descriptor

interceptors

public InterceptorsType<EjbJar30Descriptor> interceptors()
If not already created, a new interceptors element will be created and returned. Otherwise, the existing interceptors element will be returned.

Specified by:
interceptors in interface EjbJar30Descriptor
Returns:
the node defined for the element interceptors

removeRelationships

public EjbJar30Descriptor removeRelationships()
Removes the relationships element

Specified by:
removeRelationships in interface EjbJar30Descriptor
Returns:
the current instance of EjbJar30Descriptor

relationships

public RelationshipsType<EjbJar30Descriptor> relationships()
If not already created, a new relationships element will be created and returned. Otherwise, the existing relationships element will be returned.

Specified by:
relationships in interface EjbJar30Descriptor
Returns:
the node defined for the element relationships

removeAssemblyDescriptor

public EjbJar30Descriptor removeAssemblyDescriptor()
Removes the assembly-descriptor element

Specified by:
removeAssemblyDescriptor in interface EjbJar30Descriptor
Returns:
the current instance of EjbJar30Descriptor

assemblyDescriptor

public AssemblyDescriptorType<EjbJar30Descriptor> assemblyDescriptor()
If not already created, a new assembly-descriptor element will be created and returned. Otherwise, the existing assembly-descriptor element will be returned.

Specified by:
assemblyDescriptor in interface EjbJar30Descriptor
Returns:
the node defined for the element assembly-descriptor

setEjbClientJar

public EjbJar30Descriptor setEjbClientJar(java.lang.String ejbClientJar)
If not already created, a new ejb-client-jar element with the given value will be created. Otherwise, the existing ejb-client-jar element will be updated with the given value.

Specified by:
setEjbClientJar in interface EjbJar30Descriptor
Returns:
the current instance of EjbJar30Descriptor

removeEjbClientJar

public EjbJar30Descriptor removeEjbClientJar()
Removes the ejb-client-jar element

Specified by:
removeEjbClientJar in interface EjbJar30Descriptor
Returns:
the current instance of EjbJar30Descriptor

getEjbClientJar

public java.lang.String getEjbClientJar()
Returns the ejb-client-jar element

Specified by:
getEjbClientJar in interface EjbJar30Descriptor
Returns:
the node defined for the element ejb-client-jar

setVersion

public EjbJar30Descriptor setVersion(java.lang.String version)
Sets the version attribute

Specified by:
setVersion in interface EjbJar30Descriptor
Parameters:
version - the value for the attribute version
Returns:
the current instance of EjbJar30Descriptor

removeVersion

public EjbJar30Descriptor removeVersion()
Removes the version attribute

Specified by:
removeVersion in interface EjbJar30Descriptor
Returns:
the current instance of EjbJar30Descriptor

getVersion

public java.lang.String getVersion()
Returns the version element

Specified by:
getVersion in interface EjbJar30Descriptor
Returns:
the node defined for the element version

setMetadataComplete

public EjbJar30Descriptor setMetadataComplete(java.lang.Boolean metadataComplete)
Sets the metadata-complete attribute

Specified by:
setMetadataComplete in interface EjbJar30Descriptor
Parameters:
metadataComplete - the value for the attribute metadata-complete
Returns:
the current instance of EjbJar30Descriptor

removeMetadataComplete

public EjbJar30Descriptor removeMetadataComplete()
Removes the metadata-complete attribute

Specified by:
removeMetadataComplete in interface EjbJar30Descriptor
Returns:
the current instance of EjbJar30Descriptor

isMetadataComplete

public java.lang.Boolean isMetadataComplete()
Returns the metadata-complete element

Specified by:
isMetadataComplete in interface EjbJar30Descriptor
Returns:
the node defined for the element metadata-complete

setDescription

public EjbJar30Descriptor setDescription(java.lang.String description)
Creates a new description element

Specified by:
setDescription in interface EjbJar30Descriptor
Returns:
the current instance of EjbJar30Descriptor

setDescriptionList

public EjbJar30Descriptor setDescriptionList(java.lang.String... values)
Creates for all String objects representing description elements, a new description element

Specified by:
setDescriptionList in interface EjbJar30Descriptor
Parameters:
list - of description objects
Returns:
the current instance of EjbJar30Descriptor

removeAllDescription

public EjbJar30Descriptor removeAllDescription()
Removes the description element

Specified by:
removeAllDescription in interface EjbJar30Descriptor
Returns:
the current instance of EjbJar30Descriptor

getDescriptionList

public java.util.List<java.lang.String> getDescriptionList()
Returns all description elements

Specified by:
getDescriptionList in interface EjbJar30Descriptor
Returns:
list of description

setDisplayName

public EjbJar30Descriptor setDisplayName(java.lang.String displayName)
Creates a new display-name element

Specified by:
setDisplayName in interface EjbJar30Descriptor
Returns:
the current instance of EjbJar30Descriptor

setDisplayNameList

public EjbJar30Descriptor setDisplayNameList(java.lang.String... values)
Creates for all String objects representing display-name elements, a new display-name element

Specified by:
setDisplayNameList in interface EjbJar30Descriptor
Parameters:
list - of display-name objects
Returns:
the current instance of EjbJar30Descriptor

removeAllDisplayName

public EjbJar30Descriptor removeAllDisplayName()
Removes the display-name element

Specified by:
removeAllDisplayName in interface EjbJar30Descriptor
Returns:
the current instance of EjbJar30Descriptor

getDisplayNameList

public java.util.List<java.lang.String> getDisplayNameList()
Returns all display-name elements

Specified by:
getDisplayNameList in interface EjbJar30Descriptor
Returns:
list of display-name

removeAllIcon

public EjbJar30Descriptor removeAllIcon()
Removes all icon elements

Specified by:
removeAllIcon in interface EjbJar30Descriptor
Returns:
the current instance of EjbJar30Descriptor

icon

public IconType<EjbJar30Descriptor> icon()
Returns the icon element

Specified by:
icon in interface EjbJar30Descriptor
Returns:
the node defined for the element icon

getIconList

public java.util.List<IconType<EjbJar30Descriptor>> getIconList()
Returns all icon elements

Specified by:
getIconList in interface EjbJar30Descriptor
Returns:
list of icon