org.jboss.shrinkwrap.descriptor.api.ejbjar31.ConcurrentMethodType Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of shrinkwrap-descriptors-api-javaee Show documentation
Show all versions of shrinkwrap-descriptors-api-javaee Show documentation
Client View of the ShrinkWrap Descriptors Project
The newest version!
package org.jboss.shrinkwrap.descriptor.api.ejbjar31;
import java.util.ArrayList;
import java.util.List;
import org.jboss.shrinkwrap.descriptor.api.Child;
import org.jboss.shrinkwrap.descriptor.api.ejbjar31.NamedMethodType;
import org.jboss.shrinkwrap.descriptor.api.ejbjar31.ConcurrentLockTypeType;
import org.jboss.shrinkwrap.descriptor.api.ejbjar31.AccessTimeoutType;
import org.jboss.shrinkwrap.descriptor.api.ejbjar.*;
import org.jboss.shrinkwrap.descriptor.api.ejbjar.JavaeeConcurrentMethodCommonType;
import org.jboss.shrinkwrap.descriptor.api.ejbjar31.NamedMethodType;
import org.jboss.shrinkwrap.descriptor.api.ejbjar31.AccessTimeoutType;/**
* This interface defines the contract for the concurrent-methodType
xsd type
* @author Ralf Battenfeld
* @author Andrew Lee Rubinger
* @author George Gastaldi
*/
public interface ConcurrentMethodType extends Child,
JavaeeConcurrentMethodCommonType,
NamedMethodType>,
AccessTimeoutType>> {
// --------------------------------------------------------------------------------------------------------||
// ClassName: ConcurrentMethodType ElementName: javaee:named-methodType ElementType : method
// MaxOccurs: - isGeneric: true isAttribute: false isEnum: false isDataType: false
// --------------------------------------------------------------------------------------------------------||
/**
* If not already created, a new method
element with the given value will be created.
* Otherwise, the existing method
element will be returned.
* @return a new or existing instance of NamedMethodType>
*/
public NamedMethodType> getOrCreateMethod();
/**
* Removes the method
element
* @return the current instance of ConcurrentMethodType
*/
public ConcurrentMethodType removeMethod();
// --------------------------------------------------------------------------------------------------------||
// ClassName: ConcurrentMethodType ElementName: javaee:concurrent-lock-typeType ElementType : lock
// MaxOccurs: - isGeneric: true isAttribute: false isEnum: true isDataType: false
// --------------------------------------------------------------------------------------------------------||
/**
* Sets the lock
element
* @param lock the value for the element lock
* @return the current instance of ConcurrentMethodType
*/
public ConcurrentMethodType lock(ConcurrentLockTypeType lock);
/**
* Sets the lock
element
* @param lock the value for the element lock
* @return the current instance of ConcurrentMethodType
*/
public ConcurrentMethodType lock(String lock);
/**
* Returns the lock
element
* @return the value found for the element lock
*/
public ConcurrentLockTypeType getLock();
/**
* Returns the lock
element
* @return the value found for the element lock
*/
public String getLockAsString();
/**
* Removes the lock
attribute
* @return the current instance of ConcurrentMethodType
*/
public ConcurrentMethodType removeLock();
// --------------------------------------------------------------------------------------------------------||
// ClassName: ConcurrentMethodType ElementName: javaee:access-timeoutType ElementType : access-timeout
// MaxOccurs: - isGeneric: true isAttribute: false isEnum: false isDataType: false
// --------------------------------------------------------------------------------------------------------||
/**
* If not already created, a new access-timeout
element with the given value will be created.
* Otherwise, the existing access-timeout
element will be returned.
* @return a new or existing instance of AccessTimeoutType>
*/
public AccessTimeoutType> getOrCreateAccessTimeout();
/**
* Removes the access-timeout
element
* @return the current instance of ConcurrentMethodType
*/
public ConcurrentMethodType removeAccessTimeout();
// --------------------------------------------------------------------------------------------------------||
// ClassName: ConcurrentMethodType ElementName: xsd:ID ElementType : id
// MaxOccurs: - isGeneric: true isAttribute: true isEnum: false isDataType: true
// --------------------------------------------------------------------------------------------------------||
/**
* Sets the id
attribute
* @param id the value for the attribute id
* @return the current instance of ConcurrentMethodType
*/
public ConcurrentMethodType 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 ConcurrentMethodType
*/
public ConcurrentMethodType removeId();
}