org.jboss.shrinkwrap.descriptor.api.ejbjar32.ContainerTransactionType 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.ejbjar32;
import java.util.ArrayList;
import java.util.List;
import org.jboss.shrinkwrap.descriptor.api.Child;
import org.jboss.shrinkwrap.descriptor.api.ejbjar32.MethodType;
import org.jboss.shrinkwrap.descriptor.api.ejbjar32.TransAttributeType;
import org.jboss.shrinkwrap.descriptor.api.ejbjar.*;
import org.jboss.shrinkwrap.descriptor.api.ejbjar.JavaeeContainerTransactionCommonType;
import org.jboss.shrinkwrap.descriptor.api.ejbjar32.MethodType;/**
* This interface defines the contract for the container-transactionType
xsd type
* @author Ralf Battenfeld
* @author Andrew Lee Rubinger
*/
public interface ContainerTransactionType extends Child,
JavaeeContainerTransactionCommonType,
MethodType>> {
// --------------------------------------------------------------------------------------------------------||
// ClassName: ContainerTransactionType ElementName: xsd:string ElementType : description
// MaxOccurs: -unbounded isGeneric: true 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 ContainerTransactionType
*/
public ContainerTransactionType description(String ... values);
/**
* Returns all description
elements
* @return list of description
*/
public List getAllDescription();
/**
* Removes the description
element
* @return the current instance of ContainerTransactionType
*/
public ContainerTransactionType removeAllDescription();
// --------------------------------------------------------------------------------------------------------||
// ClassName: ContainerTransactionType ElementName: javaee:methodType ElementType : method
// MaxOccurs: -unbounded isGeneric: true isAttribute: false isEnum: false isDataType: false
// --------------------------------------------------------------------------------------------------------||
/**
* If not already created, a new method
element will be created and returned.
* Otherwise, the first existing method
element will be returned.
* @return the instance defined for the element method
*/
public MethodType> getOrCreateMethod();
/**
* Creates a new method
element
* @return the new created instance of MethodType>
*/
public MethodType> createMethod();
/**
* Returns all method
elements
* @return list of method
*/
public List>> getAllMethod();
/**
* Removes all method
elements
* @return the current instance of MethodType>
*/
public ContainerTransactionType removeAllMethod();
// --------------------------------------------------------------------------------------------------------||
// ClassName: ContainerTransactionType ElementName: javaee:trans-attributeType ElementType : trans-attribute
// MaxOccurs: - isGeneric: true isAttribute: false isEnum: true isDataType: false
// --------------------------------------------------------------------------------------------------------||
/**
* Sets the trans-attribute
element
* @param transAttribute the value for the element trans-attribute
* @return the current instance of ContainerTransactionType
*/
public ContainerTransactionType transAttribute(TransAttributeType transAttribute);
/**
* Sets the trans-attribute
element
* @param transAttribute the value for the element trans-attribute
* @return the current instance of ContainerTransactionType
*/
public ContainerTransactionType transAttribute(String transAttribute);
/**
* Returns the trans-attribute
element
* @return the value found for the element trans-attribute
*/
public TransAttributeType getTransAttribute();
/**
* Returns the trans-attribute
element
* @return the value found for the element trans-attribute
*/
public String getTransAttributeAsString();
/**
* Removes the trans-attribute
attribute
* @return the current instance of ContainerTransactionType
*/
public ContainerTransactionType removeTransAttribute();
// --------------------------------------------------------------------------------------------------------||
// ClassName: ContainerTransactionType 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 ContainerTransactionType
*/
public ContainerTransactionType 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 ContainerTransactionType
*/
public ContainerTransactionType removeId();
}