org.jboss.shrinkwrap.descriptor.impl.webapp30
Class WebApp30DescriptorImpl

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.webapp30.WebApp30DescriptorImpl
All Implemented Interfaces:
org.jboss.shrinkwrap.descriptor.api.Descriptor, org.jboss.shrinkwrap.descriptor.api.DescriptorNamespace<WebApp30Descriptor>, WebApp30Descriptor, org.jboss.shrinkwrap.descriptor.spi.NodeProvider

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

This deployment descriptor provides the functionalities as described in the web-app_3_0.xsd specification

Example:

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

Since:
Generation date :2011-07-19T22:55:02.759+02:00
Author:
Ralf Battenfeld

Constructor Summary
WebApp30DescriptorImpl(java.lang.String descriptorName)
           
WebApp30DescriptorImpl(java.lang.String descriptorName, org.jboss.shrinkwrap.descriptor.spi.Node node)
           
 
Method Summary
 AbsoluteOrderingType<WebApp30Descriptor> absoluteOrdering()
          Returns the absolute-ordering element
 WebApp30Descriptor addDefaultNamespaces()
           
 WebApp30Descriptor addNamespace(java.lang.String name, java.lang.String value)
           
 ParamValueType<WebApp30Descriptor> contextParam()
          Returns the context-param element
 DataSourceType<WebApp30Descriptor> dataSource()
          Returns the data-source element
 WebApp30Descriptor distributable()
           
 EjbLocalRefType<WebApp30Descriptor> ejbLocalRef()
          Returns the ejb-local-ref element
 EjbRefType<WebApp30Descriptor> ejbRef()
          Returns the ejb-ref element
 EnvEntryType<WebApp30Descriptor> envEntry()
          Returns the env-entry element
 ErrorPageType<WebApp30Descriptor> errorPage()
          Returns the error-page element
 FilterType<WebApp30Descriptor> filter()
          Returns the filter element
 FilterMappingType<WebApp30Descriptor> filterMapping()
          Returns the filter-mapping element
 java.util.List<AbsoluteOrderingType<WebApp30Descriptor>> getAbsoluteOrderingList()
          Returns all absolute-ordering elements
 java.util.List<ParamValueType<WebApp30Descriptor>> getContextParamList()
          Returns all context-param elements
 java.util.List<DataSourceType<WebApp30Descriptor>> getDataSourceList()
          Returns all data-source elements
 java.util.List<java.lang.String> getDescriptionList()
          Returns all description elements
 java.util.List<java.lang.String> getDisplayNameList()
          Returns all display-name elements
 java.util.List<EjbLocalRefType<WebApp30Descriptor>> getEjbLocalRefList()
          Returns all ejb-local-ref elements
 java.util.List<EjbRefType<WebApp30Descriptor>> getEjbRefList()
          Returns all ejb-ref elements
 java.util.List<EnvEntryType<WebApp30Descriptor>> getEnvEntryList()
          Returns all env-entry elements
 java.util.List<ErrorPageType<WebApp30Descriptor>> getErrorPageList()
          Returns all error-page elements
 java.util.List<FilterType<WebApp30Descriptor>> getFilterList()
          Returns all filter elements
 java.util.List<FilterMappingType<WebApp30Descriptor>> getFilterMappingList()
          Returns all filter-mapping elements
 java.util.List<IconType<WebApp30Descriptor>> getIconList()
          Returns all icon elements
 java.util.List<JspConfigType<WebApp30Descriptor>> getJspConfigList()
          Returns all jsp-config elements
 java.util.List<ListenerType<WebApp30Descriptor>> getListenerList()
          Returns all listener elements
 java.util.List<LocaleEncodingMappingListType<WebApp30Descriptor>> getLocaleEncodingMappingListList()
          Returns all locale-encoding-mapping-list elements
 java.util.List<LoginConfigType<WebApp30Descriptor>> getLoginConfigList()
          Returns all login-config elements
 java.util.List<MessageDestinationType<WebApp30Descriptor>> getMessageDestinationList()
          Returns all message-destination elements
 java.util.List<MessageDestinationRefType<WebApp30Descriptor>> getMessageDestinationRefList()
          Returns all message-destination-ref elements
 java.util.List<MimeMappingType<WebApp30Descriptor>> getMimeMappingList()
          Returns all mime-mapping elements
 java.util.List<java.lang.String> getModuleNameList()
          Returns all module-name elements
 java.util.List<java.lang.String> getNamespaces()
           
 java.util.List<PersistenceContextRefType<WebApp30Descriptor>> getPersistenceContextRefList()
          Returns all persistence-context-ref elements
 java.util.List<PersistenceUnitRefType<WebApp30Descriptor>> getPersistenceUnitRefList()
          Returns all persistence-unit-ref elements
 java.util.List<LifecycleCallbackType<WebApp30Descriptor>> getPostConstructList()
          Returns all post-construct elements
 java.util.List<LifecycleCallbackType<WebApp30Descriptor>> getPreDestroyList()
          Returns all pre-destroy elements
 java.util.List<ResourceEnvRefType<WebApp30Descriptor>> getResourceEnvRefList()
          Returns all resource-env-ref elements
 java.util.List<ResourceRefType<WebApp30Descriptor>> getResourceRefList()
          Returns all resource-ref elements
 org.jboss.shrinkwrap.descriptor.spi.Node getRootNode()
           
 java.util.List<SecurityConstraintType<WebApp30Descriptor>> getSecurityConstraintList()
          Returns all security-constraint elements
 java.util.List<SecurityRoleType<WebApp30Descriptor>> getSecurityRoleList()
          Returns all security-role elements
 java.util.List<ServletType<WebApp30Descriptor>> getServletList()
          Returns all servlet elements
 java.util.List<ServletMappingType<WebApp30Descriptor>> getServletMappingList()
          Returns all servlet-mapping elements
 java.util.List<SessionConfigType<WebApp30Descriptor>> getSessionConfigList()
          Returns all session-config elements
 WebAppVersionType getVersion()
          Returns the version element
 java.lang.String getVersionAsString()
          Returns the version element
 java.util.List<WelcomeFileListType<WebApp30Descriptor>> getWelcomeFileListList()
          Returns all welcome-file-list elements
 IconType<WebApp30Descriptor> icon()
          Returns the icon element
 java.lang.Boolean isDistributable()
           
 java.lang.Boolean isMetadataComplete()
          Returns the metadata-complete element
 JspConfigType<WebApp30Descriptor> jspConfig()
          Returns the jsp-config element
 ListenerType<WebApp30Descriptor> listener()
          Returns the listener element
 LocaleEncodingMappingListType<WebApp30Descriptor> localeEncodingMappingList()
          Returns the locale-encoding-mapping-list element
 LoginConfigType<WebApp30Descriptor> loginConfig()
          Returns the login-config element
 MessageDestinationType<WebApp30Descriptor> messageDestination()
          Returns the message-destination element
 MessageDestinationRefType<WebApp30Descriptor> messageDestinationRef()
          Returns the message-destination-ref element
 MimeMappingType<WebApp30Descriptor> mimeMapping()
          Returns the mime-mapping element
 PersistenceContextRefType<WebApp30Descriptor> persistenceContextRef()
          Returns the persistence-context-ref element
 PersistenceUnitRefType<WebApp30Descriptor> persistenceUnitRef()
          Returns the persistence-unit-ref element
 LifecycleCallbackType<WebApp30Descriptor> postConstruct()
          Returns the post-construct element
 LifecycleCallbackType<WebApp30Descriptor> preDestroy()
          Returns the pre-destroy element
 WebApp30Descriptor removeAllAbsoluteOrdering()
          Removes all absolute-ordering elements
 WebApp30Descriptor removeAllContextParam()
          Removes all context-param elements
 WebApp30Descriptor removeAllDataSource()
          Removes all data-source elements
 WebApp30Descriptor removeAllDescription()
          Removes the description element
 WebApp30Descriptor removeAllDisplayName()
          Removes the display-name element
 WebApp30Descriptor removeAllEjbLocalRef()
          Removes all ejb-local-ref elements
 WebApp30Descriptor removeAllEjbRef()
          Removes all ejb-ref elements
 WebApp30Descriptor removeAllEnvEntry()
          Removes all env-entry elements
 WebApp30Descriptor removeAllErrorPage()
          Removes all error-page elements
 WebApp30Descriptor removeAllFilter()
          Removes all filter elements
 WebApp30Descriptor removeAllFilterMapping()
          Removes all filter-mapping elements
 WebApp30Descriptor removeAllIcon()
          Removes all icon elements
 WebApp30Descriptor removeAllJspConfig()
          Removes all jsp-config elements
 WebApp30Descriptor removeAllListener()
          Removes all listener elements
 WebApp30Descriptor removeAllLocaleEncodingMappingList()
          Removes all locale-encoding-mapping-list elements
 WebApp30Descriptor removeAllLoginConfig()
          Removes all login-config elements
 WebApp30Descriptor removeAllMessageDestination()
          Removes all message-destination elements
 WebApp30Descriptor removeAllMessageDestinationRef()
          Removes all message-destination-ref elements
 WebApp30Descriptor removeAllMimeMapping()
          Removes all mime-mapping elements
 WebApp30Descriptor removeAllModuleName()
          Removes the module-name element
 WebApp30Descriptor removeAllNamespaces()
           
 WebApp30Descriptor removeAllPersistenceContextRef()
          Removes all persistence-context-ref elements
 WebApp30Descriptor removeAllPersistenceUnitRef()
          Removes all persistence-unit-ref elements
 WebApp30Descriptor removeAllPostConstruct()
          Removes all post-construct elements
 WebApp30Descriptor removeAllPreDestroy()
          Removes all pre-destroy elements
 WebApp30Descriptor removeAllResourceEnvRef()
          Removes all resource-env-ref elements
 WebApp30Descriptor removeAllResourceRef()
          Removes all resource-ref elements
 WebApp30Descriptor removeAllSecurityConstraint()
          Removes all security-constraint elements
 WebApp30Descriptor removeAllSecurityRole()
          Removes all security-role elements
 WebApp30Descriptor removeAllServlet()
          Removes all servlet elements
 WebApp30Descriptor removeAllServletMapping()
          Removes all servlet-mapping elements
 WebApp30Descriptor removeAllSessionConfig()
          Removes all session-config elements
 WebApp30Descriptor removeAllWelcomeFileList()
          Removes all welcome-file-list elements
 WebApp30Descriptor removeMetadataComplete()
          Removes the metadata-complete attribute
 WebApp30Descriptor removeVersion()
          Removes the version attribute
 ResourceEnvRefType<WebApp30Descriptor> resourceEnvRef()
          Returns the resource-env-ref element
 ResourceRefType<WebApp30Descriptor> resourceRef()
          Returns the resource-ref element
 SecurityConstraintType<WebApp30Descriptor> securityConstraint()
          Returns the security-constraint element
 SecurityRoleType<WebApp30Descriptor> securityRole()
          Returns the security-role element
 ServletType<WebApp30Descriptor> servlet()
          Returns the servlet element
 ServletMappingType<WebApp30Descriptor> servletMapping()
          Returns the servlet-mapping element
 SessionConfigType<WebApp30Descriptor> sessionConfig()
          Returns the session-config element
 WebApp30Descriptor setDescription(java.lang.String description)
          Creates a new description element
 WebApp30Descriptor setDescriptionList(java.lang.String... values)
          Creates for all String objects representing description elements, a new description element
 WebApp30Descriptor setDisplayName(java.lang.String displayName)
          Creates a new display-name element
 WebApp30Descriptor setDisplayNameList(java.lang.String... values)
          Creates for all String objects representing display-name elements, a new display-name element
 WebApp30Descriptor setMetadataComplete(java.lang.Boolean metadataComplete)
          Sets the metadata-complete attribute
 WebApp30Descriptor setModuleName(java.lang.String moduleName)
          Creates a new module-name element
 WebApp30Descriptor setModuleNameList(java.lang.String... values)
          Creates for all String objects representing module-name elements, a new module-name element
 WebApp30Descriptor setVersion(java.lang.String version)
          Sets the version attribute
 WebApp30Descriptor setVersion(WebAppVersionType version)
          Sets the version attribute
 WelcomeFileListType<WebApp30Descriptor> welcomeFileList()
          Returns the welcome-file-list element
 
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

