ShrinkWrap Descriptors Generated Java EE API 2.0.0-alpha-3

org.jboss.shrinkwrap.descriptor.api.ejbjar31
Interface EjbRelationshipRoleType<T>

All Superinterfaces:
Child<T>

public interface EjbRelationshipRoleType<T>
extends Child<T>

This interface defines the contract for the ejb-relationship-roleType xsd type

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

Method Summary
 EjbRelationshipRoleType<T> cascadeDelete()
          Sets the cascade-delete element
 EjbRelationshipRoleType<T> description(String... values)
          Creates for all String objects representing description elements, a new description element
 EjbRelationshipRoleType<T> ejbRelationshipRoleName(String ejbRelationshipRoleName)
          Sets the ejb-relationship-role-name element
 List<String> getAllDescription()
          Returns all description elements
 String getEjbRelationshipRoleName()
          Returns the ejb-relationship-role-name element
 MultiplicityType getMultiplicity()
          Returns the multiplicity element
 String getMultiplicityAsString()
          Returns the multiplicity element
 CmrFieldType<EjbRelationshipRoleType<T>> getOrCreateCmrField()
          If not already created, a new cmr-field element with the given value will be created.
 RelationshipRoleSourceType<EjbRelationshipRoleType<T>> getOrCreateRelationshipRoleSource()
          If not already created, a new relationship-role-source element with the given value will be created.
 Boolean isCascadeDelete()
          Removes the cascade-delete element
 EjbRelationshipRoleType<T> multiplicity(MultiplicityType multiplicity)
          Sets the multiplicity element
 EjbRelationshipRoleType<T> multiplicity(String multiplicity)
          Sets the multiplicity element
 EjbRelationshipRoleType<T> removeAllDescription()
          Removes the description element
 EjbRelationshipRoleType<T> removeCascadeDelete()
          Removes the cascade-delete element
 EjbRelationshipRoleType<T> removeCmrField()
          Removes the cmr-field element
 EjbRelationshipRoleType<T> removeEjbRelationshipRoleName()
          Removes the ejb-relationship-role-name element
 EjbRelationshipRoleType<T> removeMultiplicity()
          Removes the multiplicity attribute
 EjbRelationshipRoleType<T> removeRelationshipRoleSource()
          Removes the relationship-role-source element
 
Methods inherited from interface org.jboss.shrinkwrap.descriptor.api.Child
up
 

Method Detail

description

EjbRelationshipRoleType<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 EjbRelationshipRoleType

getAllDescription

List<String> getAllDescription()
Returns all description elements

Returns:
list of description

removeAllDescription

EjbRelationshipRoleType<T> removeAllDescription()
Removes the description element

Returns:
the current instance of EjbRelationshipRoleType

ejbRelationshipRoleName

EjbRelationshipRoleType<T> ejbRelationshipRoleName(String ejbRelationshipRoleName)
Sets the ejb-relationship-role-name element

Parameters:
ejbRelationshipRoleName - the value for the element ejb-relationship-role-name
Returns:
the current instance of EjbRelationshipRoleType

getEjbRelationshipRoleName

String getEjbRelationshipRoleName()
Returns the ejb-relationship-role-name element

Returns:
the node defined for the element ejb-relationship-role-name

removeEjbRelationshipRoleName

EjbRelationshipRoleType<T> removeEjbRelationshipRoleName()
Removes the ejb-relationship-role-name element

Returns:
the current instance of EjbRelationshipRoleType

multiplicity

EjbRelationshipRoleType<T> multiplicity(MultiplicityType multiplicity)
Sets the multiplicity element

Parameters:
multiplicity - the value for the element multiplicity
Returns:
the current instance of EjbRelationshipRoleType

multiplicity

EjbRelationshipRoleType<T> multiplicity(String multiplicity)
Sets the multiplicity element

Parameters:
multiplicity - the value for the element multiplicity
Returns:
the current instance of EjbRelationshipRoleType

getMultiplicity

MultiplicityType getMultiplicity()
Returns the multiplicity element

Returns:
the value found for the element multiplicity

getMultiplicityAsString

String getMultiplicityAsString()
Returns the multiplicity element

Returns:
the value found for the element multiplicity

removeMultiplicity

EjbRelationshipRoleType<T> removeMultiplicity()
Removes the multiplicity attribute

Returns:
the current instance of EjbRelationshipRoleType

cascadeDelete

EjbRelationshipRoleType<T> cascadeDelete()
Sets the cascade-delete element

Returns:
the current instance of EjbRelationshipRoleType

isCascadeDelete

Boolean isCascadeDelete()
Removes the cascade-delete element

Returns:
the current instance of EjbRelationshipRoleType

removeCascadeDelete

EjbRelationshipRoleType<T> removeCascadeDelete()
Removes the cascade-delete element

Returns:
the current instance of EjbRelationshipRoleType

getOrCreateRelationshipRoleSource

RelationshipRoleSourceType<EjbRelationshipRoleType<T>> getOrCreateRelationshipRoleSource()
If not already created, a new relationship-role-source element with the given value will be created. Otherwise, the existing relationship-role-source element will be returned.

Returns:
a new or existing instance of RelationshipRoleSourceType>

removeRelationshipRoleSource

EjbRelationshipRoleType<T> removeRelationshipRoleSource()
Removes the relationship-role-source element

Returns:
the current instance of EjbRelationshipRoleType

getOrCreateCmrField

CmrFieldType<EjbRelationshipRoleType<T>> getOrCreateCmrField()
If not already created, a new cmr-field element with the given value will be created. Otherwise, the existing cmr-field element will be returned.

Returns:
a new or existing instance of CmrFieldType>

removeCmrField

EjbRelationshipRoleType<T> removeCmrField()
Removes the cmr-field element

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.