org.jboss.shrinkwrap.descriptor.api.jbossweb60
Interface JbossWebType<T>

All Superinterfaces:
Child<T>

public interface JbossWebType<T>
extends Child<T>

This interface defines the contract for the jboss-webType xsd type

Since:
Generation date :2013-01-26T19:27:01.083+01:00
Author:
Ralf Battenfeld, Andrew Lee Rubinger

Method Summary
 JbossWebType<T> contextRoot(String contextRoot)
          Sets the context-root element
 DataSourceType<JbossWebType<T>> createDataSource()
          Creates a new data-source element
 EjbLocalRefType<JbossWebType<T>> createEjbLocalRef()
          Creates a new ejb-local-ref element
 EjbRefType<JbossWebType<T>> createEjbRef()
          Creates a new ejb-ref element
 EnvEntryType<JbossWebType<T>> createEnvEntry()
          Creates a new env-entry element
 MessageDestinationType<JbossWebType<T>> createMessageDestination()
          Creates a new message-destination element
 MessageDestinationRefType<JbossWebType<T>> createMessageDestinationRef()
          Creates a new message-destination-ref element
 PersistenceContextRefType<JbossWebType<T>> createPersistenceContextRef()
          Creates a new persistence-context-ref element
 PersistenceUnitRefType<JbossWebType<T>> createPersistenceUnitRef()
          Creates a new persistence-unit-ref element
 LifecycleCallbackType<JbossWebType<T>> createPostConstruct()
          Creates a new post-construct element
 LifecycleCallbackType<JbossWebType<T>> createPreDestroy()
          Creates a new pre-destroy element
 ResourceEnvRefType<JbossWebType<T>> createResourceEnvRef()
          Creates a new resource-env-ref element
 ResourceRefType<JbossWebType<T>> createResourceRef()
          Creates a new resource-ref element
 SecurityRoleType<JbossWebType<T>> createSecurityRole()
          Creates a new security-role element
 ServiceRefType<JbossWebType<T>> createServiceRef()
          Creates a new service-ref element
 ServletType<JbossWebType<T>> createServlet()
          Creates a new servlet element
 WebserviceDescriptionType<JbossWebType<T>> createWebserviceDescription()
          Creates a new webservice-description element
 JbossWebType<T> depends(String... values)
          Creates for all String objects representing depends elements, a new depends element
 List<DataSourceType<JbossWebType<T>>> getAllDataSource()
          Returns all data-source elements
 List<String> getAllDepends()
          Returns all depends elements
 List<EjbLocalRefType<JbossWebType<T>>> getAllEjbLocalRef()
          Returns all ejb-local-ref elements
 List<EjbRefType<JbossWebType<T>>> getAllEjbRef()
          Returns all ejb-ref elements
 List<EnvEntryType<JbossWebType<T>>> getAllEnvEntry()
          Returns all env-entry elements
 List<MessageDestinationType<JbossWebType<T>>> getAllMessageDestination()
          Returns all message-destination elements
 List<MessageDestinationRefType<JbossWebType<T>>> getAllMessageDestinationRef()
          Returns all message-destination-ref elements
 List<PersistenceContextRefType<JbossWebType<T>>> getAllPersistenceContextRef()
          Returns all persistence-context-ref elements
 List<PersistenceUnitRefType<JbossWebType<T>>> getAllPersistenceUnitRef()
          Returns all persistence-unit-ref elements
 List<LifecycleCallbackType<JbossWebType<T>>> getAllPostConstruct()
          Returns all post-construct elements
 List<LifecycleCallbackType<JbossWebType<T>>> getAllPreDestroy()
          Returns all pre-destroy elements
 List<ResourceEnvRefType<JbossWebType<T>>> getAllResourceEnvRef()
          Returns all resource-env-ref elements
 List<ResourceRefType<JbossWebType<T>>> getAllResourceRef()
          Returns all resource-ref elements
 List<SecurityRoleType<JbossWebType<T>>> getAllSecurityRole()
          Returns all security-role elements
 List<ServiceRefType<JbossWebType<T>>> getAllServiceRef()
          Returns all service-ref elements
 List<ServletType<JbossWebType<T>>> getAllServlet()
          Returns all servlet elements
 List<String> getAllVirtualHost()
          Returns all virtual-host elements
 List<WebserviceDescriptionType<JbossWebType<T>>> getAllWebserviceDescription()
          Returns all webservice-description elements
 String getContextRoot()
          Returns the context-root element
 GenericBooleanType getJaccStarRoleAllow()
          Returns the jacc-star-role-allow element
 String getJaccStarRoleAllowAsString()
          Returns the jacc-star-role-allow element
 Integer getMaxActiveSessions()
          Returns the max-active-sessions element
 AnnotationType<JbossWebType<T>> getOrCreateAnnotation()
          If not already created, a new annotation element with the given value will be created.
 ClassLoadingType<JbossWebType<T>> getOrCreateClassLoading()
          If not already created, a new class-loading element with the given value will be created.
 DataSourceType<JbossWebType<T>> getOrCreateDataSource()
          If not already created, a new data-source element will be created and returned.
 EjbLocalRefType<JbossWebType<T>> getOrCreateEjbLocalRef()
          If not already created, a new ejb-local-ref element will be created and returned.
 EjbRefType<JbossWebType<T>> getOrCreateEjbRef()
          If not already created, a new ejb-ref element will be created and returned.
 EnvEntryType<JbossWebType<T>> getOrCreateEnvEntry()
          If not already created, a new env-entry element will be created and returned.
 MessageDestinationType<JbossWebType<T>> getOrCreateMessageDestination()
          If not already created, a new message-destination element will be created and returned.
 MessageDestinationRefType<JbossWebType<T>> getOrCreateMessageDestinationRef()
          If not already created, a new message-destination-ref element will be created and returned.
 PassivationConfigType<JbossWebType<T>> getOrCreatePassivationConfig()
          If not already created, a new passivation-config element with the given value will be created.
 PersistenceContextRefType<JbossWebType<T>> getOrCreatePersistenceContextRef()
          If not already created, a new persistence-context-ref element will be created and returned.
 PersistenceUnitRefType<JbossWebType<T>> getOrCreatePersistenceUnitRef()
          If not already created, a new persistence-unit-ref element will be created and returned.
 LifecycleCallbackType<JbossWebType<T>> getOrCreatePostConstruct()
          If not already created, a new post-construct element will be created and returned.
 LifecycleCallbackType<JbossWebType<T>> getOrCreatePreDestroy()
          If not already created, a new pre-destroy element will be created and returned.
 ReplicationConfigType<JbossWebType<T>> getOrCreateReplicationConfig()
          If not already created, a new replication-config element with the given value will be created.
 ResourceEnvRefType<JbossWebType<T>> getOrCreateResourceEnvRef()
          If not already created, a new resource-env-ref element will be created and returned.
 ResourceRefType<JbossWebType<T>> getOrCreateResourceRef()
          If not already created, a new resource-ref element will be created and returned.
 SecurityRoleType<JbossWebType<T>> getOrCreateSecurityRole()
          If not already created, a new security-role element will be created and returned.
 ServiceRefType<JbossWebType<T>> getOrCreateServiceRef()
          If not already created, a new service-ref element will be created and returned.
 ServletType<JbossWebType<T>> getOrCreateServlet()
          If not already created, a new servlet element will be created and returned.
 WebserviceDescriptionType<JbossWebType<T>> getOrCreateWebserviceDescription()
          If not already created, a new webservice-description element will be created and returned.
 String getSecurityDomain()
          Returns the security-domain element
 GenericBooleanType getUseSessionCookies()
          Returns the use-session-cookies element
 String getUseSessionCookiesAsString()
          Returns the use-session-cookies element
 JbossWebVersionType getVersion()
          Returns the version attribute
 String getVersionAsString()
          Returns the version attribute
 JbossWebType<T> jaccStarRoleAllow(GenericBooleanType jaccStarRoleAllow)
          Sets the jacc-star-role-allow element
 JbossWebType<T> jaccStarRoleAllow(String jaccStarRoleAllow)
          Sets the jacc-star-role-allow element
 JbossWebType<T> maxActiveSessions(Integer maxActiveSessions)
          Sets the max-active-sessions element
 JbossWebType<T> removeAllDataSource()
          Removes all data-source elements
 JbossWebType<T> removeAllDepends()
          Removes the depends element
 JbossWebType<T> removeAllEjbLocalRef()
          Removes all ejb-local-ref elements
 JbossWebType<T> removeAllEjbRef()
          Removes all ejb-ref elements
 JbossWebType<T> removeAllEnvEntry()
          Removes all env-entry elements
 JbossWebType<T> removeAllMessageDestination()
          Removes all message-destination elements
 JbossWebType<T> removeAllMessageDestinationRef()
          Removes all message-destination-ref elements
 JbossWebType<T> removeAllPersistenceContextRef()
          Removes all persistence-context-ref elements
 JbossWebType<T> removeAllPersistenceUnitRef()
          Removes all persistence-unit-ref elements
 JbossWebType<T> removeAllPostConstruct()
          Removes all post-construct elements
 JbossWebType<T> removeAllPreDestroy()
          Removes all pre-destroy elements
 JbossWebType<T> removeAllResourceEnvRef()
          Removes all resource-env-ref elements
 JbossWebType<T> removeAllResourceRef()
          Removes all resource-ref elements
 JbossWebType<T> removeAllSecurityRole()
          Removes all security-role elements
 JbossWebType<T> removeAllServiceRef()
          Removes all service-ref elements
 JbossWebType<T> removeAllServlet()
          Removes all servlet elements
 JbossWebType<T> removeAllVirtualHost()
          Removes the virtual-host element
 JbossWebType<T> removeAllWebserviceDescription()
          Removes all webservice-description elements
 JbossWebType<T> removeAnnotation()
          Removes the annotation element
 JbossWebType<T> removeClassLoading()
          Removes the class-loading element
 JbossWebType<T> removeContextRoot()
          Removes the context-root element
 JbossWebType<T> removeJaccStarRoleAllow()
          Removes the jacc-star-role-allow attribute
 JbossWebType<T> removeMaxActiveSessions()
          Removes the max-active-sessions element
 JbossWebType<T> removePassivationConfig()
          Removes the passivation-config element
 JbossWebType<T> removeReplicationConfig()
          Removes the replication-config element
 JbossWebType<T> removeSecurityDomain()
          Removes the security-domain element
 JbossWebType<T> removeUseSessionCookies()
          Removes the use-session-cookies attribute
 JbossWebType<T> removeVersion()
          Removes the version attribute
 JbossWebType<T> securityDomain(String securityDomain)
          Sets the security-domain element
 JbossWebType<T> useSessionCookies(GenericBooleanType useSessionCookies)
          Sets the use-session-cookies element
 JbossWebType<T> useSessionCookies(String useSessionCookies)
          Sets the use-session-cookies element
 JbossWebType<T> version(JbossWebVersionType version)
          Sets the version attribute
 JbossWebType<T> version(String version)
          Sets the version attribute
 JbossWebType<T> virtualHost(String... values)
          Creates for all String objects representing virtual-host elements, a new virtual-host element
 
