ShrinkWrap Descriptors Generated Java EE API 2.0.0-alpha-3

org.jboss.shrinkwrap.descriptor.api.webcommon30
Interface WebFragmentType<T>

All Superinterfaces:
Child<T>

public interface WebFragmentType<T>
extends Child<T>

This interface defines the contract for the web-fragmentType xsd type

Since:
Generation date :2012-05-09T23:45:05.33-07:00
Author:
Ralf Battenfeld, Andrew Lee Rubinger

Method Summary
 ParamValueType<WebFragmentType<T>> createContextParam()
          Creates a new context-param element
 DataSourceType<WebFragmentType<T>> createDataSource()
          Creates a new data-source element
 EjbLocalRefType<WebFragmentType<T>> createEjbLocalRef()
          Creates a new ejb-local-ref element
 EjbRefType<WebFragmentType<T>> createEjbRef()
          Creates a new ejb-ref element
 EnvEntryType<WebFragmentType<T>> createEnvEntry()
          Creates a new env-entry element
 ErrorPageType<WebFragmentType<T>> createErrorPage()
          Creates a new error-page element
 FilterType<WebFragmentType<T>> createFilter()
          Creates a new filter element
 FilterMappingType<WebFragmentType<T>> createFilterMapping()
          Creates a new filter-mapping element
 IconType<WebFragmentType<T>> createIcon()
          Creates a new icon element
 JspConfigType<WebFragmentType<T>> createJspConfig()
          Creates a new jsp-config element
 ListenerType<WebFragmentType<T>> createListener()
          Creates a new listener element
 LocaleEncodingMappingListType<WebFragmentType<T>> createLocaleEncodingMappingList()
          Creates a new locale-encoding-mapping-list element
 LoginConfigType<WebFragmentType<T>> createLoginConfig()
          Creates a new login-config element
 MessageDestinationType<WebFragmentType<T>> createMessageDestination()
          Creates a new message-destination element
 MessageDestinationRefType<WebFragmentType<T>> createMessageDestinationRef()
          Creates a new message-destination-ref element
 MimeMappingType<WebFragmentType<T>> createMimeMapping()
          Creates a new mime-mapping element
 OrderingType<WebFragmentType<T>> createOrdering()
          Creates a new ordering element
 PersistenceContextRefType<WebFragmentType<T>> createPersistenceContextRef()
          Creates a new persistence-context-ref element
 PersistenceUnitRefType<WebFragmentType<T>> createPersistenceUnitRef()
          Creates a new persistence-unit-ref element
 LifecycleCallbackType<WebFragmentType<T>> createPostConstruct()
          Creates a new post-construct element
 LifecycleCallbackType<WebFragmentType<T>> createPreDestroy()
          Creates a new pre-destroy element
 ResourceEnvRefType<WebFragmentType<T>> createResourceEnvRef()
          Creates a new resource-env-ref element
 ResourceRefType<WebFragmentType<T>> createResourceRef()
          Creates a new resource-ref element
 SecurityConstraintType<WebFragmentType<T>> createSecurityConstraint()
          Creates a new security-constraint element
 SecurityRoleType<WebFragmentType<T>> createSecurityRole()
          Creates a new security-role element
 ServiceRefType<WebFragmentType<T>> createServiceRef()
          Creates a new service-ref element
 ServletType<WebFragmentType<T>> createServlet()
          Creates a new servlet element
 ServletMappingType<WebFragmentType<T>> createServletMapping()
          Creates a new servlet-mapping element
 SessionConfigType<WebFragmentType<T>> createSessionConfig()
          Creates a new session-config element
 WelcomeFileListType<WebFragmentType<T>> createWelcomeFileList()
          Creates a new welcome-file-list element
 WebFragmentType<T> description(String... values)
          Creates for all String objects representing description elements, a new description element
 WebFragmentType<T> displayName(String... values)
          Creates for all String objects representing display-name elements, a new display-name element
 WebFragmentType<T> distributable()
          Sets the distributable element
 List<ParamValueType<WebFragmentType<T>>> getAllContextParam()
          Returns all context-param elements
 List<DataSourceType<WebFragmentType<T>>> getAllDataSource()
          Returns all data-source elements
 List<String> getAllDescription()
          Returns all description elements
 List<String> getAllDisplayName()
          Returns all display-name elements
 List<EjbLocalRefType<WebFragmentType<T>>> getAllEjbLocalRef()
          Returns all ejb-local-ref elements
 List<EjbRefType<WebFragmentType<T>>> getAllEjbRef()
          Returns all ejb-ref elements
 List<EnvEntryType<WebFragmentType<T>>> getAllEnvEntry()
          Returns all env-entry elements
 List<ErrorPageType<WebFragmentType<T>>> getAllErrorPage()
          Returns all error-page elements
 List<FilterType<WebFragmentType<T>>> getAllFilter()
          Returns all filter elements
 List<FilterMappingType<WebFragmentType<T>>> getAllFilterMapping()
          Returns all filter-mapping elements
 List<IconType<WebFragmentType<T>>> getAllIcon()
          Returns all icon elements
 List<JspConfigType<WebFragmentType<T>>> getAllJspConfig()
          Returns all jsp-config elements
 List<ListenerType<WebFragmentType<T>>> getAllListener()
          Returns all listener elements
 List<LocaleEncodingMappingListType<WebFragmentType<T>>> getAllLocaleEncodingMappingList()
          Returns all locale-encoding-mapping-list elements
 List<LoginConfigType<WebFragmentType<T>>> getAllLoginConfig()
          Returns all login-config elements
 List<MessageDestinationType<WebFragmentType<T>>> getAllMessageDestination()
          Returns all message-destination elements
 List<MessageDestinationRefType<WebFragmentType<T>>> getAllMessageDestinationRef()
          Returns all message-destination-ref elements
 List<MimeMappingType<WebFragmentType<T>>> getAllMimeMapping()
          Returns all mime-mapping elements
 List<String> getAllName()
          Returns all name elements
 List<OrderingType<WebFragmentType<T>>> getAllOrdering()
          Returns all ordering elements
 List<PersistenceContextRefType<WebFragmentType<T>>> getAllPersistenceContextRef()
          Returns all persistence-context-ref elements
 List<PersistenceUnitRefType<WebFragmentType<T>>> getAllPersistenceUnitRef()
          Returns all persistence-unit-ref elements
 List<LifecycleCallbackType<WebFragmentType<T>>> getAllPostConstruct()
          Returns all post-construct elements
 List<LifecycleCallbackType<WebFragmentType<T>>> getAllPreDestroy()
          Returns all pre-destroy elements
 List<ResourceEnvRefType<WebFragmentType<T>>> getAllResourceEnvRef()
          Returns all resource-env-ref elements
 List<ResourceRefType<WebFragmentType<T>>> getAllResourceRef()
          Returns all resource-ref elements
 List<SecurityConstraintType<WebFragmentType<T>>> getAllSecurityConstraint()
          Returns all security-constraint elements
 List<SecurityRoleType<WebFragmentType<T>>> getAllSecurityRole()
          Returns all security-role elements
 List<ServiceRefType<WebFragmentType<T>>> getAllServiceRef()
          Returns all service-ref elements
 List<ServletType<WebFragmentType<T>>> getAllServlet()
          Returns all servlet elements
 List<ServletMappingType<WebFragmentType<T>>> getAllServletMapping()
          Returns all servlet-mapping elements
 List<SessionConfigType<WebFragmentType<T>>> getAllSessionConfig()
          Returns all session-config elements
 List<WelcomeFileListType<WebFragmentType<T>>> getAllWelcomeFileList()
          Returns all welcome-file-list elements
 String getId()
          Returns the id attribute
 ParamValueType<WebFragmentType<T>> getOrCreateContextParam()
          If not already created, a new context-param element will be created and returned.
 DataSourceType<WebFragmentType<T>> getOrCreateDataSource()
          If not already created, a new data-source element will be created and returned.
 EjbLocalRefType<WebFragmentType<T>> getOrCreateEjbLocalRef()
          If not already created, a new ejb-local-ref element will be created and returned.
 EjbRefType<WebFragmentType<T>> getOrCreateEjbRef()
          If not already created, a new ejb-ref element will be created and returned.
 EnvEntryType<WebFragmentType<T>> getOrCreateEnvEntry()
          If not already created, a new env-entry element will be created and returned.
 ErrorPageType<WebFragmentType<T>> getOrCreateErrorPage()
          If not already created, a new error-page element will be created and returned.
 FilterType<WebFragmentType<T>> getOrCreateFilter()
          If not already created, a new filter element will be created and returned.
 FilterMappingType<WebFragmentType<T>> getOrCreateFilterMapping()
          If not already created, a new filter-mapping element will be created and returned.
 IconType<WebFragmentType<T>> getOrCreateIcon()
          If not already created, a new icon element will be created and returned.
 JspConfigType<WebFragmentType<T>> getOrCreateJspConfig()
          If not already created, a new jsp-config element will be created and returned.
 ListenerType<WebFragmentType<T>> getOrCreateListener()
          If not already created, a new listener element will be created and returned.
 LocaleEncodingMappingListType<WebFragmentType<T>> getOrCreateLocaleEncodingMappingList()
          If not already created, a new locale-encoding-mapping-list element will be created and returned.
 LoginConfigType<WebFragmentType<T>> getOrCreateLoginConfig()
          If not already created, a new login-config element will be created and returned.
 MessageDestinationType<WebFragmentType<T>> getOrCreateMessageDestination()
          If not already created, a new message-destination element will be created and returned.
 MessageDestinationRefType<WebFragmentType<T>> getOrCreateMessageDestinationRef()
          If not already created, a new message-destination-ref element will be created and returned.
 MimeMappingType<WebFragmentType<T>> getOrCreateMimeMapping()
          If not already created, a new mime-mapping element will be created and returned.
 OrderingType<WebFragmentType<T>> getOrCreateOrdering()
          If not already created, a new ordering element will be created and returned.
 PersistenceContextRefType<WebFragmentType<T>> getOrCreatePersistenceContextRef()
          If not already created, a new persistence-context-ref element will be created and returned.
 PersistenceUnitRefType<WebFragmentType<T>> getOrCreatePersistenceUnitRef()
          If not already created, a new persistence-unit-ref element will be created and returned.
 LifecycleCallbackType<WebFragmentType<T>> getOrCreatePostConstruct()
          If not already created, a new post-construct element will be created and returned.
 LifecycleCallbackType<WebFragmentType<T>> getOrCreatePreDestroy()
          If not already created, a new pre-destroy element will be created and returned.
 ResourceEnvRefType<WebFragmentType<T>> getOrCreateResourceEnvRef()
          If not already created, a new resource-env-ref element will be created and returned.
 ResourceRefType<WebFragmentType<T>> getOrCreateResourceRef()
          If not already created, a new resource-ref element will be created and returned.
 SecurityConstraintType<WebFragmentType<T>> getOrCreateSecurityConstraint()
          If not already created, a new security-constraint element will be created and returned.
 SecurityRoleType<WebFragmentType<T>> getOrCreateSecurityRole()
          If not already created, a new security-role element will be created and returned.
 ServiceRefType<WebFragmentType<T>> getOrCreateServiceRef()
          If not already created, a new service-ref element will be created and returned.
 ServletType<WebFragmentType<T>> getOrCreateServlet()
          If not already created, a new servlet element will be created and returned.
 ServletMappingType<WebFragmentType<T>> getOrCreateServletMapping()
          If not already created, a new servlet-mapping element will be created and returned.
 SessionConfigType<WebFragmentType<T>> getOrCreateSessionConfig()
          If not already created, a new session-config element will be created and returned.
 WelcomeFileListType<WebFragmentType<T>> getOrCreateWelcomeFileList()
          If not already created, a new welcome-file-list element will be created and returned.
 WebAppVersionType getVersion()
          Returns the version attribute
 String getVersionAsString()
          Returns the version attribute
 WebFragmentType<T> id(String id)
          Sets the id attribute
 Boolean isDistributable()
          Removes the distributable element
 Boolean isMetadataComplete()
          Returns the metadata-complete attribute
 WebFragmentType<T> metadataComplete(Boolean metadataComplete)
          Sets the metadata-complete attribute
 WebFragmentType<T> name(String... values)
          Creates for all String objects representing name elements, a new name element
 WebFragmentType<T> removeAllContextParam()
          Removes all context-param elements
 WebFragmentType<T> removeAllDataSource()
          Removes all data-source elements
 WebFragmentType<T> removeAllDescription()
          Removes the description element
 WebFragmentType<T> removeAllDisplayName()
          Removes the display-name element
 WebFragmentType<T> removeAllEjbLocalRef()
          Removes all ejb-local-ref elements
 WebFragmentType<T> removeAllEjbRef()
          Removes all ejb-ref elements
 WebFragmentType<T> removeAllEnvEntry()
          Removes all env-entry elements
 WebFragmentType<T> removeAllErrorPage()
          Removes all error-page elements
 WebFragmentType<T> removeAllFilter()
          Removes all filter elements
 WebFragmentType<T> removeAllFilterMapping()
          Removes all filter-mapping elements
 WebFragmentType<T> removeAllIcon()
          Removes all icon elements
 WebFragmentType<T> removeAllJspConfig()
          Removes all jsp-config elements
 WebFragmentType<T> removeAllListener()
          Removes all listener elements
 WebFragmentType<T> removeAllLocaleEncodingMappingList()
          Removes all locale-encoding-mapping-list elements
 WebFragmentType<T> removeAllLoginConfig()
          Removes all login-config elements
 WebFragmentType<T> removeAllMessageDestination()
          Removes all message-destination elements
 WebFragmentType<T> removeAllMessageDestinationRef()
          Removes all message-destination-ref elements
 WebFragmentType<T> removeAllMimeMapping()
          Removes all mime-mapping elements
 WebFragmentType<T> removeAllName()
          Removes the name element
 WebFragmentType<T> removeAllOrdering()
          Removes all ordering elements
 WebFragmentType<T> removeAllPersistenceContextRef()
          Removes all persistence-context-ref elements
 WebFragmentType<T> removeAllPersistenceUnitRef()
          Removes all persistence-unit-ref elements
 WebFragmentType<T> removeAllPostConstruct()
          Removes all post-construct elements
 WebFragmentType<T> removeAllPreDestroy()
          Removes all pre-destroy elements
 WebFragmentType<T> removeAllResourceEnvRef()
          Removes all resource-env-ref elements
 WebFragmentType<T> removeAllResourceRef()
          Removes all resource-ref elements
 WebFragmentType<T> removeAllSecurityConstraint()
          Removes all security-constraint elements
 WebFragmentType<T> removeAllSecurityRole()
          Removes all security-role elements
 WebFragmentType<T> removeAllServiceRef()
          Removes all service-ref elements
 WebFragmentType<T> removeAllServlet()
          Removes all servlet elements
 WebFragmentType<T> removeAllServletMapping()
          Removes all servlet-mapping elements
 WebFragmentType<T> removeAllSessionConfig()
          Removes all session-config elements
 WebFragmentType<T> removeAllWelcomeFileList()
          Removes all welcome-file-list elements
 WebFragmentType<T> removeDistributable()
          Removes the distributable element
 WebFragmentType<T> removeId()
          Removes the id attribute
 WebFragmentType<T> removeMetadataComplete()
          Removes the metadata-complete attribute
 WebFragmentType<T> removeVersion()
          Removes the version attribute
 WebFragmentType<T> version(String version)
          Sets the version attribute
 WebFragmentType<T> version(WebAppVersionType version)
          Sets the version attribute
 
