Interface EjbRefType<T>
- All Superinterfaces:
org.jboss.shrinkwrap.descriptor.api.Child<T>
- All Known Implementing Classes:
EjbRefTypeImpl
public interface EjbRefType<T>
extends org.jboss.shrinkwrap.descriptor.api.Child<T>
This interface defines the contract for the
ejb-refType xsd type-
Method Summary
Modifier and TypeMethodDescriptionCreates a newinjection-targetelementdescription(String... values) Creates for all String objects representingdescriptionelements, a newdescriptionelementSets theejb-linkelementejbRefName(String ejbRefName) Sets theejb-ref-nameelementejbRefType(String ejbRefType) Sets theejb-ref-typeelementejbRefType(EjbRefTypeType ejbRefType) Sets theejb-ref-typeelementReturns alldescriptionelementsReturns allinjection-targetelementsReturns theejb-linkelementReturns theejb-ref-nameelementReturns theejb-ref-typeelementReturns theejb-ref-typeelementgetHome()Returns thehomeelementgetId()Returns theidattributeReturns thelookup-nameelementReturns themapped-nameelementIf not already created, a newinjection-targetelement will be created and returned.Returns theremoteelementSets thehomeelementSets theidattributelookupName(String lookupName) Sets thelookup-nameelementmappedName(String mappedName) Sets themapped-nameelementSets theremoteelementRemoves thedescriptionelementRemoves allinjection-targetelementsRemoves theejb-linkelementRemoves theejb-ref-nameelementRemoves theejb-ref-typeattributeRemoves thehomeelementremoveId()Removes theidattributeRemoves thelookup-nameelementRemoves themapped-nameelementRemoves theremoteelementMethods inherited from interface org.jboss.shrinkwrap.descriptor.api.Child
up
-
Method Details
-
lookupName
Sets thelookup-nameelement- Parameters:
lookupName- the value for the elementlookup-name- Returns:
- the current instance of
EjbRefType
-
getLookupName
String getLookupName()Returns thelookup-nameelement- Returns:
- the node defined for the element
lookup-name
-
removeLookupName
EjbRefType<T> removeLookupName()Removes thelookup-nameelement- Returns:
- the current instance of
EjbRefType
-
mappedName
Sets themapped-nameelement- Parameters:
mappedName- the value for the elementmapped-name- Returns:
- the current instance of
EjbRefType
-
getMappedName
String getMappedName()Returns themapped-nameelement- Returns:
- the node defined for the element
mapped-name
-
removeMappedName
EjbRefType<T> removeMappedName()Removes themapped-nameelement- Returns:
- the current instance of
EjbRefType
-
getOrCreateInjectionTarget
InjectionTargetType<EjbRefType<T>> getOrCreateInjectionTarget()If not already created, a newinjection-targetelement will be created and returned. Otherwise, the first existinginjection-targetelement will be returned.- Returns:
- the instance defined for the element
injection-target
-
createInjectionTarget
InjectionTargetType<EjbRefType<T>> createInjectionTarget()Creates a newinjection-targetelement- Returns:
- the new created instance of
InjectionTargetType<EjbRefType>
-
getAllInjectionTarget
List<InjectionTargetType<EjbRefType<T>>> getAllInjectionTarget()Returns allinjection-targetelements- Returns:
- list of
injection-target
-
removeAllInjectionTarget
EjbRefType<T> removeAllInjectionTarget()Removes allinjection-targetelements- Returns:
- the current instance of
InjectionTargetType<EjbRefType>
-
description
Creates for all String objects representingdescriptionelements, a newdescriptionelement- Parameters:
values- list ofdescriptionobjects- Returns:
- the current instance of
EjbRefType
-
getAllDescription
Returns alldescriptionelements- Returns:
- list of
description
-
removeAllDescription
EjbRefType<T> removeAllDescription()Removes thedescriptionelement- Returns:
- the current instance of
EjbRefType
-
ejbRefName
Sets theejb-ref-nameelement- Parameters:
ejbRefName- the value for the elementejb-ref-name- Returns:
- the current instance of
EjbRefType
-
getEjbRefName
String getEjbRefName()Returns theejb-ref-nameelement- Returns:
- the node defined for the element
ejb-ref-name
-
removeEjbRefName
EjbRefType<T> removeEjbRefName()Removes theejb-ref-nameelement- Returns:
- the current instance of
EjbRefType
-
ejbRefType
Sets theejb-ref-typeelement- Parameters:
ejbRefType- the value for the elementejb-ref-type- Returns:
- the current instance of
EjbRefType
-
ejbRefType
Sets theejb-ref-typeelement- Parameters:
ejbRefType- the value for the elementejb-ref-type- Returns:
- the current instance of
EjbRefType
-
getEjbRefType
EjbRefTypeType getEjbRefType()Returns theejb-ref-typeelement- Returns:
- the value found for the element
ejb-ref-type
-
getEjbRefTypeAsString
String getEjbRefTypeAsString()Returns theejb-ref-typeelement- Returns:
- the value found for the element
ejb-ref-type
-
removeEjbRefType
EjbRefType<T> removeEjbRefType()Removes theejb-ref-typeattribute- Returns:
- the current instance of
EjbRefType
-
home
Sets thehomeelement- Parameters:
home- the value for the elementhome- Returns:
- the current instance of
EjbRefType
-
getHome
String getHome()Returns thehomeelement- Returns:
- the node defined for the element
home
-
removeHome
EjbRefType<T> removeHome()Removes thehomeelement- Returns:
- the current instance of
EjbRefType
-
remote
Sets theremoteelement- Parameters:
remote- the value for the elementremote- Returns:
- the current instance of
EjbRefType
-
getRemote
String getRemote()Returns theremoteelement- Returns:
- the node defined for the element
remote
-
removeRemote
EjbRefType<T> removeRemote()Removes theremoteelement- Returns:
- the current instance of
EjbRefType
-
ejbLink
Sets theejb-linkelement- Parameters:
ejbLink- the value for the elementejb-link- Returns:
- the current instance of
EjbRefType
-
getEjbLink
String getEjbLink()Returns theejb-linkelement- Returns:
- the node defined for the element
ejb-link
-
removeEjbLink
EjbRefType<T> removeEjbLink()Removes theejb-linkelement- Returns:
- the current instance of
EjbRefType
-
id
Sets theidattribute- Parameters:
id- the value for the attributeid- Returns:
- the current instance of
EjbRefType
-
getId
String getId()Returns theidattribute- Returns:
- the value defined for the attribute
id
-
removeId
EjbRefType<T> removeId()Removes theidattribute- Returns:
- the current instance of
EjbRefType
-