Methods inherited from interface org.jboss.shrinkwrap.descriptor.api.Child
up
 

Method Detail

getOrCreateEnvEntry

EnvEntryType<JbossWebType<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<JbossWebType<T>> createEnvEntry()
Creates a new env-entry element

Returns:
the new created instance of EnvEntryType>

getAllEnvEntry

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

Returns:
list of env-entry

removeAllEnvEntry

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

Returns:
the current instance of EnvEntryType>

getOrCreateEjbRef

EjbRefType<JbossWebType<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<JbossWebType<T>> createEjbRef()
Creates a new ejb-ref element

Returns:
the new created instance of EjbRefType>

getAllEjbRef

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

Returns:
list of ejb-ref

removeAllEjbRef

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

Returns:
the current instance of EjbRefType>

getOrCreateEjbLocalRef

EjbLocalRefType<JbossWebType<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<JbossWebType<T>> createEjbLocalRef()
Creates a new ejb-local-ref element

Returns:
the new created instance of EjbLocalRefType>

getAllEjbLocalRef

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

Returns:
list of ejb-local-ref

removeAllEjbLocalRef

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

Returns:
the current instance of EjbLocalRefType>

getOrCreateResourceRef

ResourceRefType<JbossWebType<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<JbossWebType<T>> createResourceRef()
Creates a new resource-ref element