Methods inherited from interface org.jboss.shrinkwrap.descriptor.api.Child
up
 

Method Detail

distributable

WebFragmentType<T> distributable()
Sets the distributable element

Returns:
the current instance of WebFragmentType

isDistributable

Boolean isDistributable()
Removes the distributable element

Returns:
the current instance of WebFragmentType

removeDistributable

WebFragmentType<T> removeDistributable()
Removes the distributable element

Returns:
the current instance of WebFragmentType

getOrCreateContextParam

ParamValueType<WebFragmentType<T>> getOrCreateContextParam()
If not already created, a new context-param element will be created and returned. Otherwise, the first existing context-param element will be returned.

Returns:
the instance defined for the element context-param

createContextParam

ParamValueType<WebFragmentType<T>> createContextParam()
Creates a new context-param element

Returns:
the new created instance of ParamValueType>

getAllContextParam

List<ParamValueType<WebFragmentType<T>>> getAllContextParam()
Returns all context-param elements

Returns:
list of context-param

removeAllContextParam

WebFragmentType<T> removeAllContextParam()
Removes all context-param elements

Returns:
the current instance of ParamValueType>

getOrCreateFilter

FilterType<WebFragmentType<T>> getOrCreateFilter()
If not already created, a new filter element will be created and returned. Otherwise, the first existing filter element will be returned.