WebApp30DescriptorImpl

public WebApp30DescriptorImpl(java.lang.String descriptorName)

WebApp30DescriptorImpl

public WebApp30DescriptorImpl(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 WebApp30Descriptor addDefaultNamespaces()
Specified by:
addDefaultNamespaces in interface org.jboss.shrinkwrap.descriptor.api.DescriptorNamespace<WebApp30Descriptor>

addNamespace

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

getNamespaces

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

removeAllNamespaces

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

setModuleName

public WebApp30Descriptor setModuleName(java.lang.String moduleName)
Creates a new module-name element

Specified by:
setModuleName in interface WebApp30Descriptor
Returns:
the current instance of WebApp30Descriptor

setModuleNameList

public WebApp30Descriptor setModuleNameList(java.lang.String... values)
Creates for all String objects representing module-name elements, a new module-name element

Specified by:
setModuleNameList in interface WebApp30Descriptor
Parameters:
list - of module-name objects
Returns:
the current instance of WebApp30Descriptor

removeAllModuleName

public WebApp30Descriptor removeAllModuleName()
Removes the module-name element

Specified by:
removeAllModuleName in interface WebApp30Descriptor
Returns:
the current instance of WebApp30Descriptor

getModuleNameList

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

Specified by:
getModuleNameList in interface WebApp30Descriptor
Returns:
list of module-name

removeAllAbsoluteOrdering

public WebApp30Descriptor removeAllAbsoluteOrdering()
Removes all absolute-ordering elements

Specified by:
removeAllAbsoluteOrdering in interface WebApp30Descriptor
Returns:
the current instance of WebApp30Descriptor

absoluteOrdering

public AbsoluteOrderingType<WebApp30Descriptor> absoluteOrdering()
Returns the absolute-ordering element

Specified by:
absoluteOrdering in interface WebApp30Descriptor
Returns:
the node defined for the element absolute-ordering

getAbsoluteOrderingList

public java.util.List<AbsoluteOrderingType<WebApp30Descriptor>> getAbsoluteOrderingList()
Returns all absolute-ordering elements

Specified by:
getAbsoluteOrderingList in interface WebApp30Descriptor
Returns:
list of absolute-ordering

distributable

public WebApp30Descriptor distributable()
Specified by:
distributable in interface WebApp30Descriptor

isDistributable

public java.lang.Boolean isDistributable()
Specified by:
isDistributable in interface WebApp30Descriptor

removeAllContextParam

public WebApp30Descriptor removeAllContextParam()
Removes all context-param elements

Specified by:
removeAllContextParam in interface WebApp30Descriptor
Returns:
the current instance of WebApp30Descriptor

contextParam

public ParamValueType<WebApp30Descriptor> contextParam()
Returns the context-param element

Specified by:
contextParam in interface WebApp30Descriptor
Returns:
the node defined for the element context-param

getContextParamList

public java.util.List<ParamValueType<WebApp30Descriptor>> getContextParamList()
Returns all context-param elements

Specified by:
getContextParamList in interface WebApp30Descriptor
Returns:
list of context-param

removeAllFilter

public WebApp30Descriptor removeAllFilter()
Removes all filter elements

Specified by:
removeAllFilter in interface WebApp30Descriptor
Returns:
the current instance of WebApp30Descriptor

filter

public FilterType<WebApp30Descriptor> filter()
Returns the filter element

Specified by:
filter in interface WebApp30Descriptor
Returns:
the node defined for the element filter

getFilterList

public java.util.List<FilterType<WebApp30Descriptor>> getFilterList()
Returns all filter elements

Specified by:
getFilterList in interface WebApp30Descriptor
Returns:
list of filter

removeAllFilterMapping

public WebApp30Descriptor removeAllFilterMapping()
Removes all filter-mapping elements

Specified by:
removeAllFilterMapping in interface WebApp30Descriptor
Returns:
the current instance of WebApp30Descriptor

filterMapping

public FilterMappingType<WebApp30Descriptor> filterMapping()
Returns the filter-mapping element

Specified by:
filterMapping in interface WebApp30Descriptor
Returns:
the node defined for the element filter-mapping

getFilterMappingList

public java.util.List<FilterMappingType<WebApp30Descriptor>> getFilterMappingList()
Returns all filter-mapping elements

Specified by:
getFilterMappingList in interface WebApp30Descriptor
Returns:
list of filter-mapping

removeAllListener

public WebApp30Descriptor removeAllListener()
Removes all listener elements

Specified by:
removeAllListener in interface WebApp30Descriptor
Returns:
the current instance of WebApp30Descriptor

listener

public ListenerType<WebApp30Descriptor> listener()
Returns the listener element

Specified by:
listener in interface WebApp30Descriptor
Returns:
the node defined for the element listener

getListenerList

public java.util.List<ListenerType<WebApp30Descriptor>> getListenerList()
Returns all listener elements

Specified by:
getListenerList in interface WebApp30Descriptor
Returns:
list of listener

removeAllServlet

public WebApp30Descriptor removeAllServlet()
Removes all servlet elements

Specified by:
removeAllServlet in interface WebApp30Descriptor
Returns:
the current instance of WebApp30Descriptor

servlet

public ServletType<WebApp30Descriptor> servlet()
Returns the servlet element

Specified by:
servlet in interface WebApp30Descriptor
Returns:
the node defined for the element servlet

getServletList

public java.util.List<ServletType<WebApp30Descriptor>> getServletList()
Returns all servlet elements

Specified by:
getServletList in interface WebApp30Descriptor
Returns:
list of servlet

removeAllServletMapping

public WebApp30Descriptor removeAllServletMapping()
Removes all servlet-mapping elements

Specified by:
removeAllServletMapping in interface WebApp30Descriptor
Returns:
the current instance of WebApp30Descriptor

servletMapping

public ServletMappingType<WebApp30Descriptor> servletMapping()
Returns the servlet-mapping element

Specified by:
servletMapping in interface WebApp30Descriptor
Returns:
the node defined for the element servlet-mapping

getServletMappingList

public java.util.List<ServletMappingType<WebApp30Descriptor>> getServletMappingList()
Returns all servlet-mapping elements

Specified by:
getServletMappingList in interface WebApp30Descriptor
Returns:
list of servlet-mapping

removeAllSessionConfig

public WebApp30Descriptor removeAllSessionConfig()
Removes all session-config elements

Specified by:
removeAllSessionConfig in interface WebApp30Descriptor
Returns:
the current instance of WebApp30Descriptor

sessionConfig

public SessionConfigType<WebApp30Descriptor> sessionConfig()
Returns the session-config element

Specified by:
sessionConfig in interface WebApp30Descriptor
Returns:
the node defined for the element session-config

getSessionConfigList

public java.util.List<SessionConfigType<WebApp30Descriptor>> getSessionConfigList()
Returns all session-config elements

Specified by:
getSessionConfigList in interface WebApp30Descriptor
Returns:
list of session-config

removeAllMimeMapping

public WebApp30Descriptor removeAllMimeMapping()
Removes all mime-mapping elements

Specified by:
removeAllMimeMapping in interface WebApp30Descriptor
Returns:
the current instance of WebApp30Descriptor

mimeMapping

public MimeMappingType<WebApp30Descriptor> mimeMapping()
Returns the mime-mapping element

Specified by:
mimeMapping in interface WebApp30Descriptor
Returns:
the node defined for the element mime-mapping

getMimeMappingList

public java.util.List<MimeMappingType<WebApp30Descriptor>> getMimeMappingList()
Returns all mime-mapping elements

Specified by:
getMimeMappingList in interface WebApp30Descriptor
Returns:
list of mime-mapping

removeAllWelcomeFileList

public WebApp30Descriptor removeAllWelcomeFileList()
Removes all welcome-file-list elements

Specified by:
removeAllWelcomeFileList in interface WebApp30Descriptor
Returns:
the current instance of WebApp30Descriptor

welcomeFileList

public WelcomeFileListType<WebApp30Descriptor> welcomeFileList()
Returns the welcome-file-list element

Specified by:
welcomeFileList in interface WebApp30Descriptor
Returns:
the node defined for the element welcome-file-list

getWelcomeFileListList

public java.util.List<WelcomeFileListType<WebApp30Descriptor>> getWelcomeFileListList()
Returns all welcome-file-list elements

Specified by:
getWelcomeFileListList in interface WebApp30Descriptor
Returns:
list of welcome-file-list

removeAllErrorPage

public WebApp30Descriptor removeAllErrorPage()
Removes all error-page elements

Specified by:
removeAllErrorPage in interface WebApp30Descriptor
Returns:
the current instance of WebApp30Descriptor

errorPage

public ErrorPageType<WebApp30Descriptor> errorPage()
Returns the error-page element

Specified by:
errorPage in interface WebApp30Descriptor
Returns:
the node defined for the element error-page

getErrorPageList

public java.util.List<ErrorPageType<WebApp30Descriptor>> getErrorPageList()
Returns all error-page elements

Specified by:
getErrorPageList in interface WebApp30Descriptor
Returns:
list of error-page

removeAllJspConfig

public WebApp30Descriptor removeAllJspConfig()
Removes all jsp-config elements

Specified by:
removeAllJspConfig in interface WebApp30Descriptor
Returns:
the current instance of WebApp30Descriptor

jspConfig

public JspConfigType<WebApp30Descriptor> jspConfig()
Returns the jsp-config element

Specified by:
jspConfig in interface WebApp30Descriptor
Returns:
the node defined for the element jsp-config

getJspConfigList

public java.util.List<JspConfigType<WebApp30Descriptor>> getJspConfigList()
Returns all jsp-config elements

Specified by:
getJspConfigList in interface WebApp30Descriptor
Returns:
list of jsp-config

removeAllSecurityConstraint

public WebApp30Descriptor removeAllSecurityConstraint()
Removes all security-constraint elements

Specified by:
removeAllSecurityConstraint in interface WebApp30Descriptor
Returns:
the current instance of WebApp30Descriptor

securityConstraint

public SecurityConstraintType<WebApp30Descriptor> securityConstraint()
Returns the security-constraint element

Specified by:
securityConstraint in interface WebApp30Descriptor
Returns:
the node defined for the element security-constraint

getSecurityConstraintList

public java.util.List<SecurityConstraintType<WebApp30Descriptor>> getSecurityConstraintList()
Returns all security-constraint elements

Specified by:
getSecurityConstraintList in interface WebApp30Descriptor
Returns:
list of security-constraint

removeAllLoginConfig

public WebApp30Descriptor removeAllLoginConfig()
Removes all login-config elements

Specified by:
removeAllLoginConfig in interface WebApp30Descriptor
Returns:
the current instance of WebApp30Descriptor

loginConfig

public LoginConfigType<WebApp30Descriptor> loginConfig()
Returns the login-config element

Specified by:
loginConfig in interface WebApp30Descriptor
Returns:
the node defined for the element login-config

getLoginConfigList

public java.util.List<LoginConfigType<WebApp30Descriptor>> getLoginConfigList()
Returns all login-config elements

Specified by:
getLoginConfigList in interface WebApp30Descriptor
Returns:
list of login-config

removeAllSecurityRole

public WebApp30Descriptor removeAllSecurityRole()
Removes all security-role elements

Specified by:
removeAllSecurityRole in interface WebApp30Descriptor
Returns:
the current instance of WebApp30Descriptor

securityRole

public SecurityRoleType<WebApp30Descriptor> securityRole()
Returns the security-role element

Specified by:
securityRole in interface WebApp30Descriptor
Returns:
the node defined for the element security-role

getSecurityRoleList

public java.util.List<SecurityRoleType<WebApp30Descriptor>> getSecurityRoleList()
Returns all security-role elements

Specified by:
getSecurityRoleList in interface WebApp30Descriptor
Returns:
list of security-role

removeAllMessageDestination

public WebApp30Descriptor removeAllMessageDestination()
Removes all message-destination elements

Specified by:
removeAllMessageDestination in interface WebApp30Descriptor
Returns:
the current instance of WebApp30Descriptor

messageDestination

public MessageDestinationType<WebApp30Descriptor> messageDestination()
Returns the message-destination element

Specified by:
messageDestination in interface WebApp30Descriptor
Returns:
the node defined for the element message-destination

getMessageDestinationList

public java.util.List<MessageDestinationType<WebApp30Descriptor>> getMessageDestinationList()
Returns all message-destination elements

Specified by:
getMessageDestinationList in interface WebApp30Descriptor
Returns:
list of message-destination

removeAllLocaleEncodingMappingList

public WebApp30Descriptor removeAllLocaleEncodingMappingList()
Removes all locale-encoding-mapping-list elements

Specified by:
removeAllLocaleEncodingMappingList in interface WebApp30Descriptor
Returns:
the current instance of WebApp30Descriptor

localeEncodingMappingList

public LocaleEncodingMappingListType<WebApp30Descriptor> localeEncodingMappingList()
Returns the locale-encoding-mapping-list element

Specified by:
localeEncodingMappingList in interface WebApp30Descriptor
Returns:
the node defined for the element locale-encoding-mapping-list

getLocaleEncodingMappingListList

public java.util.List<LocaleEncodingMappingListType<WebApp30Descriptor>> getLocaleEncodingMappingListList()
Returns all locale-encoding-mapping-list elements

Specified by:
getLocaleEncodingMappingListList in interface WebApp30Descriptor
Returns:
list of locale-encoding-mapping-list

setDescription

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

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

setDescriptionList

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

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

removeAllDescription

public WebApp30Descriptor removeAllDescription()
Removes the description element

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

getDescriptionList

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

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

setDisplayName

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

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

setDisplayNameList

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

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

removeAllDisplayName

public WebApp30Descriptor removeAllDisplayName()
Removes the display-name element

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

getDisplayNameList

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

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

removeAllIcon

public WebApp30Descriptor removeAllIcon()
Removes all icon elements

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

icon

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

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

getIconList

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

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

removeAllEnvEntry

public WebApp30Descriptor removeAllEnvEntry()
Removes all env-entry elements

Specified by:
removeAllEnvEntry in interface WebApp30Descriptor
Returns:
the current instance of WebApp30Descriptor

envEntry

public EnvEntryType<WebApp30Descriptor> envEntry()
Returns the env-entry element

Specified by:
envEntry in interface WebApp30Descriptor
Returns:
the node defined for the element env-entry

getEnvEntryList

public java.util.List<EnvEntryType<WebApp30Descriptor>> getEnvEntryList()
Returns all env-entry elements

Specified by:
getEnvEntryList in interface WebApp30Descriptor
Returns:
list of env-entry

removeAllEjbRef

public WebApp30Descriptor removeAllEjbRef()
Removes all ejb-ref elements

Specified by:
removeAllEjbRef in interface WebApp30Descriptor
Returns:
the current instance of WebApp30Descriptor

ejbRef

public EjbRefType<WebApp30Descriptor> ejbRef()
Returns the ejb-ref element

Specified by:
ejbRef in interface WebApp30Descriptor
Returns:
the node defined for the element ejb-ref

getEjbRefList

public java.util.List<EjbRefType<WebApp30Descriptor>> getEjbRefList()
Returns all ejb-ref elements

Specified by:
getEjbRefList in interface WebApp30Descriptor
Returns:
list of ejb-ref

removeAllEjbLocalRef

public WebApp30Descriptor removeAllEjbLocalRef()
Removes all ejb-local-ref elements

Specified by:
removeAllEjbLocalRef in interface WebApp30Descriptor
Returns:
the current instance of WebApp30Descriptor

ejbLocalRef

public EjbLocalRefType<WebApp30Descriptor> ejbLocalRef()
Returns the ejb-local-ref element

Specified by:
ejbLocalRef in interface WebApp30Descriptor
Returns:
the node defined for the element ejb-local-ref

getEjbLocalRefList

public java.util.List<EjbLocalRefType<WebApp30Descriptor>> getEjbLocalRefList()
Returns all ejb-local-ref elements

Specified by:
getEjbLocalRefList in interface WebApp30Descriptor
Returns:
list of ejb-local-ref

removeAllResourceRef

public WebApp30Descriptor removeAllResourceRef()
Removes all resource-ref elements

Specified by:
removeAllResourceRef in interface WebApp30Descriptor
Returns:
the current instance of WebApp30Descriptor

resourceRef

public ResourceRefType<WebApp30Descriptor> resourceRef()
Returns the resource-ref element

Specified by:
resourceRef in interface WebApp30Descriptor
Returns:
the node defined for the element resource-ref

getResourceRefList

public java.util.List<ResourceRefType<WebApp30Descriptor>> getResourceRefList()
Returns all resource-ref elements

Specified by:
getResourceRefList in interface WebApp30Descriptor
Returns:
list of resource-ref

removeAllResourceEnvRef

public WebApp30Descriptor removeAllResourceEnvRef()
Removes all resource-env-ref elements

Specified by:
removeAllResourceEnvRef in interface WebApp30Descriptor
Returns:
the current instance of WebApp30Descriptor

resourceEnvRef

public ResourceEnvRefType<WebApp30Descriptor> resourceEnvRef()
Returns the resource-env-ref element

Specified by:
resourceEnvRef in interface WebApp30Descriptor
Returns:
the node defined for the element resource-env-ref

getResourceEnvRefList

public java.util.List<ResourceEnvRefType<WebApp30Descriptor>> getResourceEnvRefList()
Returns all resource-env-ref elements

Specified by:
getResourceEnvRefList in interface WebApp30Descriptor
Returns:
list of resource-env-ref

removeAllMessageDestinationRef

public WebApp30Descriptor removeAllMessageDestinationRef()
Removes all message-destination-ref elements

Specified by:
removeAllMessageDestinationRef in interface WebApp30Descriptor
Returns:
the current instance of WebApp30Descriptor

messageDestinationRef

public MessageDestinationRefType<WebApp30Descriptor> messageDestinationRef()
Returns the message-destination-ref element

Specified by:
messageDestinationRef in interface WebApp30Descriptor
Returns:
the node defined for the element message-destination-ref

getMessageDestinationRefList

public java.util.List<MessageDestinationRefType<WebApp30Descriptor>> getMessageDestinationRefList()
Returns all message-destination-ref elements

Specified by:
getMessageDestinationRefList in interface WebApp30Descriptor
Returns:
list of message-destination-ref

removeAllPersistenceContextRef

public WebApp30Descriptor removeAllPersistenceContextRef()
Removes all persistence-context-ref elements

Specified by:
removeAllPersistenceContextRef in interface WebApp30Descriptor
Returns:
the current instance of WebApp30Descriptor

persistenceContextRef

public PersistenceContextRefType<WebApp30Descriptor> persistenceContextRef()
Returns the persistence-context-ref element

Specified by:
persistenceContextRef in interface WebApp30Descriptor
Returns:
the node defined for the element persistence-context-ref

getPersistenceContextRefList

public java.util.List<PersistenceContextRefType<WebApp30Descriptor>> getPersistenceContextRefList()
Returns all persistence-context-ref elements

Specified by:
getPersistenceContextRefList in interface WebApp30Descriptor
Returns:
list of persistence-context-ref

removeAllPersistenceUnitRef

public WebApp30Descriptor removeAllPersistenceUnitRef()
Removes all persistence-unit-ref elements

Specified by:
removeAllPersistenceUnitRef in interface WebApp30Descriptor
Returns:
the current instance of WebApp30Descriptor

persistenceUnitRef

public PersistenceUnitRefType<WebApp30Descriptor> persistenceUnitRef()
Returns the persistence-unit-ref element

Specified by:
persistenceUnitRef in interface WebApp30Descriptor
Returns:
the node defined for the element persistence-unit-ref

getPersistenceUnitRefList

public java.util.List<PersistenceUnitRefType<WebApp30Descriptor>> getPersistenceUnitRefList()
Returns all persistence-unit-ref elements

Specified by:
getPersistenceUnitRefList in interface WebApp30Descriptor
Returns:
list of persistence-unit-ref

removeAllPostConstruct

public WebApp30Descriptor removeAllPostConstruct()
Removes all post-construct elements

Specified by:
removeAllPostConstruct in interface WebApp30Descriptor
Returns:
the current instance of WebApp30Descriptor

postConstruct

public LifecycleCallbackType<WebApp30Descriptor> postConstruct()
Returns the post-construct element

Specified by:
postConstruct in interface WebApp30Descriptor
Returns:
the node defined for the element post-construct

getPostConstructList

public java.util.List<LifecycleCallbackType<WebApp30Descriptor>> getPostConstructList()
Returns all post-construct elements

Specified by:
getPostConstructList in interface WebApp30Descriptor
Returns:
list of post-construct

removeAllPreDestroy

public WebApp30Descriptor removeAllPreDestroy()
Removes all pre-destroy elements

Specified by:
removeAllPreDestroy in interface WebApp30Descriptor
Returns:
the current instance of WebApp30Descriptor

preDestroy

public LifecycleCallbackType<WebApp30Descriptor> preDestroy()
Returns the pre-destroy element

Specified by:
preDestroy in interface WebApp30Descriptor
Returns:
the node defined for the element pre-destroy

getPreDestroyList

public java.util.List<LifecycleCallbackType<WebApp30Descriptor>> getPreDestroyList()
Returns all pre-destroy elements

Specified by:
getPreDestroyList in interface WebApp30Descriptor
Returns:
list of pre-destroy

removeAllDataSource

public WebApp30Descriptor removeAllDataSource()
Removes all data-source elements

Specified by:
removeAllDataSource in interface WebApp30Descriptor
Returns:
the current instance of WebApp30Descriptor

dataSource

public DataSourceType<WebApp30Descriptor> dataSource()
Returns the data-source element

Specified by:
dataSource in interface WebApp30Descriptor
Returns:
the node defined for the element data-source

getDataSourceList

public java.util.List<DataSourceType<WebApp30Descriptor>> getDataSourceList()
Returns all data-source elements

Specified by:
getDataSourceList in interface WebApp30Descriptor
Returns:
list of data-source

setVersion

public WebApp30Descriptor setVersion(WebAppVersionType version)
Sets the version attribute

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

setVersion

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

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

removeVersion

public WebApp30Descriptor removeVersion()
Removes the version attribute

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

getVersion

public WebAppVersionType getVersion()
Returns the version element

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

getVersionAsString

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

Specified by:
getVersionAsString in interface WebApp30Descriptor
Returns:
the node defined for the element version

setMetadataComplete

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

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

removeMetadataComplete

public WebApp30Descriptor removeMetadataComplete()
Removes the metadata-complete attribute

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

isMetadataComplete

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

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