Returns:
the new created instance of ResourceRefType>

getAllResourceRef

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

Returns:
list of resource-ref

removeAllResourceRef

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

Returns:
the current instance of ResourceRefType>

getOrCreateResourceEnvRef

ResourceEnvRefType<JbossWebType<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<JbossWebType<T>> createResourceEnvRef()
Creates a new resource-env-ref element

Returns:
the new created instance of ResourceEnvRefType>

getAllResourceEnvRef

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

Returns:
list of resource-env-ref

removeAllResourceEnvRef

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

Returns:
the current instance of ResourceEnvRefType>

getOrCreateMessageDestinationRef

MessageDestinationRefType<JbossWebType<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<JbossWebType<T>> createMessageDestinationRef()
Creates a new message-destination-ref element

Returns:
the new created instance of MessageDestinationRefType>

getAllMessageDestinationRef

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

Returns:
list of message-destination-ref

removeAllMessageDestinationRef

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

Returns:
the current instance of MessageDestinationRefType>

getOrCreatePersistenceContextRef

PersistenceContextRefType<JbossWebType<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<JbossWebType<T>> createPersistenceContextRef()
Creates a new persistence-context-ref element

Returns:
the new created instance of PersistenceContextRefType>

getAllPersistenceContextRef

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

Returns:
list of persistence-context-ref