Returns:
the instance defined for the element filter

createFilter

FilterType<WebFragmentType<T>> createFilter()
Creates a new filter element

Returns:
the new created instance of FilterType>

getAllFilter

List<FilterType<WebFragmentType<T>>> getAllFilter()
Returns all filter elements

Returns:
list of filter

removeAllFilter

WebFragmentType<T> removeAllFilter()
Removes all filter elements

Returns:
the current instance of FilterType>

getOrCreateFilterMapping

FilterMappingType<WebFragmentType<T>> getOrCreateFilterMapping()
If not already created, a new filter-mapping element will be created and returned. Otherwise, the first existing filter-mapping element will be returned.

Returns:
the instance defined for the element filter-mapping

createFilterMapping

FilterMappingType<WebFragmentType<T>> createFilterMapping()
Creates a new filter-mapping element

Returns:
the new created instance of FilterMappingType>

getAllFilterMapping

List<FilterMappingType<WebFragmentType<T>>> getAllFilterMapping()
Returns all filter-mapping elements

Returns:
list of filter-mapping

removeAllFilterMapping

WebFragmentType<T> removeAllFilterMapping()
Removes all filter-mapping elements

Returns:
the current instance of FilterMappingType>

getOrCreateListener

ListenerType<WebFragmentType<T>> getOrCreateListener()
If not already created, a new listener element will be created and returned. Otherwise, the first existing listener element will be returned.

