Class EjbRefTypeImpl<T>
java.lang.Object
org.jboss.shrinkwrap.descriptor.impl.javaee7.EjbRefTypeImpl<T>
- All Implemented Interfaces:
org.jboss.shrinkwrap.descriptor.api.Child<T>,EjbRefType<T>
public class EjbRefTypeImpl<T>
extends Object
implements org.jboss.shrinkwrap.descriptor.api.Child<T>, EjbRefType<T>
This class implements the
ejb-refType xsd type-
Constructor Summary
ConstructorsConstructorDescriptionEjbRefTypeImpl(T t, String nodeName, org.jboss.shrinkwrap.descriptor.spi.node.Node node) EjbRefTypeImpl(T t, String nodeName, org.jboss.shrinkwrap.descriptor.spi.node.Node node, org.jboss.shrinkwrap.descriptor.spi.node.Node childNode) -
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 theremoteelementup()
-
Constructor Details
-
EjbRefTypeImpl
-
EjbRefTypeImpl
-
-
Method Details
-
up
- Specified by:
upin interfaceorg.jboss.shrinkwrap.descriptor.api.Child<T>
-
lookupName
Sets thelookup-nameelement- Specified by:
lookupNamein interfaceEjbRefType<T>- Parameters:
lookupName- the value for the elementlookup-name- Returns:
- the current instance of
EjbRefType
-
getLookupName
Returns thelookup-nameelement- Specified by:
getLookupNamein interfaceEjbRefType<T>- Returns:
- the node defined for the element
lookup-name
-
removeLookupName
Removes thelookup-nameelement- Specified by:
removeLookupNamein interfaceEjbRefType<T>- Returns:
- the current instance of
EjbRefType
-
mappedName
Sets themapped-nameelement- Specified by:
mappedNamein interfaceEjbRefType<T>- Parameters:
mappedName- the value for the elementmapped-name- Returns:
- the current instance of
EjbRefType
-
getMappedName
Returns themapped-nameelement- Specified by:
getMappedNamein interfaceEjbRefType<T>- Returns:
- the node defined for the element
mapped-name
-
removeMappedName
Removes themapped-nameelement- Specified by:
removeMappedNamein interfaceEjbRefType<T>- Returns:
- the current instance of
EjbRefType
-
getOrCreateInjectionTarget
If not already created, a newinjection-targetelement will be created and returned. Otherwise, the first existinginjection-targetelement will be returned.- Specified by:
getOrCreateInjectionTargetin interfaceEjbRefType<T>- Returns:
- the instance defined for the element
injection-target
-
createInjectionTarget
Creates a newinjection-targetelement- Specified by:
createInjectionTargetin interfaceEjbRefType<T>- Returns:
- the new created instance of
InjectionTargetType<EjbRefType>
-
getAllInjectionTarget
Returns allinjection-targetelements- Specified by:
getAllInjectionTargetin interfaceEjbRefType<T>- Returns:
- list of
injection-target
-
removeAllInjectionTarget
Removes allinjection-targetelements- Specified by:
removeAllInjectionTargetin interfaceEjbRefType<T>- Returns:
- the current instance of
InjectionTargetType<EjbRefType>
-
description
Creates for all String objects representingdescriptionelements, a newdescriptionelement- Specified by:
descriptionin interfaceEjbRefType<T>- Parameters:
values- list ofdescriptionobjects- Returns:
- the current instance of
EjbRefType
-
getAllDescription
Returns alldescriptionelements- Specified by:
getAllDescriptionin interfaceEjbRefType<T>- Returns:
- list of
description
-
removeAllDescription
Removes thedescriptionelement- Specified by:
removeAllDescriptionin interfaceEjbRefType<T>- Returns:
- the current instance of
EjbRefType
-
ejbRefName
Sets theejb-ref-nameelement- Specified by:
ejbRefNamein interfaceEjbRefType<T>- Parameters:
ejbRefName- the value for the elementejb-ref-name- Returns:
- the current instance of
EjbRefType
-
getEjbRefName
Returns theejb-ref-nameelement- Specified by:
getEjbRefNamein interfaceEjbRefType<T>- Returns:
- the node defined for the element
ejb-ref-name
-
removeEjbRefName
Removes theejb-ref-nameelement- Specified by:
removeEjbRefNamein interfaceEjbRefType<T>- Returns:
- the current instance of
EjbRefType
-
ejbRefType
Sets theejb-ref-typeelement- Specified by:
ejbRefTypein interfaceEjbRefType<T>- Parameters:
ejbRefType- the value for the elementejb-ref-type- Returns:
- the current instance of
EjbRefType
-
ejbRefType
Sets theejb-ref-typeelement- Specified by:
ejbRefTypein interfaceEjbRefType<T>- Parameters:
ejbRefType- the value for the elementejb-ref-type- Returns:
- the current instance of
EjbRefType
-
getEjbRefType
Returns theejb-ref-typeelement- Specified by:
getEjbRefTypein interfaceEjbRefType<T>- Returns:
- the value found for the element
ejb-ref-type
-
getEjbRefTypeAsString
Returns theejb-ref-typeelement- Specified by:
getEjbRefTypeAsStringin interfaceEjbRefType<T>- Returns:
- the value found for the element
ejb-ref-type
-
removeEjbRefType
Removes theejb-ref-typeattribute- Specified by:
removeEjbRefTypein interfaceEjbRefType<T>- Returns:
- the current instance of
EjbRefType
-
home
Sets thehomeelement- Specified by:
homein interfaceEjbRefType<T>- Parameters:
home- the value for the elementhome- Returns:
- the current instance of
EjbRefType
-
getHome
Returns thehomeelement- Specified by:
getHomein interfaceEjbRefType<T>- Returns:
- the node defined for the element
home
-
removeHome
Removes thehomeelement- Specified by:
removeHomein interfaceEjbRefType<T>- Returns:
- the current instance of
EjbRefType
-
remote
Sets theremoteelement- Specified by:
remotein interfaceEjbRefType<T>- Parameters:
remote- the value for the elementremote- Returns:
- the current instance of
EjbRefType
-
getRemote
Returns theremoteelement- Specified by:
getRemotein interfaceEjbRefType<T>- Returns:
- the node defined for the element
remote
-
removeRemote
Removes theremoteelement- Specified by:
removeRemotein interfaceEjbRefType<T>- Returns:
- the current instance of
EjbRefType
-
ejbLink
Sets theejb-linkelement- Specified by:
ejbLinkin interfaceEjbRefType<T>- Parameters:
ejbLink- the value for the elementejb-link- Returns:
- the current instance of
EjbRefType
-
getEjbLink
Returns theejb-linkelement- Specified by:
getEjbLinkin interfaceEjbRefType<T>- Returns:
- the node defined for the element
ejb-link
-
removeEjbLink
Removes theejb-linkelement- Specified by:
removeEjbLinkin interfaceEjbRefType<T>- Returns:
- the current instance of
EjbRefType
-
id
Sets theidattribute- Specified by:
idin interfaceEjbRefType<T>- Parameters:
id- the value for the attributeid- Returns:
- the current instance of
EjbRefType
-
getId
Returns theidattribute- Specified by:
getIdin interfaceEjbRefType<T>- Returns:
- the value defined for the attribute
id
-
removeId
Removes theidattribute- Specified by:
removeIdin interfaceEjbRefType<T>- Returns:
- the current instance of
EjbRefType
-