removeAllPersistenceContextRef

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

Returns:
the current instance of PersistenceContextRefType>

getOrCreatePersistenceUnitRef

PersistenceUnitRefType<JbossWebType<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<JbossWebType<T>> createPersistenceUnitRef()
Creates a new persistence-unit-ref element

Returns:
the new created instance of PersistenceUnitRefType>

getAllPersistenceUnitRef

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

Returns:
list of persistence-unit-ref

removeAllPersistenceUnitRef

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

Returns:
the current instance of PersistenceUnitRefType>

getOrCreatePostConstruct

LifecycleCallbackType<JbossWebType<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<JbossWebType<T>> createPostConstruct()
Creates a new post-construct element

Returns:
the new created instance of LifecycleCallbackType>

getAllPostConstruct

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

Returns:
list of post-construct

removeAllPostConstruct

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

Returns:
the current instance of LifecycleCallbackType>

getOrCreatePreDestroy

LifecycleCallbackType<JbossWebType<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<JbossWebType<T>> createPreDestroy()
Creates a new pre-destroy element

Returns:
the new created instance of LifecycleCallbackType>

getAllPreDestroy

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

Returns:
list of pre-destroy

removeAllPreDestroy

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

Returns:
the current instance of LifecycleCallbackType>

getOrCreateDataSource

DataSourceType<JbossWebType<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<JbossWebType<T>> createDataSource()
Creates a new data-source element

Returns:
the new created instance of DataSourceType>

getAllDataSource

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

Returns:
list of data-source

removeAllDataSource

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

Returns:
the current instance of DataSourceType>

getOrCreateServiceRef

ServiceRefType<JbossWebType<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<JbossWebType<T>> createServiceRef()
Creates a new service-ref element

Returns:
the new created instance of ServiceRefType>

getAllServiceRef

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

Returns:
list of service-ref

removeAllServiceRef

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

Returns:
the current instance of ServiceRefType>

getOrCreateClassLoading

ClassLoadingType<JbossWebType<T>> getOrCreateClassLoading()
If not already created, a new class-loading element with the given value will be created. Otherwise, the existing class-loading element will be returned.

