org.jboss.shrinkwrap.descriptor.api.javaee5.EjbRefType Maven / Gradle / Ivy
package org.jboss.shrinkwrap.descriptor.api.javaee5;
import java.util.ArrayList;
import java.util.List;
import org.jboss.shrinkwrap.descriptor.api.Child;
import org.jboss.shrinkwrap.descriptor.api.javaee5.EjbRefTypeType;
import org.jboss.shrinkwrap.descriptor.api.javaee5.InjectionTargetType;
import org.jboss.shrinkwrap.descriptor.api.javaee.*;
/**
* This interface defines the contract for the ejb-refType
xsd type
* @author Ralf Battenfeld
* @author Andrew Lee Rubinger
* @author George Gastaldi
*/
public interface EjbRefType extends Child,
JavaeeEjbRefCommonType> {
// --------------------------------------------------------------------------------------------------------||
// ClassName: EjbRefType ElementName: xsd:string ElementType : mapped-name
// MaxOccurs: - isGeneric: true isAttribute: false isEnum: false isDataType: true
// --------------------------------------------------------------------------------------------------------||
/**
* Sets the mapped-name
element
* @param mappedName the value for the element mapped-name
* @return the current instance of EjbRefType
*/
public EjbRefType mappedName(String mappedName);
/**
* Returns the mapped-name
element
* @return the node defined for the element mapped-name
*/
public String getMappedName();
/**
* Removes the mapped-name
element
* @return the current instance of EjbRefType
*/
public EjbRefType removeMappedName();
// --------------------------------------------------------------------------------------------------------||
// ClassName: EjbRefType ElementName: javaee:injection-targetType ElementType : injection-target
// MaxOccurs: -unbounded isGeneric: true isAttribute: false isEnum: false isDataType: false
// --------------------------------------------------------------------------------------------------------||
/**
* If not already created, a new injection-target
element will be created and returned.
* Otherwise, the first existing injection-target
element will be returned.
* @return the instance defined for the element injection-target
*/
public InjectionTargetType> getOrCreateInjectionTarget();
/**
* Creates a new injection-target
element
* @return the new created instance of InjectionTargetType>
*/
public InjectionTargetType> createInjectionTarget();
/**
* Returns all injection-target
elements
* @return list of injection-target
*/
public List>> getAllInjectionTarget();
/**
* Removes all injection-target
elements
* @return the current instance of InjectionTargetType>
*/
public EjbRefType removeAllInjectionTarget();
// --------------------------------------------------------------------------------------------------------||
// ClassName: EjbRefType 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 EjbRefType
*/
public EjbRefType description(String ... values);
/**
* Returns all description
elements
* @return list of description
*/
public List getAllDescription();
/**
* Removes the description
element
* @return the current instance of EjbRefType
*/
public EjbRefType removeAllDescription();
// --------------------------------------------------------------------------------------------------------||
// ClassName: EjbRefType ElementName: xsd:token ElementType : ejb-ref-name
// MaxOccurs: - isGeneric: true isAttribute: false isEnum: false isDataType: true
// --------------------------------------------------------------------------------------------------------||
/**
* Sets the ejb-ref-name
element
* @param ejbRefName the value for the element ejb-ref-name
* @return the current instance of EjbRefType
*/
public EjbRefType ejbRefName(String ejbRefName);
/**
* Returns the ejb-ref-name
element
* @return the node defined for the element ejb-ref-name
*/
public String getEjbRefName();
/**
* Removes the ejb-ref-name
element
* @return the current instance of EjbRefType
*/
public EjbRefType removeEjbRefName();
// --------------------------------------------------------------------------------------------------------||
// ClassName: EjbRefType ElementName: javaee:ejb-ref-typeType ElementType : ejb-ref-type
// MaxOccurs: - isGeneric: true isAttribute: false isEnum: true isDataType: false
// --------------------------------------------------------------------------------------------------------||
/**
* Sets the ejb-ref-type
element
* @param ejbRefType the value for the element ejb-ref-type
* @return the current instance of EjbRefType
*/
public EjbRefType ejbRefType(EjbRefTypeType ejbRefType);
/**
* Sets the ejb-ref-type
element
* @param ejbRefType the value for the element ejb-ref-type
* @return the current instance of EjbRefType
*/
public EjbRefType ejbRefType(String ejbRefType);
/**
* Returns the ejb-ref-type
element
* @return the value found for the element ejb-ref-type
*/
public EjbRefTypeType getEjbRefType();
/**
* Returns the ejb-ref-type
element
* @return the value found for the element ejb-ref-type
*/
public String getEjbRefTypeAsString();
/**
* Removes the ejb-ref-type
attribute
* @return the current instance of EjbRefType
*/
public EjbRefType removeEjbRefType();
// --------------------------------------------------------------------------------------------------------||
// ClassName: EjbRefType ElementName: javaee:fully-qualified-classType ElementType : home
// MaxOccurs: - isGeneric: true isAttribute: false isEnum: false isDataType: true
// --------------------------------------------------------------------------------------------------------||
/**
* Sets the home
element
* @param home the value for the element home
* @return the current instance of EjbRefType
*/
public EjbRefType home(String home);
/**
* Returns the home
element
* @return the node defined for the element home
*/
public String getHome();
/**
* Removes the home
element
* @return the current instance of EjbRefType
*/
public EjbRefType removeHome();
// --------------------------------------------------------------------------------------------------------||
// ClassName: EjbRefType ElementName: javaee:fully-qualified-classType ElementType : remote
// MaxOccurs: - isGeneric: true isAttribute: false isEnum: false isDataType: true
// --------------------------------------------------------------------------------------------------------||
/**
* Sets the remote
element
* @param remote the value for the element remote
* @return the current instance of EjbRefType
*/
public EjbRefType remote(String remote);
/**
* Returns the remote
element
* @return the node defined for the element remote
*/
public String getRemote();
/**
* Removes the remote
element
* @return the current instance of EjbRefType
*/
public EjbRefType removeRemote();
// --------------------------------------------------------------------------------------------------------||
// ClassName: EjbRefType ElementName: xsd:token ElementType : ejb-link
// MaxOccurs: - isGeneric: true isAttribute: false isEnum: false isDataType: true
// --------------------------------------------------------------------------------------------------------||
/**
* Sets the ejb-link
element
* @param ejbLink the value for the element ejb-link
* @return the current instance of EjbRefType
*/
public EjbRefType ejbLink(String ejbLink);
/**
* Returns the ejb-link
element
* @return the node defined for the element ejb-link
*/
public String getEjbLink();
/**
* Removes the ejb-link
element
* @return the current instance of EjbRefType
*/
public EjbRefType removeEjbLink();
// --------------------------------------------------------------------------------------------------------||
// ClassName: EjbRefType 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 EjbRefType
*/
public EjbRefType 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 EjbRefType
*/
public EjbRefType removeId();
}