Returns:
the instance defined for the element listener

createListener

ListenerType<WebFragmentType<T>> createListener()
Creates a new listener element

Returns:
the new created instance of ListenerType>

getAllListener

List<ListenerType<WebFragmentType<T>>> getAllListener()
Returns all listener elements

Returns:
list of listener

removeAllListener

WebFragmentType<T> removeAllListener()
Removes all listener elements

Returns:
the current instance of ListenerType>

getOrCreateServlet

ServletType<WebFragmentType<T>> getOrCreateServlet()
If not already created, a new servlet element will be created and returned. Otherwise, the first existing servlet element will be returned.

Returns:
the instance defined for the element servlet

createServlet

ServletType<WebFragmentType<T>> createServlet()
Creates a new servlet element

Returns:
the new created instance of ServletType>

getAllServlet

List<ServletType<WebFragmentType<T>>> getAllServlet()
Returns all servlet elements

Returns:
list of servlet

removeAllServlet

WebFragmentType<T> removeAllServlet()
Removes all servlet elements

Returns:
the current instance of ServletType>

getOrCreateServletMapping

ServletMappingType<WebFragmentType<T>> getOrCreateServletMapping()
If not already created, a new servlet-mapping element will be created and returned. Otherwise, the first existing servlet-mapping element will be returned.

Returns:
the instance defined for the element servlet-mapping

createServletMapping

ServletMappingType<WebFragmentType<T>> createServletMapping()
Creates a new servlet-mapping element

Returns:
the new created instance of ServletMappingType>

getAllServletMapping

List<ServletMappingType<WebFragmentType<T>>> getAllServletMapping()
Returns all servlet-mapping elements

Returns:
list of servlet-mapping

removeAllServletMapping

WebFragmentType<T> removeAllServletMapping()
Removes all servlet-mapping elements

Returns:
the current instance of ServletMappingType>

getOrCreateSessionConfig

SessionConfigType<WebFragmentType<T>> getOrCreateSessionConfig()
If not already created, a new session-config element will be created and returned. Otherwise, the first existing session-config element will be returned.

Returns:
the instance defined for the element session-config

createSessionConfig

SessionConfigType<WebFragmentType<T>> createSessionConfig()
Creates a new session-config element

Returns:
the new created instance of SessionConfigType>

getAllSessionConfig

List<SessionConfigType<WebFragmentType<T>>> getAllSessionConfig()
Returns all session-config elements

Returns:
list of session-config

removeAllSessionConfig

WebFragmentType<T> removeAllSessionConfig()
Removes all session-config elements

Returns:
the current instance of SessionConfigType>

getOrCreateMimeMapping

