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 theejb-refTypexsd type
-
-
Constructor Summary
Constructors Constructor Description EjbRefTypeImpl(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InjectionTargetType<EjbRefType<T>>createInjectionTarget()Creates a newinjection-targetelementEjbRefType<T>description(String... values)Creates for all String objects representingdescriptionelements, a newdescriptionelementEjbRefType<T>ejbLink(String ejbLink)Sets theejb-linkelementEjbRefType<T>ejbRefName(String ejbRefName)Sets theejb-ref-nameelementEjbRefType<T>ejbRefType(String ejbRefType)Sets theejb-ref-typeelementEjbRefType<T>ejbRefType(EjbRefTypeType ejbRefType)Sets theejb-ref-typeelementList<String>getAllDescription()Returns alldescriptionelementsList<InjectionTargetType<EjbRefType<T>>>getAllInjectionTarget()Returns allinjection-targetelementsStringgetEjbLink()Returns theejb-linkelementStringgetEjbRefName()Returns theejb-ref-nameelementEjbRefTypeTypegetEjbRefType()Returns theejb-ref-typeelementStringgetEjbRefTypeAsString()Returns theejb-ref-typeelementStringgetHome()Returns thehomeelementStringgetId()Returns theidattributeStringgetLookupName()Returns thelookup-nameelementStringgetMappedName()Returns themapped-nameelementInjectionTargetType<EjbRefType<T>>getOrCreateInjectionTarget()If not already created, a newinjection-targetelement will be created and returned.StringgetRemote()Returns theremoteelementEjbRefType<T>home(String home)Sets thehomeelementEjbRefType<T>id(String id)Sets theidattributeEjbRefType<T>lookupName(String lookupName)Sets thelookup-nameelementEjbRefType<T>mappedName(String mappedName)Sets themapped-nameelementEjbRefType<T>remote(String remote)Sets theremoteelementEjbRefType<T>removeAllDescription()Removes thedescriptionelementEjbRefType<T>removeAllInjectionTarget()Removes allinjection-targetelementsEjbRefType<T>removeEjbLink()Removes theejb-linkelementEjbRefType<T>removeEjbRefName()Removes theejb-ref-nameelementEjbRefType<T>removeEjbRefType()Removes theejb-ref-typeattributeEjbRefType<T>removeHome()Removes thehomeelementEjbRefType<T>removeId()Removes theidattributeEjbRefType<T>removeLookupName()Removes thelookup-nameelementEjbRefType<T>removeMappedName()Removes themapped-nameelementEjbRefType<T>removeRemote()Removes theremoteelementTup()
-
-
-
Method Detail
-
lookupName
public EjbRefType<T> lookupName(String lookupName)
Sets thelookup-nameelement- Specified by:
lookupNamein interfaceEjbRefType<T>- Parameters:
lookupName- the value for the elementlookup-name- Returns:
- the current instance of
EjbRefType
-
getLookupName
public String getLookupName()
Returns thelookup-nameelement- Specified by:
getLookupNamein interfaceEjbRefType<T>- Returns:
- the node defined for the element
lookup-name
-
removeLookupName
public EjbRefType<T> removeLookupName()
Removes thelookup-nameelement- Specified by:
removeLookupNamein interfaceEjbRefType<T>- Returns:
- the current instance of
EjbRefType
-
mappedName
public EjbRefType<T> mappedName(String mappedName)
Sets themapped-nameelement- Specified by:
mappedNamein interfaceEjbRefType<T>- Parameters:
mappedName- the value for the elementmapped-name- Returns:
- the current instance of
EjbRefType
-
getMappedName
public String getMappedName()
Returns themapped-nameelement- Specified by:
getMappedNamein interfaceEjbRefType<T>- Returns:
- the node defined for the element
mapped-name
-
removeMappedName
public EjbRefType<T> removeMappedName()
Removes themapped-nameelement- Specified by:
removeMappedNamein interfaceEjbRefType<T>- Returns:
- the current instance of
EjbRefType
-
getOrCreateInjectionTarget
public InjectionTargetType<EjbRefType<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 interfaceEjbRefType<T>- Returns:
- the instance defined for the element
injection-target
-
createInjectionTarget
public InjectionTargetType<EjbRefType<T>> createInjectionTarget()
Creates a newinjection-targetelement- Specified by:
createInjectionTargetin interfaceEjbRefType<T>- Returns:
- the new created instance of
InjectionTargetType>
-
getAllInjectionTarget
public List<InjectionTargetType<EjbRefType<T>>> getAllInjectionTarget()
Returns allinjection-targetelements- Specified by:
getAllInjectionTargetin interfaceEjbRefType<T>- Returns:
- list of
injection-target
-
removeAllInjectionTarget
public EjbRefType<T> removeAllInjectionTarget()
Removes allinjection-targetelements- Specified by:
removeAllInjectionTargetin interfaceEjbRefType<T>- Returns:
- the current instance of
InjectionTargetType>
-
description
public EjbRefType<T> description(String... values)
Creates for all String objects representingdescriptionelements, a newdescriptionelement- Specified by:
descriptionin interfaceEjbRefType<T>- Parameters:
values- list ofdescriptionobjects- Returns:
- the current instance of
EjbRefType
-
getAllDescription
public List<String> getAllDescription()
Returns alldescriptionelements- Specified by:
getAllDescriptionin interfaceEjbRefType<T>- Returns:
- list of
description
-
removeAllDescription
public EjbRefType<T> removeAllDescription()
Removes thedescriptionelement- Specified by:
removeAllDescriptionin interfaceEjbRefType<T>- Returns:
- the current instance of
EjbRefType
-
ejbRefName
public EjbRefType<T> ejbRefName(String 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
public String getEjbRefName()
Returns theejb-ref-nameelement- Specified by:
getEjbRefNamein interfaceEjbRefType<T>- Returns:
- the node defined for the element
ejb-ref-name
-
removeEjbRefName
public EjbRefType<T> removeEjbRefName()
Removes theejb-ref-nameelement- Specified by:
removeEjbRefNamein interfaceEjbRefType<T>- Returns:
- the current instance of
EjbRefType
-
ejbRefType
public EjbRefType<T> ejbRefType(EjbRefTypeType 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
public EjbRefType<T> ejbRefType(String 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
public EjbRefTypeType getEjbRefType()
Returns theejb-ref-typeelement- Specified by:
getEjbRefTypein interfaceEjbRefType<T>- Returns:
- the value found for the element
ejb-ref-type
-
getEjbRefTypeAsString
public String getEjbRefTypeAsString()
Returns theejb-ref-typeelement- Specified by:
getEjbRefTypeAsStringin interfaceEjbRefType<T>- Returns:
- the value found for the element
ejb-ref-type
-
removeEjbRefType
public EjbRefType<T> removeEjbRefType()
Removes theejb-ref-typeattribute- Specified by:
removeEjbRefTypein interfaceEjbRefType<T>- Returns:
- the current instance of
EjbRefType
-
home
public EjbRefType<T> home(String home)
Sets thehomeelement- Specified by:
homein interfaceEjbRefType<T>- Parameters:
home- the value for the elementhome- Returns:
- the current instance of
EjbRefType
-
getHome
public String getHome()
Returns thehomeelement- Specified by:
getHomein interfaceEjbRefType<T>- Returns:
- the node defined for the element
home
-
removeHome
public EjbRefType<T> removeHome()
Removes thehomeelement- Specified by:
removeHomein interfaceEjbRefType<T>- Returns:
- the current instance of
EjbRefType
-
remote
public EjbRefType<T> remote(String remote)
Sets theremoteelement- Specified by:
remotein interfaceEjbRefType<T>- Parameters:
remote- the value for the elementremote- Returns:
- the current instance of
EjbRefType
-
getRemote
public String getRemote()
Returns theremoteelement- Specified by:
getRemotein interfaceEjbRefType<T>- Returns:
- the node defined for the element
remote
-
removeRemote
public EjbRefType<T> removeRemote()
Removes theremoteelement- Specified by:
removeRemotein interfaceEjbRefType<T>- Returns:
- the current instance of
EjbRefType
-
ejbLink
public EjbRefType<T> ejbLink(String ejbLink)
Sets theejb-linkelement- Specified by:
ejbLinkin interfaceEjbRefType<T>- Parameters:
ejbLink- the value for the elementejb-link- Returns:
- the current instance of
EjbRefType
-
getEjbLink
public String getEjbLink()
Returns theejb-linkelement- Specified by:
getEjbLinkin interfaceEjbRefType<T>- Returns:
- the node defined for the element
ejb-link
-
removeEjbLink
public EjbRefType<T> removeEjbLink()
Removes theejb-linkelement- Specified by:
removeEjbLinkin interfaceEjbRefType<T>- Returns:
- the current instance of
EjbRefType
-
id
public EjbRefType<T> id(String id)
Sets theidattribute- Specified by:
idin interfaceEjbRefType<T>- Parameters:
id- the value for the attributeid- Returns:
- the current instance of
EjbRefType
-
getId
public String getId()
Returns theidattribute- Specified by:
getIdin interfaceEjbRefType<T>- Returns:
- the value defined for the attribute
id
-
removeId
public EjbRefType<T> removeId()
Removes theidattribute- Specified by:
removeIdin interfaceEjbRefType<T>- Returns:
- the current instance of
EjbRefType
-
-