Class EjbLocalRefTypeImpl<T>
- java.lang.Object
-
- org.jboss.shrinkwrap.descriptor.impl.javaee6.EjbLocalRefTypeImpl<T>
-
- All Implemented Interfaces:
org.jboss.shrinkwrap.descriptor.api.Child<T>,EjbLocalRefType<T>
public class EjbLocalRefTypeImpl<T> extends Object implements org.jboss.shrinkwrap.descriptor.api.Child<T>, EjbLocalRefType<T>
This class implements theejb-local-refTypexsd type
-
-
Constructor Summary
Constructors Constructor Description EjbLocalRefTypeImpl(T t, String nodeName, org.jboss.shrinkwrap.descriptor.spi.node.Node node)EjbLocalRefTypeImpl(T t, String nodeName, org.jboss.shrinkwrap.descriptor.spi.node.Node node, org.jboss.shrinkwrap.descriptor.spi.node.Node childNode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InjectionTargetType<EjbLocalRefType<T>>createInjectionTarget()Creates a newinjection-targetelementEjbLocalRefType<T>description(String... values)Creates for all String objects representingdescriptionelements, a newdescriptionelementEjbLocalRefType<T>ejbLink(String ejbLink)Sets theejb-linkelementEjbLocalRefType<T>ejbRefName(String ejbRefName)Sets theejb-ref-nameelementEjbLocalRefType<T>ejbRefType(String ejbRefType)Sets theejb-ref-typeelementEjbLocalRefType<T>ejbRefType(EjbRefTypeType ejbRefType)Sets theejb-ref-typeelementList<String>getAllDescription()Returns alldescriptionelementsList<InjectionTargetType<EjbLocalRefType<T>>>getAllInjectionTarget()Returns allinjection-targetelementsStringgetEjbLink()Returns theejb-linkelementStringgetEjbRefName()Returns theejb-ref-nameelementEjbRefTypeTypegetEjbRefType()Returns theejb-ref-typeelementStringgetEjbRefTypeAsString()Returns theejb-ref-typeelementStringgetId()Returns theidattributeStringgetLocal()Returns thelocalelementStringgetLocalHome()Returns thelocal-homeelementStringgetLookupName()Returns thelookup-nameelementStringgetMappedName()Returns themapped-nameelementInjectionTargetType<EjbLocalRefType<T>>getOrCreateInjectionTarget()If not already created, a newinjection-targetelement will be created and returned.EjbLocalRefType<T>id(String id)Sets theidattributeEjbLocalRefType<T>local(String local)Sets thelocalelementEjbLocalRefType<T>localHome(String localHome)Sets thelocal-homeelementEjbLocalRefType<T>lookupName(String lookupName)Sets thelookup-nameelementEjbLocalRefType<T>mappedName(String mappedName)Sets themapped-nameelementEjbLocalRefType<T>removeAllDescription()Removes thedescriptionelementEjbLocalRefType<T>removeAllInjectionTarget()Removes allinjection-targetelementsEjbLocalRefType<T>removeEjbLink()Removes theejb-linkelementEjbLocalRefType<T>removeEjbRefName()Removes theejb-ref-nameelementEjbLocalRefType<T>removeEjbRefType()Removes theejb-ref-typeattributeEjbLocalRefType<T>removeId()Removes theidattributeEjbLocalRefType<T>removeLocal()Removes thelocalelementEjbLocalRefType<T>removeLocalHome()Removes thelocal-homeelementEjbLocalRefType<T>removeLookupName()Removes thelookup-nameelementEjbLocalRefType<T>removeMappedName()Removes themapped-nameelementTup()
-
-
-
Method Detail
-
lookupName
public EjbLocalRefType<T> lookupName(String lookupName)
Sets thelookup-nameelement- Specified by:
lookupNamein interfaceEjbLocalRefType<T>- Parameters:
lookupName- the value for the elementlookup-name- Returns:
- the current instance of
EjbLocalRefType
-
getLookupName
public String getLookupName()
Returns thelookup-nameelement- Specified by:
getLookupNamein interfaceEjbLocalRefType<T>- Returns:
- the node defined for the element
lookup-name
-
removeLookupName
public EjbLocalRefType<T> removeLookupName()
Removes thelookup-nameelement- Specified by:
removeLookupNamein interfaceEjbLocalRefType<T>- Returns:
- the current instance of
EjbLocalRefType
-
mappedName
public EjbLocalRefType<T> mappedName(String mappedName)
Sets themapped-nameelement- Specified by:
mappedNamein interfaceEjbLocalRefType<T>- Parameters:
mappedName- the value for the elementmapped-name- Returns:
- the current instance of
EjbLocalRefType
-
getMappedName
public String getMappedName()
Returns themapped-nameelement- Specified by:
getMappedNamein interfaceEjbLocalRefType<T>- Returns:
- the node defined for the element
mapped-name
-
removeMappedName
public EjbLocalRefType<T> removeMappedName()
Removes themapped-nameelement- Specified by:
removeMappedNamein interfaceEjbLocalRefType<T>- Returns:
- the current instance of
EjbLocalRefType
-
getOrCreateInjectionTarget
public InjectionTargetType<EjbLocalRefType<T>> getOrCreateInjectionTarget()
If not already created, a newinjection-targetelement will be created and returned. Otherwise, the first existinginjection-targetelement will be returned.- Specified by:
getOrCreateInjectionTargetin interfaceEjbLocalRefType<T>- Returns:
- the instance defined for the element
injection-target
-
createInjectionTarget
public InjectionTargetType<EjbLocalRefType<T>> createInjectionTarget()
Creates a newinjection-targetelement- Specified by:
createInjectionTargetin interfaceEjbLocalRefType<T>- Returns:
- the new created instance of
InjectionTargetType>
-
getAllInjectionTarget
public List<InjectionTargetType<EjbLocalRefType<T>>> getAllInjectionTarget()
Returns allinjection-targetelements- Specified by:
getAllInjectionTargetin interfaceEjbLocalRefType<T>- Returns:
- list of
injection-target
-
removeAllInjectionTarget
public EjbLocalRefType<T> removeAllInjectionTarget()
Removes allinjection-targetelements- Specified by:
removeAllInjectionTargetin interfaceEjbLocalRefType<T>- Returns:
- the current instance of
InjectionTargetType>
-
description
public EjbLocalRefType<T> description(String... values)
Creates for all String objects representingdescriptionelements, a newdescriptionelement- Specified by:
descriptionin interfaceEjbLocalRefType<T>- Parameters:
values- list ofdescriptionobjects- Returns:
- the current instance of
EjbLocalRefType
-
getAllDescription
public List<String> getAllDescription()
Returns alldescriptionelements- Specified by:
getAllDescriptionin interfaceEjbLocalRefType<T>- Returns:
- list of
description
-
removeAllDescription
public EjbLocalRefType<T> removeAllDescription()
Removes thedescriptionelement- Specified by:
removeAllDescriptionin interfaceEjbLocalRefType<T>- Returns:
- the current instance of
EjbLocalRefType
-
ejbRefName
public EjbLocalRefType<T> ejbRefName(String ejbRefName)
Sets theejb-ref-nameelement- Specified by:
ejbRefNamein interfaceEjbLocalRefType<T>- Parameters:
ejbRefName- the value for the elementejb-ref-name- Returns:
- the current instance of
EjbLocalRefType
-
getEjbRefName
public String getEjbRefName()
Returns theejb-ref-nameelement- Specified by:
getEjbRefNamein interfaceEjbLocalRefType<T>- Returns:
- the node defined for the element
ejb-ref-name
-
removeEjbRefName
public EjbLocalRefType<T> removeEjbRefName()
Removes theejb-ref-nameelement- Specified by:
removeEjbRefNamein interfaceEjbLocalRefType<T>- Returns:
- the current instance of
EjbLocalRefType
-
ejbRefType
public EjbLocalRefType<T> ejbRefType(EjbRefTypeType ejbRefType)
Sets theejb-ref-typeelement- Specified by:
ejbRefTypein interfaceEjbLocalRefType<T>- Parameters:
ejbRefType- the value for the elementejb-ref-type- Returns:
- the current instance of
EjbLocalRefType
-
ejbRefType
public EjbLocalRefType<T> ejbRefType(String ejbRefType)
Sets theejb-ref-typeelement- Specified by:
ejbRefTypein interfaceEjbLocalRefType<T>- Parameters:
ejbRefType- the value for the elementejb-ref-type- Returns:
- the current instance of
EjbLocalRefType
-
getEjbRefType
public EjbRefTypeType getEjbRefType()
Returns theejb-ref-typeelement- Specified by:
getEjbRefTypein interfaceEjbLocalRefType<T>- Returns:
- the value found for the element
ejb-ref-type
-
getEjbRefTypeAsString
public String getEjbRefTypeAsString()
Returns theejb-ref-typeelement- Specified by:
getEjbRefTypeAsStringin interfaceEjbLocalRefType<T>- Returns:
- the value found for the element
ejb-ref-type
-
removeEjbRefType
public EjbLocalRefType<T> removeEjbRefType()
Removes theejb-ref-typeattribute- Specified by:
removeEjbRefTypein interfaceEjbLocalRefType<T>- Returns:
- the current instance of
EjbLocalRefType
-
localHome
public EjbLocalRefType<T> localHome(String localHome)
Sets thelocal-homeelement- Specified by:
localHomein interfaceEjbLocalRefType<T>- Parameters:
localHome- the value for the elementlocal-home- Returns:
- the current instance of
EjbLocalRefType
-
getLocalHome
public String getLocalHome()
Returns thelocal-homeelement- Specified by:
getLocalHomein interfaceEjbLocalRefType<T>- Returns:
- the node defined for the element
local-home
-
removeLocalHome
public EjbLocalRefType<T> removeLocalHome()
Removes thelocal-homeelement- Specified by:
removeLocalHomein interfaceEjbLocalRefType<T>- Returns:
- the current instance of
EjbLocalRefType
-
local
public EjbLocalRefType<T> local(String local)
Sets thelocalelement- Specified by:
localin interfaceEjbLocalRefType<T>- Parameters:
local- the value for the elementlocal- Returns:
- the current instance of
EjbLocalRefType
-
getLocal
public String getLocal()
Returns thelocalelement- Specified by:
getLocalin interfaceEjbLocalRefType<T>- Returns:
- the node defined for the element
local
-
removeLocal
public EjbLocalRefType<T> removeLocal()
Removes thelocalelement- Specified by:
removeLocalin interfaceEjbLocalRefType<T>- Returns:
- the current instance of
EjbLocalRefType
-
ejbLink
public EjbLocalRefType<T> ejbLink(String ejbLink)
Sets theejb-linkelement- Specified by:
ejbLinkin interfaceEjbLocalRefType<T>- Parameters:
ejbLink- the value for the elementejb-link- Returns:
- the current instance of
EjbLocalRefType
-
getEjbLink
public String getEjbLink()
Returns theejb-linkelement- Specified by:
getEjbLinkin interfaceEjbLocalRefType<T>- Returns:
- the node defined for the element
ejb-link
-
removeEjbLink
public EjbLocalRefType<T> removeEjbLink()
Removes theejb-linkelement- Specified by:
removeEjbLinkin interfaceEjbLocalRefType<T>- Returns:
- the current instance of
EjbLocalRefType
-
id
public EjbLocalRefType<T> id(String id)
Sets theidattribute- Specified by:
idin interfaceEjbLocalRefType<T>- Parameters:
id- the value for the attributeid- Returns:
- the current instance of
EjbLocalRefType
-
getId
public String getId()
Returns theidattribute- Specified by:
getIdin interfaceEjbLocalRefType<T>- Returns:
- the value defined for the attribute
id
-
removeId
public EjbLocalRefType<T> removeId()
Removes theidattribute- Specified by:
removeIdin interfaceEjbLocalRefType<T>- Returns:
- the current instance of
EjbLocalRefType
-
-