Class ConnectorTypeImpl<T>
- java.lang.Object
-
- org.jboss.shrinkwrap.descriptor.impl.connector16.ConnectorTypeImpl<T>
-
- All Implemented Interfaces:
org.jboss.shrinkwrap.descriptor.api.Child<T>,ConnectorType<T>
public class ConnectorTypeImpl<T> extends Object implements org.jboss.shrinkwrap.descriptor.api.Child<T>, ConnectorType<T>
This class implements theconnectorTypexsd type
-
-
Field Summary
-
Fields inherited from interface org.jboss.shrinkwrap.descriptor.api.connector16.ConnectorType
VERSION
-
-
Constructor Summary
Constructors Constructor Description ConnectorTypeImpl(T t, String nodeName, org.jboss.shrinkwrap.descriptor.spi.node.Node node)ConnectorTypeImpl(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 IconType<ConnectorType<T>>createIcon()Creates a newiconelementConnectorType<T>description(String... values)Creates for all String objects representingdescriptionelements, a newdescriptionelementConnectorType<T>displayName(String... values)Creates for all String objects representingdisplay-nameelements, a newdisplay-nameelementConnectorType<T>eisType(String eisType)Sets theeis-typeelementList<String>getAllDescription()Returns alldescriptionelementsList<String>getAllDisplayName()Returns alldisplay-nameelementsList<IconType<ConnectorType<T>>>getAllIcon()Returns alliconelementsList<String>getAllRequiredWorkContext()Returns allrequired-work-contextelementsStringgetEisType()Returns theeis-typeelementStringgetId()Returns theidattributeStringgetModuleName()Returns themodule-nameelementIconType<ConnectorType<T>>getOrCreateIcon()If not already created, a newiconelement will be created and returned.LicenseType<ConnectorType<T>>getOrCreateLicense()If not already created, a newlicenseelement with the given value will be created.ResourceadapterType<ConnectorType<T>>getOrCreateResourceadapter()If not already created, a newresourceadapterelement with the given value will be created.StringgetResourceadapterVersion()Returns theresourceadapter-versionelementStringgetVendorName()Returns thevendor-nameelementStringgetVersion()Returns theversionattributeConnectorType<T>id(String id)Sets theidattributeBooleanisMetadataComplete()Returns themetadata-completeattributeConnectorType<T>metadataComplete(Boolean metadataComplete)Sets themetadata-completeattributeConnectorType<T>moduleName(String moduleName)Sets themodule-nameelementConnectorType<T>removeAllDescription()Removes thedescriptionelementConnectorType<T>removeAllDisplayName()Removes thedisplay-nameelementConnectorType<T>removeAllIcon()Removes alliconelementsConnectorType<T>removeAllRequiredWorkContext()Removes therequired-work-contextelementConnectorType<T>removeEisType()Removes theeis-typeelementConnectorType<T>removeId()Removes theidattributeConnectorType<T>removeLicense()Removes thelicenseelementConnectorType<T>removeMetadataComplete()Removes themetadata-completeattributeConnectorType<T>removeModuleName()Removes themodule-nameelementConnectorType<T>removeResourceadapter()Removes theresourceadapterelementConnectorType<T>removeResourceadapterVersion()Removes theresourceadapter-versionelementConnectorType<T>removeVendorName()Removes thevendor-nameelementConnectorType<T>removeVersion()Removes theversionattributeConnectorType<T>requiredWorkContext(String... values)Creates for all String objects representingrequired-work-contextelements, a newrequired-work-contextelementConnectorType<T>resourceadapterVersion(String resourceadapterVersion)Sets theresourceadapter-versionelementTup()ConnectorType<T>vendorName(String vendorName)Sets thevendor-nameelementConnectorType<T>version(String version)Sets theversionattribute
-
-
-
Method Detail
-
description
public ConnectorType<T> description(String... values)
Creates for all String objects representingdescriptionelements, a newdescriptionelement- Specified by:
descriptionin interfaceConnectorType<T>- Parameters:
values- list ofdescriptionobjects- Returns:
- the current instance of
ConnectorType
-
getAllDescription
public List<String> getAllDescription()
Returns alldescriptionelements- Specified by:
getAllDescriptionin interfaceConnectorType<T>- Returns:
- list of
description
-
removeAllDescription
public ConnectorType<T> removeAllDescription()
Removes thedescriptionelement- Specified by:
removeAllDescriptionin interfaceConnectorType<T>- Returns:
- the current instance of
ConnectorType
-
displayName
public ConnectorType<T> displayName(String... values)
Creates for all String objects representingdisplay-nameelements, a newdisplay-nameelement- Specified by:
displayNamein interfaceConnectorType<T>- Parameters:
values- list ofdisplay-nameobjects- Returns:
- the current instance of
ConnectorType
-
getAllDisplayName
public List<String> getAllDisplayName()
Returns alldisplay-nameelements- Specified by:
getAllDisplayNamein interfaceConnectorType<T>- Returns:
- list of
display-name
-
removeAllDisplayName
public ConnectorType<T> removeAllDisplayName()
Removes thedisplay-nameelement- Specified by:
removeAllDisplayNamein interfaceConnectorType<T>- Returns:
- the current instance of
ConnectorType
-
getOrCreateIcon
public IconType<ConnectorType<T>> getOrCreateIcon()
If not already created, a newiconelement will be created and returned. Otherwise, the first existingiconelement will be returned.- Specified by:
getOrCreateIconin interfaceConnectorType<T>- Returns:
- the instance defined for the element
icon
-
createIcon
public IconType<ConnectorType<T>> createIcon()
Creates a newiconelement- Specified by:
createIconin interfaceConnectorType<T>- Returns:
- the new created instance of
IconType>
-
getAllIcon
public List<IconType<ConnectorType<T>>> getAllIcon()
Returns alliconelements- Specified by:
getAllIconin interfaceConnectorType<T>- Returns:
- list of
icon
-
removeAllIcon
public ConnectorType<T> removeAllIcon()
Removes alliconelements- Specified by:
removeAllIconin interfaceConnectorType<T>- Returns:
- the current instance of
IconType>
-
moduleName
public ConnectorType<T> moduleName(String moduleName)
Sets themodule-nameelement- Specified by:
moduleNamein interfaceConnectorType<T>- Parameters:
moduleName- the value for the elementmodule-name- Returns:
- the current instance of
ConnectorType
-
getModuleName
public String getModuleName()
Returns themodule-nameelement- Specified by:
getModuleNamein interfaceConnectorType<T>- Returns:
- the node defined for the element
module-name
-
removeModuleName
public ConnectorType<T> removeModuleName()
Removes themodule-nameelement- Specified by:
removeModuleNamein interfaceConnectorType<T>- Returns:
- the current instance of
ConnectorType
-
vendorName
public ConnectorType<T> vendorName(String vendorName)
Sets thevendor-nameelement- Specified by:
vendorNamein interfaceConnectorType<T>- Parameters:
vendorName- the value for the elementvendor-name- Returns:
- the current instance of
ConnectorType
-
getVendorName
public String getVendorName()
Returns thevendor-nameelement- Specified by:
getVendorNamein interfaceConnectorType<T>- Returns:
- the node defined for the element
vendor-name
-
removeVendorName
public ConnectorType<T> removeVendorName()
Removes thevendor-nameelement- Specified by:
removeVendorNamein interfaceConnectorType<T>- Returns:
- the current instance of
ConnectorType
-
eisType
public ConnectorType<T> eisType(String eisType)
Sets theeis-typeelement- Specified by:
eisTypein interfaceConnectorType<T>- Parameters:
eisType- the value for the elementeis-type- Returns:
- the current instance of
ConnectorType
-
getEisType
public String getEisType()
Returns theeis-typeelement- Specified by:
getEisTypein interfaceConnectorType<T>- Returns:
- the node defined for the element
eis-type
-
removeEisType
public ConnectorType<T> removeEisType()
Removes theeis-typeelement- Specified by:
removeEisTypein interfaceConnectorType<T>- Returns:
- the current instance of
ConnectorType
-
resourceadapterVersion
public ConnectorType<T> resourceadapterVersion(String resourceadapterVersion)
Sets theresourceadapter-versionelement- Specified by:
resourceadapterVersionin interfaceConnectorType<T>- Parameters:
resourceadapterVersion- the value for the elementresourceadapter-version- Returns:
- the current instance of
ConnectorType
-
getResourceadapterVersion
public String getResourceadapterVersion()
Returns theresourceadapter-versionelement- Specified by:
getResourceadapterVersionin interfaceConnectorType<T>- Returns:
- the node defined for the element
resourceadapter-version
-
removeResourceadapterVersion
public ConnectorType<T> removeResourceadapterVersion()
Removes theresourceadapter-versionelement- Specified by:
removeResourceadapterVersionin interfaceConnectorType<T>- Returns:
- the current instance of
ConnectorType
-
getOrCreateLicense
public LicenseType<ConnectorType<T>> getOrCreateLicense()
If not already created, a newlicenseelement with the given value will be created. Otherwise, the existinglicenseelement will be returned.- Specified by:
getOrCreateLicensein interfaceConnectorType<T>- Returns:
- a new or existing instance of
LicenseType>
-
removeLicense
public ConnectorType<T> removeLicense()
Removes thelicenseelement- Specified by:
removeLicensein interfaceConnectorType<T>- Returns:
- the current instance of
ConnectorType
-
getOrCreateResourceadapter
public ResourceadapterType<ConnectorType<T>> getOrCreateResourceadapter()
If not already created, a newresourceadapterelement with the given value will be created. Otherwise, the existingresourceadapterelement will be returned.- Specified by:
getOrCreateResourceadapterin interfaceConnectorType<T>- Returns:
- a new or existing instance of
ResourceadapterType>
-
removeResourceadapter
public ConnectorType<T> removeResourceadapter()
Removes theresourceadapterelement- Specified by:
removeResourceadapterin interfaceConnectorType<T>- Returns:
- the current instance of
ConnectorType
-
requiredWorkContext
public ConnectorType<T> requiredWorkContext(String... values)
Creates for all String objects representingrequired-work-contextelements, a newrequired-work-contextelement- Specified by:
requiredWorkContextin interfaceConnectorType<T>- Parameters:
values- list ofrequired-work-contextobjects- Returns:
- the current instance of
ConnectorType
-
getAllRequiredWorkContext
public List<String> getAllRequiredWorkContext()
Returns allrequired-work-contextelements- Specified by:
getAllRequiredWorkContextin interfaceConnectorType<T>- Returns:
- list of
required-work-context
-
removeAllRequiredWorkContext
public ConnectorType<T> removeAllRequiredWorkContext()
Removes therequired-work-contextelement- Specified by:
removeAllRequiredWorkContextin interfaceConnectorType<T>- Returns:
- the current instance of
ConnectorType
-
version
public ConnectorType<T> version(String version)
Sets theversionattribute- Specified by:
versionin interfaceConnectorType<T>- Parameters:
version- the value for the attributeversion- Returns:
- the current instance of
ConnectorType
-
getVersion
public String getVersion()
Returns theversionattribute- Specified by:
getVersionin interfaceConnectorType<T>- Returns:
- the value defined for the attribute
version
-
removeVersion
public ConnectorType<T> removeVersion()
Removes theversionattribute- Specified by:
removeVersionin interfaceConnectorType<T>- Returns:
- the current instance of
ConnectorType
-
metadataComplete
public ConnectorType<T> metadataComplete(Boolean metadataComplete)
Sets themetadata-completeattribute- Specified by:
metadataCompletein interfaceConnectorType<T>- Parameters:
metadataComplete- the value for the attributemetadata-complete- Returns:
- the current instance of
ConnectorType
-
isMetadataComplete
public Boolean isMetadataComplete()
Returns themetadata-completeattribute- Specified by:
isMetadataCompletein interfaceConnectorType<T>- Returns:
- the value defined for the attribute
metadata-complete
-
removeMetadataComplete
public ConnectorType<T> removeMetadataComplete()
Removes themetadata-completeattribute- Specified by:
removeMetadataCompletein interfaceConnectorType<T>- Returns:
- the current instance of
ConnectorType
-
id
public ConnectorType<T> id(String id)
Sets theidattribute- Specified by:
idin interfaceConnectorType<T>- Parameters:
id- the value for the attributeid- Returns:
- the current instance of
ConnectorType
-
getId
public String getId()
Returns theidattribute- Specified by:
getIdin interfaceConnectorType<T>- Returns:
- the value defined for the attribute
id
-
removeId
public ConnectorType<T> removeId()
Removes theidattribute- Specified by:
removeIdin interfaceConnectorType<T>- Returns:
- the current instance of
ConnectorType
-
-