org.jboss.shrinkwrap.descriptor.api.webfragment30.WebFragmentDescriptor Maven / Gradle / Ivy
package org.jboss.shrinkwrap.descriptor.api.webfragment30;
import java.util.ArrayList;
import java.util.List;
import org.jboss.shrinkwrap.descriptor.api.Child;
import org.jboss.shrinkwrap.descriptor.api.webcommon30.OrderingType;
import org.jboss.shrinkwrap.descriptor.api.javaee6.ParamValueType;
import org.jboss.shrinkwrap.descriptor.api.webcommon30.FilterType;
import org.jboss.shrinkwrap.descriptor.api.webcommon30.FilterMappingType;
import org.jboss.shrinkwrap.descriptor.api.javaee6.ListenerType;
import org.jboss.shrinkwrap.descriptor.api.webcommon30.ServletType;
import org.jboss.shrinkwrap.descriptor.api.webcommon30.ServletMappingType;
import org.jboss.shrinkwrap.descriptor.api.webcommon30.SessionConfigType;
import org.jboss.shrinkwrap.descriptor.api.webcommon30.MimeMappingType;
import org.jboss.shrinkwrap.descriptor.api.webcommon30.WelcomeFileListType;
import org.jboss.shrinkwrap.descriptor.api.webcommon30.ErrorPageType;
import org.jboss.shrinkwrap.descriptor.api.jsp22.JspConfigType;
import org.jboss.shrinkwrap.descriptor.api.webcommon30.SecurityConstraintType;
import org.jboss.shrinkwrap.descriptor.api.webcommon30.LoginConfigType;
import org.jboss.shrinkwrap.descriptor.api.javaee6.SecurityRoleType;
import org.jboss.shrinkwrap.descriptor.api.javaee6.MessageDestinationType;
import org.jboss.shrinkwrap.descriptor.api.webcommon30.LocaleEncodingMappingListType;
import org.jboss.shrinkwrap.descriptor.api.javaee6.IconType;
import org.jboss.shrinkwrap.descriptor.api.javaee6.EnvEntryType;
import org.jboss.shrinkwrap.descriptor.api.javaee6.EjbRefType;
import org.jboss.shrinkwrap.descriptor.api.javaee6.EjbLocalRefType;
import org.jboss.shrinkwrap.descriptor.api.javaee6.ResourceRefType;
import org.jboss.shrinkwrap.descriptor.api.javaee6.ResourceEnvRefType;
import org.jboss.shrinkwrap.descriptor.api.javaee6.MessageDestinationRefType;
import org.jboss.shrinkwrap.descriptor.api.javaee6.PersistenceContextRefType;
import org.jboss.shrinkwrap.descriptor.api.javaee6.PersistenceUnitRefType;
import org.jboss.shrinkwrap.descriptor.api.javaee6.LifecycleCallbackType;
import org.jboss.shrinkwrap.descriptor.api.javaee6.LifecycleCallbackType;
import org.jboss.shrinkwrap.descriptor.api.javaee6.DataSourceType;
import org.jboss.shrinkwrap.descriptor.api.javaeewebservicesclient13.ServiceRefType;
import org.jboss.shrinkwrap.descriptor.api.webcommon30.WebAppVersionType;
import org.jboss.shrinkwrap.descriptor.api.Descriptor;
import org.jboss.shrinkwrap.descriptor.api.DescriptorNamespace;
import org.jboss.shrinkwrap.descriptor.api.webfragment.*;
/**
*
* This deployment descriptor provides the functionalities as described in the specification
*
* Example:
*
*
* WebFragmentDescriptor descriptor = Descriptors.create(WebFragmentDescriptor.class);
*
*
*
* @author Ralf Battenfeld
* @author Andrew Lee Rubinger
* @author George Gastaldi
*/
public interface WebFragmentDescriptor extends Descriptor, DescriptorNamespace,
WebFragmentCommonDescriptor,
FilterType,
FilterMappingType,
ListenerType> {
// --------------------------------------------------------------------------------------------------------||
// ClassName: WebFragmentDescriptor ElementName: javaee:emptyType ElementType : distributable
// MaxOccurs: -unbounded isGeneric: false isAttribute: false isEnum: false isDataType: true
// --------------------------------------------------------------------------------------------------------||
/**
* Sets the distributable
element
* @return the current instance of WebFragmentDescriptor
*/
public WebFragmentDescriptor distributable();
/**
* Removes the distributable
element
* @return the current instance of WebFragmentDescriptor
*/
public Boolean isDistributable();
/**
* Removes the distributable
element
* @return the current instance of WebFragmentDescriptor
*/
public WebFragmentDescriptor removeDistributable();
// --------------------------------------------------------------------------------------------------------||
// ClassName: WebFragmentDescriptor ElementName: javaee:param-valueType ElementType : context-param
// MaxOccurs: -unbounded isGeneric: false isAttribute: false isEnum: false isDataType: false
// --------------------------------------------------------------------------------------------------------||
/**
* If not already created, a new context-param
element will be created and returned.
* Otherwise, the first existing context-param
element will be returned.
* @return the instance defined for the element context-param
*/
public ParamValueType getOrCreateContextParam();
/**
* Creates a new context-param
element
* @return the new created instance of ParamValueType
*/
public ParamValueType createContextParam();
/**
* Returns all context-param
elements
* @return list of context-param
*/
public List> getAllContextParam();
/**
* Removes all context-param
elements
* @return the current instance of ParamValueType
*/
public WebFragmentDescriptor removeAllContextParam();
// --------------------------------------------------------------------------------------------------------||
// ClassName: WebFragmentDescriptor ElementName: javaee:filterType ElementType : filter
// MaxOccurs: -unbounded isGeneric: false isAttribute: false isEnum: false isDataType: false
// --------------------------------------------------------------------------------------------------------||
/**
* If not already created, a new filter
element will be created and returned.
* Otherwise, the first existing filter
element will be returned.
* @return the instance defined for the element filter
*/
public FilterType getOrCreateFilter();
/**
* Creates a new filter
element
* @return the new created instance of FilterType
*/
public FilterType createFilter();
/**
* Returns all filter
elements
* @return list of filter
*/
public List> getAllFilter();
/**
* Removes all filter
elements
* @return the current instance of FilterType
*/
public WebFragmentDescriptor removeAllFilter();
// --------------------------------------------------------------------------------------------------------||
// ClassName: WebFragmentDescriptor ElementName: javaee:filter-mappingType ElementType : filter-mapping
// MaxOccurs: -unbounded isGeneric: false isAttribute: false isEnum: false isDataType: false
// --------------------------------------------------------------------------------------------------------||
/**
* If not already created, a new filter-mapping
element will be created and returned.
* Otherwise, the first existing filter-mapping
element will be returned.
* @return the instance defined for the element filter-mapping
*/
public FilterMappingType getOrCreateFilterMapping();
/**
* Creates a new filter-mapping
element
* @return the new created instance of FilterMappingType
*/
public FilterMappingType createFilterMapping();
/**
* Returns all filter-mapping
elements
* @return list of filter-mapping
*/
public List> getAllFilterMapping();
/**
* Removes all filter-mapping
elements
* @return the current instance of FilterMappingType
*/
public WebFragmentDescriptor removeAllFilterMapping();
// --------------------------------------------------------------------------------------------------------||
// ClassName: WebFragmentDescriptor ElementName: javaee:listenerType ElementType : listener
// MaxOccurs: -unbounded isGeneric: false isAttribute: false isEnum: false isDataType: false
// --------------------------------------------------------------------------------------------------------||
/**
* If not already created, a new listener
element will be created and returned.
* Otherwise, the first existing listener
element will be returned.
* @return the instance defined for the element listener
*/
public ListenerType getOrCreateListener();
/**
* Creates a new listener
element
* @return the new created instance of ListenerType
*/
public ListenerType createListener();
/**
* Returns all listener
elements
* @return list of listener
*/
public List> getAllListener();
/**
* Removes all listener
elements
* @return the current instance of ListenerType
*/
public WebFragmentDescriptor removeAllListener();
// --------------------------------------------------------------------------------------------------------||
// ClassName: WebFragmentDescriptor ElementName: javaee:servletType ElementType : servlet
// MaxOccurs: -unbounded isGeneric: false isAttribute: false isEnum: false isDataType: false
// --------------------------------------------------------------------------------------------------------||
/**
* If not already created, a new servlet
element will be created and returned.
* Otherwise, the first existing servlet
element will be returned.
* @return the instance defined for the element servlet
*/
public ServletType getOrCreateServlet();
/**
* Creates a new servlet
element
* @return the new created instance of ServletType
*/
public ServletType createServlet();
/**
* Returns all servlet
elements
* @return list of servlet
*/
public List> getAllServlet();
/**
* Removes all servlet
elements
* @return the current instance of ServletType
*/
public WebFragmentDescriptor removeAllServlet();
// --------------------------------------------------------------------------------------------------------||
// ClassName: WebFragmentDescriptor ElementName: javaee:servlet-mappingType ElementType : servlet-mapping
// MaxOccurs: -unbounded isGeneric: false isAttribute: false isEnum: false isDataType: false
// --------------------------------------------------------------------------------------------------------||
/**
* If not already created, a new servlet-mapping
element will be created and returned.
* Otherwise, the first existing servlet-mapping
element will be returned.
* @return the instance defined for the element servlet-mapping
*/
public ServletMappingType getOrCreateServletMapping();
/**
* Creates a new servlet-mapping
element
* @return the new created instance of ServletMappingType
*/
public ServletMappingType createServletMapping();
/**
* Returns all servlet-mapping
elements
* @return list of servlet-mapping
*/
public List> getAllServletMapping();
/**
* Removes all servlet-mapping
elements
* @return the current instance of ServletMappingType
*/
public WebFragmentDescriptor removeAllServletMapping();
// --------------------------------------------------------------------------------------------------------||
// ClassName: WebFragmentDescriptor ElementName: javaee:session-configType ElementType : session-config
// MaxOccurs: -unbounded isGeneric: false isAttribute: false isEnum: false isDataType: false
// --------------------------------------------------------------------------------------------------------||
/**
* If not already created, a new session-config
element will be created and returned.
* Otherwise, the first existing session-config
element will be returned.
* @return the instance defined for the element session-config
*/
public SessionConfigType getOrCreateSessionConfig();
/**
* Creates a new session-config
element
* @return the new created instance of SessionConfigType
*/
public SessionConfigType createSessionConfig();
/**
* Returns all session-config
elements
* @return list of session-config
*/
public List> getAllSessionConfig();
/**
* Removes all session-config
elements
* @return the current instance of SessionConfigType
*/
public WebFragmentDescriptor removeAllSessionConfig();
// --------------------------------------------------------------------------------------------------------||
// ClassName: WebFragmentDescriptor ElementName: javaee:mime-mappingType ElementType : mime-mapping
// MaxOccurs: -unbounded isGeneric: false isAttribute: false isEnum: false isDataType: false
// --------------------------------------------------------------------------------------------------------||
/**
* If not already created, a new mime-mapping
element will be created and returned.
* Otherwise, the first existing mime-mapping
element will be returned.
* @return the instance defined for the element mime-mapping
*/
public MimeMappingType getOrCreateMimeMapping();
/**
* Creates a new mime-mapping
element
* @return the new created instance of MimeMappingType
*/
public MimeMappingType createMimeMapping();
/**
* Returns all mime-mapping
elements
* @return list of mime-mapping
*/
public List> getAllMimeMapping();
/**
* Removes all mime-mapping
elements
* @return the current instance of MimeMappingType
*/
public WebFragmentDescriptor removeAllMimeMapping();
// --------------------------------------------------------------------------------------------------------||
// ClassName: WebFragmentDescriptor ElementName: javaee:welcome-file-listType ElementType : welcome-file-list
// MaxOccurs: -unbounded isGeneric: false isAttribute: false isEnum: false isDataType: false
// --------------------------------------------------------------------------------------------------------||
/**
* 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.
* @return the instance defined for the element welcome-file-list
*/
public WelcomeFileListType getOrCreateWelcomeFileList();
/**
* Creates a new welcome-file-list
element
* @return the new created instance of WelcomeFileListType
*/
public WelcomeFileListType createWelcomeFileList();
/**
* Returns all welcome-file-list
elements
* @return list of welcome-file-list
*/
public List> getAllWelcomeFileList();
/**
* Removes all welcome-file-list
elements
* @return the current instance of WelcomeFileListType
*/
public WebFragmentDescriptor removeAllWelcomeFileList();
// --------------------------------------------------------------------------------------------------------||
// ClassName: WebFragmentDescriptor ElementName: javaee:error-pageType ElementType : error-page
// MaxOccurs: -unbounded isGeneric: false isAttribute: false isEnum: false isDataType: false
// --------------------------------------------------------------------------------------------------------||
/**
* If not already created, a new error-page
element will be created and returned.
* Otherwise, the first existing error-page
element will be returned.
* @return the instance defined for the element error-page
*/
public ErrorPageType getOrCreateErrorPage();
/**
* Creates a new error-page
element
* @return the new created instance of ErrorPageType
*/
public ErrorPageType createErrorPage();
/**
* Returns all error-page
elements
* @return list of error-page
*/
public List> getAllErrorPage();
/**
* Removes all error-page
elements
* @return the current instance of ErrorPageType
*/
public WebFragmentDescriptor removeAllErrorPage();
// --------------------------------------------------------------------------------------------------------||
// ClassName: WebFragmentDescriptor ElementName: javaee:jsp-configType ElementType : jsp-config
// MaxOccurs: -unbounded isGeneric: false isAttribute: false isEnum: false isDataType: false
// --------------------------------------------------------------------------------------------------------||
/**
* If not already created, a new jsp-config
element will be created and returned.
* Otherwise, the first existing jsp-config
element will be returned.
* @return the instance defined for the element jsp-config
*/
public JspConfigType getOrCreateJspConfig();
/**
* Creates a new jsp-config
element
* @return the new created instance of JspConfigType
*/
public JspConfigType createJspConfig();
/**
* Returns all jsp-config
elements
* @return list of jsp-config
*/
public List> getAllJspConfig();
/**
* Removes all jsp-config
elements
* @return the current instance of JspConfigType
*/
public WebFragmentDescriptor removeAllJspConfig();
// --------------------------------------------------------------------------------------------------------||
// ClassName: WebFragmentDescriptor ElementName: javaee:security-constraintType ElementType : security-constraint
// MaxOccurs: -unbounded isGeneric: false isAttribute: false isEnum: false isDataType: false
// --------------------------------------------------------------------------------------------------------||
/**
* If not already created, a new security-constraint
element will be created and returned.
* Otherwise, the first existing security-constraint
element will be returned.
* @return the instance defined for the element security-constraint
*/
public SecurityConstraintType getOrCreateSecurityConstraint();
/**
* Creates a new security-constraint
element
* @return the new created instance of SecurityConstraintType
*/
public SecurityConstraintType createSecurityConstraint();
/**
* Returns all security-constraint
elements
* @return list of security-constraint
*/
public List> getAllSecurityConstraint();
/**
* Removes all security-constraint
elements
* @return the current instance of SecurityConstraintType
*/
public WebFragmentDescriptor removeAllSecurityConstraint();
// --------------------------------------------------------------------------------------------------------||
// ClassName: WebFragmentDescriptor ElementName: javaee:login-configType ElementType : login-config
// MaxOccurs: -unbounded isGeneric: false isAttribute: false isEnum: false isDataType: false
// --------------------------------------------------------------------------------------------------------||
/**
* If not already created, a new login-config
element will be created and returned.
* Otherwise, the first existing login-config
element will be returned.
* @return the instance defined for the element login-config
*/
public LoginConfigType getOrCreateLoginConfig();
/**
* Creates a new login-config
element
* @return the new created instance of LoginConfigType
*/
public LoginConfigType createLoginConfig();
/**
* Returns all login-config
elements
* @return list of login-config
*/
public List> getAllLoginConfig();
/**
* Removes all login-config
elements
* @return the current instance of LoginConfigType
*/
public WebFragmentDescriptor removeAllLoginConfig();
// --------------------------------------------------------------------------------------------------------||
// ClassName: WebFragmentDescriptor ElementName: javaee:security-roleType ElementType : security-role
// MaxOccurs: -unbounded isGeneric: false isAttribute: false isEnum: false isDataType: false
// --------------------------------------------------------------------------------------------------------||
/**
* If not already created, a new security-role
element will be created and returned.
* Otherwise, the first existing security-role
element will be returned.
* @return the instance defined for the element security-role
*/
public SecurityRoleType getOrCreateSecurityRole();
/**
* Creates a new security-role
element
* @return the new created instance of SecurityRoleType
*/
public SecurityRoleType createSecurityRole();
/**
* Returns all security-role
elements
* @return list of security-role
*/
public List> getAllSecurityRole();
/**
* Removes all security-role
elements
* @return the current instance of SecurityRoleType
*/
public WebFragmentDescriptor removeAllSecurityRole();
// --------------------------------------------------------------------------------------------------------||
// ClassName: WebFragmentDescriptor ElementName: javaee:message-destinationType ElementType : message-destination
// MaxOccurs: -unbounded isGeneric: false isAttribute: false isEnum: false isDataType: false
// --------------------------------------------------------------------------------------------------------||
/**
* If not already created, a new message-destination
element will be created and returned.
* Otherwise, the first existing message-destination
element will be returned.
* @return the instance defined for the element message-destination
*/
public MessageDestinationType getOrCreateMessageDestination();
/**
* Creates a new message-destination
element
* @return the new created instance of MessageDestinationType
*/
public MessageDestinationType createMessageDestination();
/**
* Returns all message-destination
elements
* @return list of message-destination
*/
public List> getAllMessageDestination();
/**
* Removes all message-destination
elements
* @return the current instance of MessageDestinationType
*/
public WebFragmentDescriptor removeAllMessageDestination();
// --------------------------------------------------------------------------------------------------------||
// ClassName: WebFragmentDescriptor ElementName: javaee:locale-encoding-mapping-listType ElementType : locale-encoding-mapping-list
// MaxOccurs: -unbounded isGeneric: false isAttribute: false isEnum: false isDataType: false
// --------------------------------------------------------------------------------------------------------||
/**
* 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.
* @return the instance defined for the element locale-encoding-mapping-list
*/
public LocaleEncodingMappingListType getOrCreateLocaleEncodingMappingList();
/**
* Creates a new locale-encoding-mapping-list
element
* @return the new created instance of LocaleEncodingMappingListType
*/
public LocaleEncodingMappingListType createLocaleEncodingMappingList();
/**
* Returns all locale-encoding-mapping-list
elements
* @return list of locale-encoding-mapping-list
*/
public List> getAllLocaleEncodingMappingList();
/**
* Removes all locale-encoding-mapping-list
elements
* @return the current instance of LocaleEncodingMappingListType
*/
public WebFragmentDescriptor removeAllLocaleEncodingMappingList();
// --------------------------------------------------------------------------------------------------------||
// ClassName: WebFragmentDescriptor ElementName: xsd:string ElementType : description
// MaxOccurs: -unbounded isGeneric: false isAttribute: false isEnum: false isDataType: true
// --------------------------------------------------------------------------------------------------------||
/**
* Creates for all String objects representing description
elements,
* a new description
element
* @param values list of description
objects
* @return the current instance of WebFragmentDescriptor
*/
public WebFragmentDescriptor description(String ... values);
/**
* Returns all description
elements
* @return list of description
*/
public List getAllDescription();
/**
* Removes the description
element
* @return the current instance of WebFragmentDescriptor
*/
public WebFragmentDescriptor removeAllDescription();
// --------------------------------------------------------------------------------------------------------||
// ClassName: WebFragmentDescriptor ElementName: xsd:token ElementType : display-name
// MaxOccurs: -unbounded isGeneric: false isAttribute: false isEnum: false isDataType: true
// --------------------------------------------------------------------------------------------------------||
/**
* Creates for all String objects representing display-name
elements,
* a new display-name
element
* @param values list of display-name
objects
* @return the current instance of WebFragmentDescriptor
*/
public WebFragmentDescriptor displayName(String ... values);
/**
* Returns all display-name
elements
* @return list of display-name
*/
public List getAllDisplayName();
/**
* Removes the display-name
element
* @return the current instance of WebFragmentDescriptor
*/
public WebFragmentDescriptor removeAllDisplayName();
// --------------------------------------------------------------------------------------------------------||
// ClassName: WebFragmentDescriptor ElementName: javaee:iconType ElementType : icon
// MaxOccurs: -unbounded isGeneric: false isAttribute: false isEnum: false isDataType: false
// --------------------------------------------------------------------------------------------------------||
/**
* If not already created, a new icon
element will be created and returned.
* Otherwise, the first existing icon
element will be returned.
* @return the instance defined for the element icon
*/
public IconType getOrCreateIcon();
/**
* Creates a new icon
element
* @return the new created instance of IconType
*/
public IconType createIcon();
/**
* Returns all icon
elements
* @return list of icon
*/
public List> getAllIcon();
/**
* Removes all icon
elements
* @return the current instance of IconType
*/
public WebFragmentDescriptor removeAllIcon();
// --------------------------------------------------------------------------------------------------------||
// ClassName: WebFragmentDescriptor ElementName: javaee:env-entryType ElementType : env-entry
// MaxOccurs: -unbounded isGeneric: false isAttribute: false isEnum: false isDataType: false
// --------------------------------------------------------------------------------------------------------||
/**
* If not already created, a new env-entry
element will be created and returned.
* Otherwise, the first existing env-entry
element will be returned.
* @return the instance defined for the element env-entry
*/
public EnvEntryType getOrCreateEnvEntry();
/**
* Creates a new env-entry
element
* @return the new created instance of EnvEntryType
*/
public EnvEntryType createEnvEntry();
/**
* Returns all env-entry
elements
* @return list of env-entry
*/
public List> getAllEnvEntry();
/**
* Removes all env-entry
elements
* @return the current instance of EnvEntryType
*/
public WebFragmentDescriptor removeAllEnvEntry();
// --------------------------------------------------------------------------------------------------------||
// ClassName: WebFragmentDescriptor ElementName: javaee:ejb-refType ElementType : ejb-ref
// MaxOccurs: -unbounded isGeneric: false isAttribute: false isEnum: false isDataType: false
// --------------------------------------------------------------------------------------------------------||
/**
* If not already created, a new ejb-ref
element will be created and returned.
* Otherwise, the first existing ejb-ref
element will be returned.
* @return the instance defined for the element ejb-ref
*/
public EjbRefType getOrCreateEjbRef();
/**
* Creates a new ejb-ref
element
* @return the new created instance of EjbRefType
*/
public EjbRefType createEjbRef();
/**
* Returns all ejb-ref
elements
* @return list of ejb-ref
*/
public List> getAllEjbRef();
/**
* Removes all ejb-ref
elements
* @return the current instance of EjbRefType
*/
public WebFragmentDescriptor removeAllEjbRef();
// --------------------------------------------------------------------------------------------------------||
// ClassName: WebFragmentDescriptor ElementName: javaee:ejb-local-refType ElementType : ejb-local-ref
// MaxOccurs: -unbounded isGeneric: false isAttribute: false isEnum: false isDataType: false
// --------------------------------------------------------------------------------------------------------||
/**
* 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.
* @return the instance defined for the element ejb-local-ref
*/
public EjbLocalRefType getOrCreateEjbLocalRef();
/**
* Creates a new ejb-local-ref
element
* @return the new created instance of EjbLocalRefType
*/
public EjbLocalRefType createEjbLocalRef();
/**
* Returns all ejb-local-ref
elements
* @return list of ejb-local-ref
*/
public List> getAllEjbLocalRef();
/**
* Removes all ejb-local-ref
elements
* @return the current instance of EjbLocalRefType
*/
public WebFragmentDescriptor removeAllEjbLocalRef();
// --------------------------------------------------------------------------------------------------------||
// ClassName: WebFragmentDescriptor ElementName: javaee:resource-refType ElementType : resource-ref
// MaxOccurs: -unbounded isGeneric: false isAttribute: false isEnum: false isDataType: false
// --------------------------------------------------------------------------------------------------------||
/**
* If not already created, a new resource-ref
element will be created and returned.
* Otherwise, the first existing resource-ref
element will be returned.
* @return the instance defined for the element resource-ref
*/
public ResourceRefType getOrCreateResourceRef();
/**
* Creates a new resource-ref
element
* @return the new created instance of ResourceRefType
*/
public ResourceRefType createResourceRef();
/**
* Returns all resource-ref
elements
* @return list of resource-ref
*/
public List> getAllResourceRef();
/**
* Removes all resource-ref
elements
* @return the current instance of ResourceRefType
*/
public WebFragmentDescriptor removeAllResourceRef();
// --------------------------------------------------------------------------------------------------------||
// ClassName: WebFragmentDescriptor ElementName: javaee:resource-env-refType ElementType : resource-env-ref
// MaxOccurs: -unbounded isGeneric: false isAttribute: false isEnum: false isDataType: false
// --------------------------------------------------------------------------------------------------------||
/**
* 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.
* @return the instance defined for the element resource-env-ref
*/
public ResourceEnvRefType getOrCreateResourceEnvRef();
/**
* Creates a new resource-env-ref
element
* @return the new created instance of ResourceEnvRefType
*/
public ResourceEnvRefType createResourceEnvRef();
/**
* Returns all resource-env-ref
elements
* @return list of resource-env-ref
*/
public List> getAllResourceEnvRef();
/**
* Removes all resource-env-ref
elements
* @return the current instance of ResourceEnvRefType
*/
public WebFragmentDescriptor removeAllResourceEnvRef();
// --------------------------------------------------------------------------------------------------------||
// ClassName: WebFragmentDescriptor ElementName: javaee:message-destination-refType ElementType : message-destination-ref
// MaxOccurs: -unbounded isGeneric: false isAttribute: false isEnum: false isDataType: false
// --------------------------------------------------------------------------------------------------------||
/**
* 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.
* @return the instance defined for the element message-destination-ref
*/
public MessageDestinationRefType getOrCreateMessageDestinationRef();
/**
* Creates a new message-destination-ref
element
* @return the new created instance of MessageDestinationRefType
*/
public MessageDestinationRefType createMessageDestinationRef();
/**
* Returns all message-destination-ref
elements
* @return list of message-destination-ref
*/
public List> getAllMessageDestinationRef();
/**
* Removes all message-destination-ref
elements
* @return the current instance of MessageDestinationRefType
*/
public WebFragmentDescriptor removeAllMessageDestinationRef();
// --------------------------------------------------------------------------------------------------------||
// ClassName: WebFragmentDescriptor ElementName: javaee:persistence-context-refType ElementType : persistence-context-ref
// MaxOccurs: -unbounded isGeneric: false isAttribute: false isEnum: false isDataType: false
// --------------------------------------------------------------------------------------------------------||
/**
* 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.
* @return the instance defined for the element persistence-context-ref
*/
public PersistenceContextRefType getOrCreatePersistenceContextRef();
/**
* Creates a new persistence-context-ref
element
* @return the new created instance of PersistenceContextRefType
*/
public PersistenceContextRefType createPersistenceContextRef();
/**
* Returns all persistence-context-ref
elements
* @return list of persistence-context-ref
*/
public List> getAllPersistenceContextRef();
/**
* Removes all persistence-context-ref
elements
* @return the current instance of PersistenceContextRefType
*/
public WebFragmentDescriptor removeAllPersistenceContextRef();
// --------------------------------------------------------------------------------------------------------||
// ClassName: WebFragmentDescriptor ElementName: javaee:persistence-unit-refType ElementType : persistence-unit-ref
// MaxOccurs: -unbounded isGeneric: false isAttribute: false isEnum: false isDataType: false
// --------------------------------------------------------------------------------------------------------||
/**
* 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.
* @return the instance defined for the element persistence-unit-ref
*/
public PersistenceUnitRefType getOrCreatePersistenceUnitRef();
/**
* Creates a new persistence-unit-ref
element
* @return the new created instance of PersistenceUnitRefType
*/
public PersistenceUnitRefType createPersistenceUnitRef();
/**
* Returns all persistence-unit-ref
elements
* @return list of persistence-unit-ref
*/
public List> getAllPersistenceUnitRef();
/**
* Removes all persistence-unit-ref
elements
* @return the current instance of PersistenceUnitRefType
*/
public WebFragmentDescriptor removeAllPersistenceUnitRef();
// --------------------------------------------------------------------------------------------------------||
// ClassName: WebFragmentDescriptor ElementName: javaee:lifecycle-callbackType ElementType : post-construct
// MaxOccurs: -unbounded isGeneric: false isAttribute: false isEnum: false isDataType: false
// --------------------------------------------------------------------------------------------------------||
/**
* If not already created, a new post-construct
element will be created and returned.
* Otherwise, the first existing post-construct
element will be returned.
* @return the instance defined for the element post-construct
*/
public LifecycleCallbackType getOrCreatePostConstruct();
/**
* Creates a new post-construct
element
* @return the new created instance of LifecycleCallbackType
*/
public LifecycleCallbackType createPostConstruct();
/**
* Returns all post-construct
elements
* @return list of post-construct
*/
public List> getAllPostConstruct();
/**
* Removes all post-construct
elements
* @return the current instance of LifecycleCallbackType
*/
public WebFragmentDescriptor removeAllPostConstruct();
// --------------------------------------------------------------------------------------------------------||
// ClassName: WebFragmentDescriptor ElementName: javaee:lifecycle-callbackType ElementType : pre-destroy
// MaxOccurs: -unbounded isGeneric: false isAttribute: false isEnum: false isDataType: false
// --------------------------------------------------------------------------------------------------------||
/**
* If not already created, a new pre-destroy
element will be created and returned.
* Otherwise, the first existing pre-destroy
element will be returned.
* @return the instance defined for the element pre-destroy
*/
public LifecycleCallbackType getOrCreatePreDestroy();
/**
* Creates a new pre-destroy
element
* @return the new created instance of LifecycleCallbackType
*/
public LifecycleCallbackType createPreDestroy();
/**
* Returns all pre-destroy
elements
* @return list of pre-destroy
*/
public List> getAllPreDestroy();
/**
* Removes all pre-destroy
elements
* @return the current instance of LifecycleCallbackType
*/
public WebFragmentDescriptor removeAllPreDestroy();
// --------------------------------------------------------------------------------------------------------||
// ClassName: WebFragmentDescriptor ElementName: javaee:data-sourceType ElementType : data-source
// MaxOccurs: -unbounded isGeneric: false isAttribute: false isEnum: false isDataType: false
// --------------------------------------------------------------------------------------------------------||
/**
* If not already created, a new data-source
element will be created and returned.
* Otherwise, the first existing data-source
element will be returned.
* @return the instance defined for the element data-source
*/
public DataSourceType getOrCreateDataSource();
/**
* Creates a new data-source
element
* @return the new created instance of DataSourceType
*/
public DataSourceType createDataSource();
/**
* Returns all data-source
elements
* @return list of data-source
*/
public List> getAllDataSource();
/**
* Removes all data-source
elements
* @return the current instance of DataSourceType
*/
public WebFragmentDescriptor removeAllDataSource();
// --------------------------------------------------------------------------------------------------------||
// ClassName: WebFragmentDescriptor ElementName: javaee:service-refType ElementType : service-ref
// MaxOccurs: -unbounded isGeneric: false isAttribute: false isEnum: false isDataType: false
// --------------------------------------------------------------------------------------------------------||
/**
* If not already created, a new service-ref
element will be created and returned.
* Otherwise, the first existing service-ref
element will be returned.
* @return the instance defined for the element service-ref
*/
public ServiceRefType getOrCreateServiceRef();
/**
* Creates a new service-ref
element
* @return the new created instance of ServiceRefType
*/
public ServiceRefType createServiceRef();
/**
* Returns all service-ref
elements
* @return list of service-ref
*/
public List> getAllServiceRef();
/**
* Removes all service-ref
elements
* @return the current instance of ServiceRefType
*/
public WebFragmentDescriptor removeAllServiceRef();
// --------------------------------------------------------------------------------------------------------||
// ClassName: WebFragmentDescriptor ElementName: javaee:web-app-versionType ElementType : version
// MaxOccurs: - isGeneric: false isAttribute: true isEnum: true isDataType: false
// --------------------------------------------------------------------------------------------------------||
/**
* Sets the version
attribute
* @param version the value for the attribute version
* @return the current instance of WebFragmentDescriptor
*/
public WebFragmentDescriptor version(WebAppVersionType version);
/**
* Sets the version
attribute
* @param version the value for the attribute version
* @return the current instance of WebFragmentDescriptor
*/
public WebFragmentDescriptor version(String version);
/**
* Returns the version
attribute
* @return the value defined for the attribute version
*/
public WebAppVersionType getVersion();
/**
* Returns the version
attribute
* @return the value found for the element version
*/
public String getVersionAsString();
/**
* Removes the version
attribute
* @return the current instance of WebFragmentDescriptor
*/
public WebFragmentDescriptor removeVersion();
// --------------------------------------------------------------------------------------------------------||
// ClassName: WebFragmentDescriptor ElementName: xsd:ID ElementType : id
// MaxOccurs: - isGeneric: false isAttribute: true isEnum: false isDataType: true
// --------------------------------------------------------------------------------------------------------||
/**
* Sets the id
attribute
* @param id the value for the attribute id
* @return the current instance of WebFragmentDescriptor
*/
public WebFragmentDescriptor id(String id);
/**
* Returns the id
attribute
* @return the value defined for the attribute id
*/
public String getId();
/**
* Removes the id
attribute
* @return the current instance of WebFragmentDescriptor
*/
public WebFragmentDescriptor removeId();
// --------------------------------------------------------------------------------------------------------||
// ClassName: WebFragmentDescriptor ElementName: xsd:boolean ElementType : metadata-complete
// MaxOccurs: - isGeneric: false isAttribute: true isEnum: false isDataType: true
// --------------------------------------------------------------------------------------------------------||
/**
* Sets the metadata-complete
attribute
* @param metadataComplete the value for the attribute metadata-complete
* @return the current instance of WebFragmentDescriptor
*/
public WebFragmentDescriptor metadataComplete(Boolean metadataComplete);
/**
* Returns the metadata-complete
attribute
* @return the value defined for the attribute metadata-complete
*/
public Boolean isMetadataComplete();
/**
* Removes the metadata-complete
attribute
* @return the current instance of WebFragmentDescriptor
*/
public WebFragmentDescriptor removeMetadataComplete();
// --------------------------------------------------------------------------------------------------------||
// ClassName: WebFragmentDescriptor ElementName: xsd:token ElementType : name
// MaxOccurs: -unbounded isGeneric: false isAttribute: false isEnum: false isDataType: true
// --------------------------------------------------------------------------------------------------------||
/**
* Creates for all String objects representing name
elements,
* a new name
element
* @param values list of name
objects
* @return the current instance of WebFragmentDescriptor
*/
public WebFragmentDescriptor name(String ... values);
/**
* Returns all name
elements
* @return list of name
*/
public List getAllName();
/**
* Removes the name
element
* @return the current instance of WebFragmentDescriptor
*/
public WebFragmentDescriptor removeAllName();
// --------------------------------------------------------------------------------------------------------||
// ClassName: WebFragmentDescriptor ElementName: javaee:orderingType ElementType : ordering
// MaxOccurs: -unbounded isGeneric: false isAttribute: false isEnum: false isDataType: false
// --------------------------------------------------------------------------------------------------------||
/**
* If not already created, a new ordering
element will be created and returned.
* Otherwise, the first existing ordering
element will be returned.
* @return the instance defined for the element ordering
*/
public OrderingType getOrCreateOrdering();
/**
* Creates a new ordering
element
* @return the new created instance of OrderingType
*/
public OrderingType createOrdering();
/**
* Returns all ordering
elements
* @return list of ordering
*/
public List> getAllOrdering();
/**
* Removes all ordering
elements
* @return the current instance of OrderingType
*/
public WebFragmentDescriptor removeAllOrdering();
}