Returns:
a new or existing instance of ClassLoadingType>

removeClassLoading

JbossWebType<T> removeClassLoading()
Removes the class-loading element

Returns:
the current instance of JbossWebType

securityDomain

JbossWebType<T> securityDomain(String securityDomain)
Sets the security-domain element

Parameters:
securityDomain - the value for the element security-domain
Returns:
the current instance of JbossWebType

getSecurityDomain

String getSecurityDomain()
Returns the security-domain element

Returns:
the node defined for the element security-domain

removeSecurityDomain

JbossWebType<T> removeSecurityDomain()
Removes the security-domain element

Returns:
the current instance of JbossWebType

jaccStarRoleAllow

JbossWebType<T> jaccStarRoleAllow(GenericBooleanType jaccStarRoleAllow)
Sets the jacc-star-role-allow element

Parameters:
jaccStarRoleAllow - the value for the element jacc-star-role-allow
Returns:
the current instance of JbossWebType

jaccStarRoleAllow

JbossWebType<T> jaccStarRoleAllow(String jaccStarRoleAllow)
Sets the jacc-star-role-allow element

Parameters:
jaccStarRoleAllow - the value for the element jacc-star-role-allow
Returns:
the current instance of JbossWebType

getJaccStarRoleAllow

GenericBooleanType getJaccStarRoleAllow()
Returns the jacc-star-role-allow element

Returns:
the value found for the element jacc-star-role-allow

getJaccStarRoleAllowAsString

String getJaccStarRoleAllowAsString()
Returns the jacc-star-role-allow element

Returns:
the value found for the element jacc-star-role-allow

removeJaccStarRoleAllow

JbossWebType<T> removeJaccStarRoleAllow()
Removes the jacc-star-role-allow attribute

Returns:
the current instance of JbossWebType

contextRoot

JbossWebType<T> contextRoot(String contextRoot)
Sets the context-root element

Parameters:
contextRoot - the value for the element context-root
Returns:
the current instance of JbossWebType

getContextRoot

String getContextRoot()
Returns the context-root element

Returns:
the node defined for the element context-root

removeContextRoot

JbossWebType<T> removeContextRoot()
Removes the context-root element

Returns:
the current instance of JbossWebType

virtualHost

JbossWebType<T> virtualHost(String... values)
Creates for all String objects representing virtual-host elements, a new virtual-host element

Parameters:
values - list of virtual-host objects
Returns:
the current instance of JbossWebType

getAllVirtualHost

List<String> getAllVirtualHost()
Returns all virtual-host elements

Returns:
list of virtual-host

removeAllVirtualHost

JbossWebType<T> removeAllVirtualHost()
Removes the virtual-host element

Returns:
the current instance of JbossWebType

useSessionCookies

JbossWebType<T> useSessionCookies(GenericBooleanType useSessionCookies)
Sets the use-session-cookies element

Parameters:
useSessionCookies - the value for the element use-session-cookies
Returns:
the current instance of JbossWebType

useSessionCookies

JbossWebType<T> useSessionCookies(String useSessionCookies)
Sets the use-session-cookies element

Parameters:
useSessionCookies - the value for the element use-session-cookies
Returns:
the current instance of JbossWebType

getUseSessionCookies

GenericBooleanType getUseSessionCookies()
Returns the use-session-cookies element

Returns:
the value found for the element use-session-cookies

getUseSessionCookiesAsString

String getUseSessionCookiesAsString()
Returns the use-session-cookies element

Returns:
the value found for the element use-session-cookies

removeUseSessionCookies

JbossWebType<T> removeUseSessionCookies()
Removes the use-session-cookies attribute

Returns:
the current instance of JbossWebType

getOrCreateReplicationConfig

ReplicationConfigType<JbossWebType<T>> getOrCreateReplicationConfig()
If not already created, a new replication-config element with the given value will be created. Otherwise, the existing replication-config element will be returned.

Returns:
a new or existing instance of ReplicationConfigType>

