org.jboss.shrinkwrap.descriptor.api.ejbjar32.ConcurrentMethodType Maven / Gradle / Ivy
package org.jboss.shrinkwrap.descriptor.api.ejbjar32;
import java.util.ArrayList;
import java.util.List;
import org.jboss.shrinkwrap.descriptor.api.Child;
import org.jboss.shrinkwrap.descriptor.api.ejbjar32.NamedMethodType;
import org.jboss.shrinkwrap.descriptor.api.ejbjar32.ConcurrentLockTypeType;
import org.jboss.shrinkwrap.descriptor.api.ejbjar32.AccessTimeoutType;
import org.jboss.shrinkwrap.descriptor.api.ejbjar.*;
import org.jboss.shrinkwrap.descriptor.api.ejbjar.JavaeeConcurrentMethodCommonType;
import org.jboss.shrinkwrap.descriptor.api.ejbjar32.NamedMethodType;
import org.jboss.shrinkwrap.descriptor.api.ejbjar32.AccessTimeoutType;/**
* This interface defines the contract for the concurrent-methodType
xsd type
* @author Ralf Battenfeld
* @author Andrew Lee Rubinger
*/
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();
}