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

All Superinterfaces:
Child<T>

public interface RelationshipsType<T>
extends Child<T>

This interface defines the contract for the relationshipsType xsd type

Since:
Generation date :2013-01-26T19:26:58.657+01:00
Author:
Ralf Battenfeld, Andrew Lee Rubinger

Method Summary
 EjbRelationType<RelationshipsType<T>> createEjbRelation()
          Creates a new ejb-relation element
 RelationshipsType<T> description(String... values)
          Creates for all String objects representing description elements, a new description element
 List<String> getAllDescription()
          Returns all description elements
 List<EjbRelationType<RelationshipsType<T>>> getAllEjbRelation()
          Returns all ejb-relation elements
 String getId()
          Returns the id attribute
 EjbRelationType<RelationshipsType<T>> getOrCreateEjbRelation()
          If not already created, a new ejb-relation element will be created and returned.
 RelationshipsType<T> id(String id)
          Sets the id attribute
 RelationshipsType<T> removeAllDescription()
          Removes the description element
 RelationshipsType<T> removeAllEjbRelation()
          Removes all ejb-relation elements
 RelationshipsType<T> removeId()
          Removes the id attribute
 
Methods inherited from interface org.jboss.shrinkwrap.descriptor.api.Child
up
 

Method Detail

description

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

getAllDescription

List<String> getAllDescription()
Returns all description elements

Returns:
list of description

removeAllDescription

RelationshipsType<T> removeAllDescription()
Removes the description element

Returns:
the current instance of RelationshipsType

getOrCreateEjbRelation

EjbRelationType<RelationshipsType<T>> getOrCreateEjbRelation()
If not already created, a new ejb-relation element will be created and returned. Otherwise, the first existing ejb-relation element will be returned.

Returns:
the instance defined for the element ejb-relation

createEjbRelation

EjbRelationType<RelationshipsType<T>> createEjbRelation()
Creates a new ejb-relation element

Returns:
the new created instance of EjbRelationType>

getAllEjbRelation

List<EjbRelationType<RelationshipsType<T>>> getAllEjbRelation()
Returns all ejb-relation elements

Returns:
list of ejb-relation

removeAllEjbRelation

RelationshipsType<T> removeAllEjbRelation()
Removes all ejb-relation elements

Returns:
the current instance of EjbRelationType>

id

RelationshipsType<T> id(String id)
Sets the id attribute

Parameters:
id - the value for the attribute id
Returns:
the current instance of RelationshipsType

getId

String getId()
Returns the id attribute

Returns:
the value defined for the attribute id

removeId

RelationshipsType<T> removeId()
Removes the id attribute

Returns:
the current instance of RelationshipsType


Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.