removeReplicationConfig

JbossWebType<T> removeReplicationConfig()
Removes the replication-config element

Returns:
the current instance of JbossWebType

getOrCreateSecurityRole

SecurityRoleType<JbossWebType<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<JbossWebType<T>> createSecurityRole()
Creates a new security-role element

Returns:
the new created instance of SecurityRoleType>

getAllSecurityRole

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

Returns:
list of security-role

removeAllSecurityRole

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

Returns:
the current instance of SecurityRoleType>

getOrCreateMessageDestination

MessageDestinationType<JbossWebType<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<JbossWebType<T>> createMessageDestination()
Creates a new message-destination element

Returns:
the new created instance of MessageDestinationType>

getAllMessageDestination

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

Returns:
list of message-destination

removeAllMessageDestination

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

Returns:
the current instance of MessageDestinationType>

getOrCreateWebserviceDescription

WebserviceDescriptionType<JbossWebType<T>> getOrCreateWebserviceDescription()
If not already created, a new webservice-description element will be created and returned. Otherwise, the first existing webservice-description element will be returned.

Returns:
the instance defined for the element webservice-description

createWebserviceDescription

WebserviceDescriptionType<JbossWebType<T>> createWebserviceDescription()
Creates a new webservice-description element

Returns:
the new created instance of WebserviceDescriptionType>

getAllWebserviceDescription

List<WebserviceDescriptionType<JbossWebType<T>>> getAllWebserviceDescription()
Returns all webservice-description elements

Returns:
list of webservice-description

removeAllWebserviceDescription

JbossWebType<T> removeAllWebserviceDescription()
Removes all webservice-description elements

Returns:
the current instance of WebserviceDescriptionType>

depends

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

Parameters:
values - list of depends objects
Returns:
the current instance of JbossWebType

getAllDepends

List<String> getAllDepends()
Returns all depends elements

Returns:
list of depends

removeAllDepends

JbossWebType<T> removeAllDepends()
Removes the depends element

Returns:
the current instance of JbossWebType

getOrCreateServlet

ServletType<JbossWebType<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<JbossWebType<T>> createServlet()
Creates a new servlet element

Returns:
the new created instance of ServletType>

getAllServlet

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

Returns:
list of servlet

removeAllServlet

JbossWebType<T> removeAllServlet()
Removes all servlet elements

Returns:
the current instance of ServletType>

maxActiveSessions

JbossWebType<T> maxActiveSessions(Integer maxActiveSessions)
Sets the max-active-sessions element

Parameters:
maxActiveSessions - the value for the element max-active-sessions
Returns:
the current instance of JbossWebType

getMaxActiveSessions

Integer getMaxActiveSessions()
Returns the max-active-sessions element

Returns:
the node defined for the element max-active-sessions

removeMaxActiveSessions

JbossWebType<T> removeMaxActiveSessions()
Removes the max-active-sessions element

Returns:
the current instance of JbossWebType

getOrCreatePassivationConfig

PassivationConfigType<JbossWebType<T>> getOrCreatePassivationConfig()
If not already created, a new passivation-config element with the given value will be created. Otherwise, the existing passivation-config element will be returned.

Returns:
a new or existing instance of PassivationConfigType>

removePassivationConfig

JbossWebType<T> removePassivationConfig()
Removes the passivation-config element

Returns:
the current instance of JbossWebType

getOrCreateAnnotation

AnnotationType<JbossWebType<T>> getOrCreateAnnotation()
If not already created, a new annotation element with the given value will be created. Otherwise, the existing annotation element will be returned.

Returns:
a new or existing instance of AnnotationType>

removeAnnotation

JbossWebType<T> removeAnnotation()
Removes the annotation element

Returns:
the current instance of JbossWebType

version

JbossWebType<T> version(JbossWebVersionType version)
Sets the version attribute

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

version

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

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

getVersion

JbossWebVersionType 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

JbossWebType<T> removeVersion()
Removes the version attribute

Returns:
the current instance of JbossWebType


Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.