MimeMappingType<WebFragmentType<T>> getOrCreateMimeMapping()
If not already created, a new mime-mapping element will be created and returned. Otherwise, the first existing mime-mapping element will be returned.

Returns:
the instance defined for the element mime-mapping

createMimeMapping

MimeMappingType<WebFragmentType<T>> createMimeMapping()
Creates a new mime-mapping element

Returns:
the new created instance of MimeMappingType>

getAllMimeMapping

List<MimeMappingType<WebFragmentType<T>>> getAllMimeMapping()
Returns all mime-mapping elements

Returns:
list of mime-mapping

removeAllMimeMapping

WebFragmentType<T> removeAllMimeMapping()
Removes all mime-mapping elements

Returns:
the current instance of MimeMappingType>

getOrCreateWelcomeFileList

WelcomeFileListType<WebFragmentType<T>> getOrCreateWelcomeFileList()
If not already created, a new welcome-file-list element will be created and returned. Otherwise, the first existing welcome-file-list element will be returned.

Returns:
the instance defined for the element welcome-file-list

createWelcomeFileList

WelcomeFileListType<WebFragmentType<T>> createWelcomeFileList()
Creates a new welcome-file-list element

Returns:
the new created instance of WelcomeFileListType>

getAllWelcomeFileList

List<WelcomeFileListType<WebFragmentType<T>>> getAllWelcomeFileList()
Returns all welcome-file-list elements

Returns:
list of welcome-file-list

removeAllWelcomeFileList

WebFragmentType<T> removeAllWelcomeFileList()
Removes all welcome-file-list elements

Returns:
the current instance of WelcomeFileListType>

getOrCreateErrorPage

ErrorPageType<WebFragmentType<T>> getOrCreateErrorPage()
If not already created, a new error-page element will be created and returned. Otherwise, the first existing error-page element will be returned.

Returns:
the instance defined for the element error-page

createErrorPage

ErrorPageType<WebFragmentType<T>> createErrorPage()
Creates a new error-page element

Returns:
the new created instance of ErrorPageType>

getAllErrorPage

List<ErrorPageType<WebFragmentType<T>>> getAllErrorPage()
Returns all error-page elements

Returns:
list of error-page

removeAllErrorPage

WebFragmentType<T> removeAllErrorPage()
Removes all error-page elements

Returns:
the current instance of ErrorPageType>

getOrCreateJspConfig

JspConfigType<WebFragmentType<T>> getOrCreateJspConfig()
If not already created, a new jsp-config element will be created and returned. Otherwise, the first existing jsp-config element will be returned.

Returns:
the instance defined for the element jsp-config

createJspConfig

JspConfigType<WebFragmentType<T>> createJspConfig()
Creates a new jsp-config element

Returns:
the new created instance of JspConfigType>

getAllJspConfig

List<JspConfigType<WebFragmentType<T>>> getAllJspConfig()
Returns all jsp-config elements

Returns:
list of jsp-config

removeAllJspConfig

WebFragmentType<T> removeAllJspConfig()
Removes all jsp-config elements

Returns:
the current instance of JspConfigType>

getOrCreateSecurityConstraint

SecurityConstraintType<WebFragmentType<T>> getOrCreateSecurityConstraint()
If not already created, a new security-constraint element will be created and returned. Otherwise, the first existing security-constraint element will be returned.

Returns:
the instance defined for the element security-constraint

createSecurityConstraint

SecurityConstraintType<WebFragmentType<T>> createSecurityConstraint()
Creates a new security-constraint element

Returns:
the new created instance of SecurityConstraintType>

getAllSecurityConstraint

List<SecurityConstraintType<WebFragmentType<T>>> getAllSecurityConstraint()
Returns all security-constraint elements

Returns:
list of security-constraint

removeAllSecurityConstraint

WebFragmentType<T> removeAllSecurityConstraint()
Removes all security-constraint elements

Returns:
the current instance of SecurityConstraintType>

getOrCreateLoginConfig

LoginConfigType<WebFragmentType<T>> getOrCreateLoginConfig()
If not already created, a new login-config element will be created and returned. Otherwise, the first existing login-config element will be returned.

Returns:
the instance defined for the element login-config

createLoginConfig

LoginConfigType<WebFragmentType<T>> createLoginConfig()
Creates a new login-config element

Returns:
the new created instance of LoginConfigType>

getAllLoginConfig

List<LoginConfigType<WebFragmentType<T>>> getAllLoginConfig()
Returns all login-config elements

Returns:
list of login-config

removeAllLoginConfig

WebFragmentType<T> removeAllLoginConfig()
Removes all login-config elements

Returns:
the current instance of LoginConfigType>

getOrCreateSecurityRole

SecurityRoleType<WebFragmentType<T>> getOrCreateSecurityRole()
If not already created, a new security-role element will be created and returned. Otherwise, the first existing security-role element will be returned.

Returns:
the instance defined for the element security-role

createSecurityRole

SecurityRoleType<WebFragmentType<T>> createSecurityRole()
Creates a new security-role element

Returns:
the new created instance of SecurityRoleType>

getAllSecurityRole

List<SecurityRoleType<WebFragmentType<T>>> getAllSecurityRole()
Returns all security-role elements

Returns:
list of security-role

removeAllSecurityRole

WebFragmentType<T> removeAllSecurityRole()
Removes all security-role elements

