All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jboss.shrinkwrap.descriptor.api.ejbjar30.EnterpriseBeansType Maven / Gradle / Ivy

package org.jboss.shrinkwrap.descriptor.api.ejbjar30; 

import java.util.ArrayList;
import java.util.List;
import org.jboss.shrinkwrap.descriptor.api.Child;
import org.jboss.shrinkwrap.descriptor.api.ejbjar30.SessionBeanType;
import org.jboss.shrinkwrap.descriptor.api.ejbjar30.EntityBeanType;
import org.jboss.shrinkwrap.descriptor.api.ejbjar30.MessageDrivenBeanType;
import org.jboss.shrinkwrap.descriptor.api.ejbjar.*;
import org.jboss.shrinkwrap.descriptor.api.ejbjar.JavaeeEnterpriseBeansCommonType;

import org.jboss.shrinkwrap.descriptor.api.ejbjar30.SessionBeanType;
import org.jboss.shrinkwrap.descriptor.api.ejbjar30.EntityBeanType;
import org.jboss.shrinkwrap.descriptor.api.ejbjar30.MessageDrivenBeanType;/**
 * This interface defines the contract for the  enterprise-beansType  xsd type 
 * @author Ralf Battenfeld
 * @author Andrew Lee Rubinger
 * @author George Gastaldi
 */
public interface EnterpriseBeansType extends Child, 
    JavaeeEnterpriseBeansCommonType,
    SessionBeanType>,
    EntityBeanType>,
    MessageDrivenBeanType>> { 

 
   // --------------------------------------------------------------------------------------------------------||
   // ClassName: EnterpriseBeansType ElementName: javaee:session-beanType ElementType : session
   // MaxOccurs: -unbounded  isGeneric: true   isAttribute: false isEnum: false isDataType: false
   // --------------------------------------------------------------------------------------------------------||

   /**
    * If not already created, a new session element will be created and returned.
    * Otherwise, the first existing session element will be returned.
    * @return the instance defined for the element session 
    */
   public SessionBeanType> getOrCreateSession();

   /**
    * Creates a new session element 
    * @return the new created instance of SessionBeanType> 
    */
   public SessionBeanType> createSession();

   /**
    * Returns all session elements
    * @return list of session 
    */
   public List>> getAllSession();

   /**
    * Removes all session elements 
    * @return the current instance of SessionBeanType> 
    */
   public EnterpriseBeansType removeAllSession();

 
   // --------------------------------------------------------------------------------------------------------||
   // ClassName: EnterpriseBeansType ElementName: javaee:entity-beanType ElementType : entity
   // MaxOccurs: -unbounded  isGeneric: true   isAttribute: false isEnum: false isDataType: false
   // --------------------------------------------------------------------------------------------------------||

   /**
    * If not already created, a new entity element will be created and returned.
    * Otherwise, the first existing entity element will be returned.
    * @return the instance defined for the element entity 
    */
   public EntityBeanType> getOrCreateEntity();

   /**
    * Creates a new entity element 
    * @return the new created instance of EntityBeanType> 
    */
   public EntityBeanType> createEntity();

   /**
    * Returns all entity elements
    * @return list of entity 
    */
   public List>> getAllEntity();

   /**
    * Removes all entity elements 
    * @return the current instance of EntityBeanType> 
    */
   public EnterpriseBeansType removeAllEntity();

 
   // --------------------------------------------------------------------------------------------------------||
   // ClassName: EnterpriseBeansType ElementName: javaee:message-driven-beanType ElementType : message-driven
   // MaxOccurs: -unbounded  isGeneric: true   isAttribute: false isEnum: false isDataType: false
   // --------------------------------------------------------------------------------------------------------||

   /**
    * If not already created, a new message-driven element will be created and returned.
    * Otherwise, the first existing message-driven element will be returned.
    * @return the instance defined for the element message-driven 
    */
   public MessageDrivenBeanType> getOrCreateMessageDriven();

   /**
    * Creates a new message-driven element 
    * @return the new created instance of MessageDrivenBeanType> 
    */
   public MessageDrivenBeanType> createMessageDriven();

   /**
    * Returns all message-driven elements
    * @return list of message-driven 
    */
   public List>> getAllMessageDriven();

   /**
    * Removes all message-driven elements 
    * @return the current instance of MessageDrivenBeanType> 
    */
   public EnterpriseBeansType removeAllMessageDriven();

 
   // --------------------------------------------------------------------------------------------------------||
   // ClassName: EnterpriseBeansType 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 EnterpriseBeansType 
    */
   public EnterpriseBeansType 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 EnterpriseBeansType 
    */
   public EnterpriseBeansType removeId();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy