ShrinkWrap Descriptors Generated Java EE API 2.0.0-alpha-3

org.jboss.shrinkwrap.descriptor.api.ejbjar30
Interface EjbRelationType<T>

All Superinterfaces:
Child<T>

public interface EjbRelationType<T>
extends Child<T>

This interface defines the contract for the ejb-relationType xsd type

Since:
Generation date :2012-05-09T23:45:03.702-07:00
Author:
Ralf Battenfeld, Andrew Lee Rubinger

Method Summary
 EjbRelationshipRoleType<EjbRelationType<T>> createEjbRelationshipRole()
          Creates a new ejb-relationship-role element
 EjbRelationType<T> description(String... values)
          Creates for all String objects representing description elements, a new description element
 EjbRelationType<T> ejbRelationName(String ejbRelationName)
          Sets the ejb-relation-name element
 List<String> getAllDescription()
          Returns all description elements
 List<EjbRelationshipRoleType<EjbRelationType<T>>> getAllEjbRelationshipRole()
          Returns all ejb-relationship-role elements
 String getEjbRelationName()
          Returns the ejb-relation-name element
 EjbRelationshipRoleType<EjbRelationType<T>> getOrCreateEjbRelationshipRole()
          If not already created, a new ejb-relationship-role element will be created and returned.
 EjbRelationType<T> removeAllDescription()
          Removes the description element
 EjbRelationType<T> removeAllEjbRelationshipRole()
          Removes all ejb-relationship-role elements
 EjbRelationType<T> removeEjbRelationName()
          Removes the ejb-relation-name element
 
Methods inherited from interface org.jboss.shrinkwrap.descriptor.api.Child
up
 

Method Detail

description

EjbRelationType<T> description(String... values)
Creates for all String objects representing description elements, a new description element

Parameters:
values - list of description objects
Returns:
the current instance of EjbRelationType

getAllDescription

List<String> getAllDescription()
Returns all description elements

Returns:
list of description

removeAllDescription

EjbRelationType<T> removeAllDescription()
Removes the description element

Returns:
the current instance of EjbRelationType

ejbRelationName

EjbRelationType<T> ejbRelationName(String ejbRelationName)
Sets the ejb-relation-name element

Parameters:
ejbRelationName - the value for the element ejb-relation-name
Returns:
the current instance of EjbRelationType

getEjbRelationName

String getEjbRelationName()
Returns the ejb-relation-name element

Returns:
the node defined for the element ejb-relation-name

removeEjbRelationName

EjbRelationType<T> removeEjbRelationName()
Removes the ejb-relation-name element

Returns:
the current instance of EjbRelationType

getOrCreateEjbRelationshipRole

EjbRelationshipRoleType<EjbRelationType<T>> getOrCreateEjbRelationshipRole()
If not already created, a new ejb-relationship-role element will be created and returned. Otherwise, the first existing ejb-relationship-role element will be returned.

Returns:
the instance defined for the element ejb-relationship-role

createEjbRelationshipRole

EjbRelationshipRoleType<EjbRelationType<T>> createEjbRelationshipRole()
Creates a new ejb-relationship-role element

Returns:
the new created instance of EjbRelationshipRoleType>

getAllEjbRelationshipRole

List<EjbRelationshipRoleType<EjbRelationType<T>>> getAllEjbRelationshipRole()
Returns all ejb-relationship-role elements

Returns:
list of ejb-relationship-role

removeAllEjbRelationshipRole

EjbRelationType<T> removeAllEjbRelationshipRole()
Removes all ejb-relationship-role elements

Returns:
the current instance of EjbRelationshipRoleType>

ShrinkWrap Descriptors Generated Java EE API 2.0.0-alpha-3

Copyright © 2012 JBoss by Red Hat. All Rights Reserved.