Returns:
the current instance of SecurityRoleType>

getOrCreateMessageDestination

MessageDestinationType<WebFragmentType<T>> getOrCreateMessageDestination()
If not already created, a new message-destination element will be created and returned. Otherwise, the first existing message-destination element will be returned.

Returns:
the instance defined for the element message-destination

createMessageDestination

MessageDestinationType<WebFragmentType<T>> createMessageDestination()
Creates a new message-destination element

Returns:
the new created instance of MessageDestinationType>

getAllMessageDestination

List<MessageDestinationType<WebFragmentType<T>>> getAllMessageDestination()
Returns all message-destination elements

Returns:
list of message-destination

removeAllMessageDestination

WebFragmentType<T> removeAllMessageDestination()
Removes all message-destination elements

Returns:
the current instance of MessageDestinationType>

getOrCreateLocaleEncodingMappingList

LocaleEncodingMappingListType<WebFragmentType<T>> getOrCreateLocaleEncodingMappingList()
If not already created, a new locale-encoding-mapping-list element will be created and returned. Otherwise, the first existing locale-encoding-mapping-list element will be returned.

Returns:
the instance defined for the element locale-encoding-mapping-list

createLocaleEncodingMappingList

LocaleEncodingMappingListType<WebFragmentType<T>> createLocaleEncodingMappingList()
Creates a new locale-encoding-mapping-list element

Returns:
the new created instance of LocaleEncodingMappingListType>

getAllLocaleEncodingMappingList

List<LocaleEncodingMappingListType<WebFragmentType<T>>> getAllLocaleEncodingMappingList()
Returns all locale-encoding-mapping-list elements

Returns:
list of locale-encoding-mapping-list

removeAllLocaleEncodingMappingList

WebFragmentType<T> removeAllLocaleEncodingMappingList()
Removes all locale-encoding-mapping-list elements

Returns:
the current instance of LocaleEncodingMappingListType>

description

WebFragmentType<T> description(String... values)
Creates for all String objects representing description elements, a new description element

Parameters:
values - list of description objects
Returns:
the current instance of WebFragmentType

getAllDescription

List<String> getAllDescription()
Returns all description elements

Returns:
list of description

removeAllDescription

WebFragmentType<T> removeAllDescription()
Removes the description element

Returns:
the current instance of WebFragmentType

displayName

WebFragmentType<T> displayName(String... values)
Creates for all String objects representing display-name elements, a new display-name element

Parameters:
values - list of display-name objects
Returns:
the current instance of WebFragmentType

getAllDisplayName

List<String> getAllDisplayName()
Returns all display-name elements

Returns:
list of display-name

removeAllDisplayName

WebFragmentType<T> removeAllDisplayName()
Removes the display-name element

Returns:
the current instance of WebFragmentType

getOrCreateIcon

IconType<WebFragmentType<T>> getOrCreateIcon()
If not already created, a new icon element will be created and returned. Otherwise, the first existing icon element will be returned.

Returns:
the instance defined for the element icon

createIcon

IconType<WebFragmentType<T>> createIcon()
Creates a new icon element

Returns:
the new created instance of IconType>

getAllIcon

List<IconType<WebFragmentType<T>>> getAllIcon()
Returns all icon elements

Returns:
list of icon

removeAllIcon

WebFragmentType<T> removeAllIcon()
Removes all icon elements

Returns:
the current instance of IconType>

getOrCreateEnvEntry

EnvEntryType<WebFragmentType<T>> getOrCreateEnvEntry()
If not already created, a new env-entry element will be created and returned. Otherwise, the first existing env-entry element will be returned.

Returns:
the instance defined for the element env-entry

createEnvEntry

EnvEntryType<WebFragmentType<T>> createEnvEntry()
Creates a new env-entry element

Returns:
the new created instance of EnvEntryType>

getAllEnvEntry

List<EnvEntryType<WebFragmentType<T>>> getAllEnvEntry()
Returns all env-entry elements

Returns:
list of env-entry

removeAllEnvEntry

WebFragmentType<T> removeAllEnvEntry()
Removes all env-entry elements

Returns:
the current instance of EnvEntryType>

getOrCreateEjbRef

EjbRefType<WebFragmentType<T>> getOrCreateEjbRef()
If not already created, a new ejb-ref element will be created and returned. Otherwise, the first existing ejb-ref element will be returned.

Returns:
the instance defined for the element ejb-ref

createEjbRef

EjbRefType<WebFragmentType<T>> createEjbRef()
Creates a new ejb-ref element

Returns:
the new created instance of EjbRefType>

getAllEjbRef

List<EjbRefType<WebFragmentType<T>>> getAllEjbRef()
Returns all ejb-ref elements

Returns:
list of ejb-ref

removeAllEjbRef

WebFragmentType<T> removeAllEjbRef()
Removes all ejb-ref elements

Returns:
the current instance of EjbRefType>

getOrCreateEjbLocalRef

EjbLocalRefType<WebFragmentType<T>> getOrCreateEjbLocalRef()
If not already created, a new ejb-local-ref element will be created and returned. Otherwise, the first existing ejb-local-ref element will be returned.

Returns:
the instance defined for the element ejb-local-ref

createEjbLocalRef

EjbLocalRefType<WebFragmentType<T>> createEjbLocalRef()
Creates a new ejb-local-ref element

