org.jboss.shrinkwrap.descriptor.api.ejbjar32.InitMethodType 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.NamedMethodType;
import org.jboss.shrinkwrap.descriptor.api.ejbjar.*;
import org.jboss.shrinkwrap.descriptor.api.ejbjar.JavaeeInitMethodCommonType;
import org.jboss.shrinkwrap.descriptor.api.ejbjar32.NamedMethodType;
import org.jboss.shrinkwrap.descriptor.api.ejbjar32.NamedMethodType;/**
* This interface defines the contract for the init-methodType
xsd type
* @author Ralf Battenfeld
* @author Andrew Lee Rubinger
*/
public interface InitMethodType extends Child,
JavaeeInitMethodCommonType,
NamedMethodType>,
NamedMethodType>> {
// --------------------------------------------------------------------------------------------------------||
// ClassName: InitMethodType ElementName: javaee:named-methodType ElementType : create-method
// MaxOccurs: - isGeneric: true isAttribute: false isEnum: false isDataType: false
// --------------------------------------------------------------------------------------------------------||
/**
* If not already created, a new create-method
element with the given value will be created.
* Otherwise, the existing create-method
element will be returned.
* @return a new or existing instance of NamedMethodType>
*/
public NamedMethodType> getOrCreateCreateMethod();
/**
* Removes the create-method
element
* @return the current instance of InitMethodType
*/
public InitMethodType removeCreateMethod();
// --------------------------------------------------------------------------------------------------------||
// ClassName: InitMethodType ElementName: javaee:named-methodType ElementType : bean-method
// MaxOccurs: - isGeneric: true isAttribute: false isEnum: false isDataType: false
// --------------------------------------------------------------------------------------------------------||
/**
* If not already created, a new bean-method
element with the given value will be created.
* Otherwise, the existing bean-method
element will be returned.
* @return a new or existing instance of NamedMethodType>
*/
public NamedMethodType> getOrCreateBeanMethod();
/**
* Removes the bean-method
element
* @return the current instance of InitMethodType
*/
public InitMethodType removeBeanMethod();
// --------------------------------------------------------------------------------------------------------||
// ClassName: InitMethodType 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 InitMethodType
*/
public InitMethodType 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 InitMethodType
*/
public InitMethodType removeId();
}