Returns:
the new created instance of EjbLocalRefType>

getAllEjbLocalRef

List<EjbLocalRefType<WebFragmentType<T>>> getAllEjbLocalRef()
Returns all ejb-local-ref elements

Returns:
list of ejb-local-ref

removeAllEjbLocalRef

WebFragmentType<T> removeAllEjbLocalRef()
Removes all ejb-local-ref elements

Returns:
the current instance of EjbLocalRefType>

getOrCreateResourceRef

ResourceRefType<WebFragmentType<T>> getOrCreateResourceRef()
If not already created, a new resource-ref element will be created and returned. Otherwise, the first existing resource-ref element will be returned.

Returns:
the instance defined for the element resource-ref

createResourceRef

ResourceRefType<WebFragmentType<T>> createResourceRef()
Creates a new resource-ref element

Returns:
the new created instance of ResourceRefType>

getAllResourceRef

List<ResourceRefType<WebFragmentType<T>>> getAllResourceRef()
Returns all resource-ref elements

Returns:
list of resource-ref

removeAllResourceRef

WebFragmentType<T> removeAllResourceRef()
Removes all resource-ref elements

Returns:
the current instance of ResourceRefType>

getOrCreateResourceEnvRef

ResourceEnvRefType<WebFragmentType<T>> getOrCreateResourceEnvRef()
If not already created, a new resource-env-ref element will be created and returned. Otherwise, the first existing resource-env-ref element will be returned.

Returns:
the instance defined for the element resource-env-ref

createResourceEnvRef

ResourceEnvRefType<WebFragmentType<T>> createResourceEnvRef()
Creates a new resource-env-ref element

Returns:
the new created instance of ResourceEnvRefType>

getAllResourceEnvRef

List<ResourceEnvRefType<WebFragmentType<T>>> getAllResourceEnvRef()
Returns all resource-env-ref elements

Returns:
list of resource-env-ref

removeAllResourceEnvRef

WebFragmentType<T> removeAllResourceEnvRef()
Removes all resource-env-ref elements

Returns:
the current instance of ResourceEnvRefType>

getOrCreateMessageDestinationRef

MessageDestinationRefType<WebFragmentType<T>> getOrCreateMessageDestinationRef()
If not already created, a new message-destination-ref element will be created and returned. Otherwise, the first existing message-destination-ref element will be returned.

Returns:
the instance defined for the element message-destination-ref

createMessageDestinationRef

MessageDestinationRefType<WebFragmentType<T>> createMessageDestinationRef()
Creates a new message-destination-ref element

Returns:
the new created instance of MessageDestinationRefType>

getAllMessageDestinationRef

List<MessageDestinationRefType<WebFragmentType<T>>> getAllMessageDestinationRef()
Returns all message-destination-ref elements

Returns:
list of message-destination-ref

removeAllMessageDestinationRef

WebFragmentType<T> removeAllMessageDestinationRef()
Removes all message-destination-ref elements

Returns:
the current instance of MessageDestinationRefType>

getOrCreatePersistenceContextRef

PersistenceContextRefType<WebFragmentType<T>> getOrCreatePersistenceContextRef()
If not already created, a new persistence-context-ref element will be created and returned. Otherwise, the first existing persistence-context-ref element will be returned.

Returns:
the instance defined for the element persistence-context-ref

createPersistenceContextRef

PersistenceContextRefType<WebFragmentType<T>> createPersistenceContextRef()
Creates a new persistence-context-ref element

Returns:
the new created instance of PersistenceContextRefType>

getAllPersistenceContextRef

List<PersistenceContextRefType<WebFragmentType<T>>> getAllPersistenceContextRef()
Returns all persistence-context-ref elements

Returns:
list of persistence-context-ref

removeAllPersistenceContextRef

WebFragmentType<T> removeAllPersistenceContextRef()
Removes all persistence-context-ref elements

Returns:
the current instance of PersistenceContextRefType>

getOrCreatePersistenceUnitRef

PersistenceUnitRefType<WebFragmentType<T>> getOrCreatePersistenceUnitRef()
If not already created, a new persistence-unit-ref element will be created and returned. Otherwise, the first existing persistence-unit-ref element will be returned.

Returns:
the instance defined for the element persistence-unit-ref

createPersistenceUnitRef

PersistenceUnitRefType<WebFragmentType<T>> createPersistenceUnitRef()
Creates a new persistence-unit-ref element

Returns:
the new created instance of PersistenceUnitRefType>

getAllPersistenceUnitRef

List<PersistenceUnitRefType<WebFragmentType<T>>> getAllPersistenceUnitRef()
Returns all persistence-unit-ref elements

Returns:
list of persistence-unit-ref

removeAllPersistenceUnitRef

WebFragmentType<T> removeAllPersistenceUnitRef()
Removes all persistence-unit-ref elements

Returns:
the current instance of PersistenceUnitRefType>

getOrCreatePostConstruct

LifecycleCallbackType<WebFragmentType<T>> getOrCreatePostConstruct()
If not already created, a new post-construct element will be created and returned. Otherwise, the first existing post-construct element will be returned.

Returns:
the instance defined for the element post-construct

createPostConstruct

LifecycleCallbackType<WebFragmentType<T>> createPostConstruct()
Creates a new post-construct element

Returns:
the new created instance of LifecycleCallbackType>

getAllPostConstruct

List<LifecycleCallbackType<WebFragmentType<T>>> getAllPostConstruct()
Returns all post-construct elements

Returns:
list of post-construct

removeAllPostConstruct

WebFragmentType<T> removeAllPostConstruct()
Removes all post-construct elements

Returns:
the current instance of LifecycleCallbackType>

getOrCreatePreDestroy

LifecycleCallbackType<WebFragmentType<T>> getOrCreatePreDestroy()
If not already created, a new pre-destroy element will be created and returned. Otherwise, the first existing pre-destroy element will be returned.

Returns:
the instance defined for the element pre-destroy

createPreDestroy

LifecycleCallbackType<WebFragmentType<T>> createPreDestroy()
Creates a new pre-destroy element

Returns:
the new created instance of LifecycleCallbackType>

getAllPreDestroy

List<LifecycleCallbackType<WebFragmentType<T>>> getAllPreDestroy()
Returns all pre-destroy elements

Returns:
list of pre-destroy

removeAllPreDestroy

WebFragmentType<T> removeAllPreDestroy()
Removes all pre-destroy elements

Returns:
the current instance of LifecycleCallbackType>

getOrCreateDataSource

DataSourceType<WebFragmentType<T>> getOrCreateDataSource()
If not already created, a new data-source element will be created and returned. Otherwise, the first existing data-source element will be returned.

Returns:
the instance defined for the element data-source

createDataSource

DataSourceType<WebFragmentType<T>> createDataSource()
Creates a new data-source element

Returns:
the new created instance of DataSourceType>

getAllDataSource

List<DataSourceType<WebFragmentType<T>>> getAllDataSource()
Returns all data-source elements

Returns:
list of data-source

removeAllDataSource

WebFragmentType<T> removeAllDataSource()
Removes all data-source elements

Returns:
the current instance of DataSourceType>

getOrCreateServiceRef

ServiceRefType<WebFragmentType<T>> getOrCreateServiceRef()
If not already created, a new service-ref element will be created and returned. Otherwise, the first existing service-ref element will be returned.

Returns:
the instance defined for the element service-ref

createServiceRef

ServiceRefType<WebFragmentType<T>> createServiceRef()
Creates a new service-ref element

Returns:
the new created instance of ServiceRefType>

getAllServiceRef

List<ServiceRefType<WebFragmentType<T>>> getAllServiceRef()
Returns all service-ref elements

Returns:
list of service-ref

removeAllServiceRef

WebFragmentType<T> removeAllServiceRef()
Removes all service-ref elements

Returns:
the current instance of ServiceRefType>

version

WebFragmentType<T> version(WebAppVersionType version)
Sets the version attribute

Parameters:
version - the value for the attribute version
Returns:
the current instance of WebFragmentType

version

WebFragmentType<T> version(String version)
Sets the version attribute

Parameters:
version - the value for the attribute version
Returns:
the current instance of WebFragmentType

getVersion

WebAppVersionType getVersion()
Returns the version attribute

Returns:
the value defined for the attribute version

getVersionAsString

String getVersionAsString()
Returns the version attribute

Returns:
the value found for the element version

removeVersion

WebFragmentType<T> removeVersion()
Removes the version attribute

Returns:
the current instance of WebFragmentType

id

WebFragmentType<T> id(String id)
Sets the id attribute

Parameters:
id - the value for the attribute id
Returns:
the current instance of WebFragmentType

getId

String getId()
Returns the id attribute

Returns:
the value defined for the attribute id

removeId

WebFragmentType<T> removeId()
Removes the id attribute

Returns:
the current instance of WebFragmentType

metadataComplete

WebFragmentType<T> metadataComplete(Boolean metadataComplete)
Sets the metadata-complete attribute

Parameters:
metadataComplete - the value for the attribute metadata-complete
Returns:
the current instance of WebFragmentType

isMetadataComplete

Boolean isMetadataComplete()
Returns the metadata-complete attribute

Returns:
the value defined for the attribute metadata-complete

removeMetadataComplete

WebFragmentType<T> removeMetadataComplete()
Removes the metadata-complete attribute

Returns:
the current instance of WebFragmentType

name

WebFragmentType<T> name(String... values)
Creates for all String objects representing name elements, a new name element

Parameters:
values - list of name objects
Returns:
the current instance of WebFragmentType

getAllName

List<String> getAllName()
Returns all name elements

Returns:
list of name

removeAllName

WebFragmentType<T> removeAllName()
Removes the name element

Returns:
the current instance of WebFragmentType

getOrCreateOrdering

OrderingType<WebFragmentType<T>> getOrCreateOrdering()
If not already created, a new ordering element will be created and returned. Otherwise, the first existing ordering element will be returned.

Returns:
the instance defined for the element ordering

createOrdering

OrderingType<WebFragmentType<T>> createOrdering()
Creates a new ordering element

Returns:
the new created instance of OrderingType>

getAllOrdering

List<OrderingType<WebFragmentType<T>>> getAllOrdering()
Returns all ordering elements

Returns:
list of ordering

removeAllOrdering

WebFragmentType<T> removeAllOrdering()
Removes all ordering elements

Returns:
the current instance of OrderingType>

ShrinkWrap Descriptors Generated Java EE API 2.0.0-alpha-3

Copyright © 2012 JBoss by Red Hat. All Rights Reserved.