Class ConnectorDescriptorImpl
- java.lang.Object
-
- org.jboss.shrinkwrap.descriptor.spi.DescriptorImplBase<org.jboss.shrinkwrap.descriptor.spi.node.NodeDescriptor>
-
- org.jboss.shrinkwrap.descriptor.spi.node.NodeDescriptorImplBase
-
- org.jboss.shrinkwrap.descriptor.impl.connector15.ConnectorDescriptorImpl
-
- All Implemented Interfaces:
ConnectorDescriptor,org.jboss.shrinkwrap.descriptor.api.Descriptor,org.jboss.shrinkwrap.descriptor.api.DescriptorNamespace<ConnectorDescriptor>,org.jboss.shrinkwrap.descriptor.spi.node.NodeDescriptor
public class ConnectorDescriptorImpl extends org.jboss.shrinkwrap.descriptor.spi.node.NodeDescriptorImplBase implements org.jboss.shrinkwrap.descriptor.api.DescriptorNamespace<ConnectorDescriptor>, ConnectorDescriptor
This deployment descriptor provides the functionalities as described in the specification
Example:
ConnectorDescriptor descriptor = Descriptors.create(ConnectorDescriptor.class);
-
-
Field Summary
-
Fields inherited from interface org.jboss.shrinkwrap.descriptor.api.connector15.ConnectorDescriptor
VERSION
-
-
Constructor Summary
Constructors Constructor Description ConnectorDescriptorImpl(String descriptorName)ConnectorDescriptorImpl(String descriptorName, org.jboss.shrinkwrap.descriptor.spi.node.Node node)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConnectorDescriptoraddDefaultNamespaces()Adds the default namespaces as defined in the specificationConnectorDescriptoraddNamespace(String name, String value)Adds a new namespaceIconType<ConnectorDescriptor>createIcon()Creates a newiconelementConnectorDescriptordescription(String... values)Creates for all String objects representingdescriptionelements, a newdescriptionelementConnectorDescriptordisplayName(String... values)Creates for all String objects representingdisplay-nameelements, a newdisplay-nameelementConnectorDescriptoreisType(String eisType)Sets theeis-typeelementList<String>getAllDescription()Returns alldescriptionelementsList<String>getAllDisplayName()Returns alldisplay-nameelementsList<IconType<ConnectorDescriptor>>getAllIcon()Returns alliconelementsStringgetEisType()Returns theeis-typeelementStringgetId()Returns theidattributeList<String>getNamespaces()Returns all defined namespaces.IconType<ConnectorDescriptor>getOrCreateIcon()If not already created, a newiconelement will be created and returned.LicenseType<ConnectorDescriptor>getOrCreateLicense()If not already created, a newlicenseelement with the given value will be created.ResourceadapterType<ConnectorDescriptor>getOrCreateResourceadapter()If not already created, a newresourceadapterelement with the given value will be created.StringgetResourceadapterVersion()Returns theresourceadapter-versionelementorg.jboss.shrinkwrap.descriptor.spi.node.NodegetRootNode()StringgetVendorName()Returns thevendor-nameelementStringgetVersion()Returns theversionattributeConnectorDescriptorid(String id)Sets theidattributeConnectorDescriptorremoveAllDescription()Removes thedescriptionelementConnectorDescriptorremoveAllDisplayName()Removes thedisplay-nameelementConnectorDescriptorremoveAllIcon()Removes alliconelementsConnectorDescriptorremoveAllNamespaces()Removes all existing namespaces.ConnectorDescriptorremoveEisType()Removes theeis-typeelementConnectorDescriptorremoveId()Removes theidattributeConnectorDescriptorremoveLicense()Removes thelicenseelementConnectorDescriptorremoveResourceadapter()Removes theresourceadapterelementConnectorDescriptorremoveResourceadapterVersion()Removes theresourceadapter-versionelementConnectorDescriptorremoveVendorName()Removes thevendor-nameelementConnectorDescriptorremoveVersion()Removes theversionattributeConnectorDescriptorresourceadapterVersion(String resourceadapterVersion)Sets theresourceadapter-versionelementConnectorDescriptorvendorName(String vendorName)Sets thevendor-nameelementConnectorDescriptorversion(String version)Sets theversionattribute-
Methods inherited from class org.jboss.shrinkwrap.descriptor.spi.node.NodeDescriptorImplBase
exportTo, getExporter
-
Methods inherited from class org.jboss.shrinkwrap.descriptor.spi.DescriptorImplBase
exportAsString, getDescriptorName
-
-
-
-
Method Detail
-
getRootNode
public org.jboss.shrinkwrap.descriptor.spi.node.Node getRootNode()
- Specified by:
getRootNodein interfaceorg.jboss.shrinkwrap.descriptor.spi.node.NodeDescriptor
-
addDefaultNamespaces
public ConnectorDescriptor addDefaultNamespaces()
Adds the default namespaces as defined in the specification- Specified by:
addDefaultNamespacesin interfaceorg.jboss.shrinkwrap.descriptor.api.DescriptorNamespace<ConnectorDescriptor>- Returns:
- the current instance of
ConnectorDescriptor
-
addNamespace
public ConnectorDescriptor addNamespace(String name, String value)
Adds a new namespace- Specified by:
addNamespacein interfaceorg.jboss.shrinkwrap.descriptor.api.DescriptorNamespace<ConnectorDescriptor>- Returns:
- the current instance of
ConnectorDescriptor
-
getNamespaces
public List<String> getNamespaces()
Returns all defined namespaces.- Specified by:
getNamespacesin interfaceorg.jboss.shrinkwrap.descriptor.api.DescriptorNamespace<ConnectorDescriptor>- Returns:
- all defined namespaces
-
removeAllNamespaces
public ConnectorDescriptor removeAllNamespaces()
Removes all existing namespaces.- Specified by:
removeAllNamespacesin interfaceorg.jboss.shrinkwrap.descriptor.api.DescriptorNamespace<ConnectorDescriptor>- Returns:
- the current instance of
ConnectorDescriptor
-
vendorName
public ConnectorDescriptor vendorName(String vendorName)
Sets thevendor-nameelement- Specified by:
vendorNamein interfaceConnectorDescriptor- Parameters:
vendorName- the value for the elementvendor-name- Returns:
- the current instance of
ConnectorDescriptor
-
getVendorName
public String getVendorName()
Returns thevendor-nameelement- Specified by:
getVendorNamein interfaceConnectorDescriptor- Returns:
- the node defined for the element
vendor-name
-
removeVendorName
public ConnectorDescriptor removeVendorName()
Removes thevendor-nameelement- Specified by:
removeVendorNamein interfaceConnectorDescriptor- Returns:
- the current instance of
ConnectorDescriptor
-
eisType
public ConnectorDescriptor eisType(String eisType)
Sets theeis-typeelement- Specified by:
eisTypein interfaceConnectorDescriptor- Parameters:
eisType- the value for the elementeis-type- Returns:
- the current instance of
ConnectorDescriptor
-
getEisType
public String getEisType()
Returns theeis-typeelement- Specified by:
getEisTypein interfaceConnectorDescriptor- Returns:
- the node defined for the element
eis-type
-
removeEisType
public ConnectorDescriptor removeEisType()
Removes theeis-typeelement- Specified by:
removeEisTypein interfaceConnectorDescriptor- Returns:
- the current instance of
ConnectorDescriptor
-
resourceadapterVersion
public ConnectorDescriptor resourceadapterVersion(String resourceadapterVersion)
Sets theresourceadapter-versionelement- Specified by:
resourceadapterVersionin interfaceConnectorDescriptor- Parameters:
resourceadapterVersion- the value for the elementresourceadapter-version- Returns:
- the current instance of
ConnectorDescriptor
-
getResourceadapterVersion
public String getResourceadapterVersion()
Returns theresourceadapter-versionelement- Specified by:
getResourceadapterVersionin interfaceConnectorDescriptor- Returns:
- the node defined for the element
resourceadapter-version
-
removeResourceadapterVersion
public ConnectorDescriptor removeResourceadapterVersion()
Removes theresourceadapter-versionelement- Specified by:
removeResourceadapterVersionin interfaceConnectorDescriptor- Returns:
- the current instance of
ConnectorDescriptor
-
getOrCreateLicense
public LicenseType<ConnectorDescriptor> getOrCreateLicense()
If not already created, a newlicenseelement with the given value will be created. Otherwise, the existinglicenseelement will be returned.- Specified by:
getOrCreateLicensein interfaceConnectorDescriptor- Returns:
- a new or existing instance of
LicenseType
-
removeLicense
public ConnectorDescriptor removeLicense()
Removes thelicenseelement- Specified by:
removeLicensein interfaceConnectorDescriptor- Returns:
- the current instance of
ConnectorDescriptor
-
getOrCreateResourceadapter
public ResourceadapterType<ConnectorDescriptor> getOrCreateResourceadapter()
If not already created, a newresourceadapterelement with the given value will be created. Otherwise, the existingresourceadapterelement will be returned.- Specified by:
getOrCreateResourceadapterin interfaceConnectorDescriptor- Returns:
- a new or existing instance of
ResourceadapterType
-
removeResourceadapter
public ConnectorDescriptor removeResourceadapter()
Removes theresourceadapterelement- Specified by:
removeResourceadapterin interfaceConnectorDescriptor- Returns:
- the current instance of
ConnectorDescriptor
-
version
public ConnectorDescriptor version(String version)
Sets theversionattribute- Specified by:
versionin interfaceConnectorDescriptor- Parameters:
version- the value for the attributeversion- Returns:
- the current instance of
ConnectorDescriptor
-
getVersion
public String getVersion()
Returns theversionattribute- Specified by:
getVersionin interfaceConnectorDescriptor- Returns:
- the value defined for the attribute
version
-
removeVersion
public ConnectorDescriptor removeVersion()
Removes theversionattribute- Specified by:
removeVersionin interfaceConnectorDescriptor- Returns:
- the current instance of
ConnectorDescriptor
-
id
public ConnectorDescriptor id(String id)
Sets theidattribute- Specified by:
idin interfaceConnectorDescriptor- Parameters:
id- the value for the attributeid- Returns:
- the current instance of
ConnectorDescriptor
-
getId
public String getId()
Returns theidattribute- Specified by:
getIdin interfaceConnectorDescriptor- Returns:
- the value defined for the attribute
id
-
removeId
public ConnectorDescriptor removeId()
Removes theidattribute- Specified by:
removeIdin interfaceConnectorDescriptor- Returns:
- the current instance of
ConnectorDescriptor
-
description
public ConnectorDescriptor description(String... values)
Creates for all String objects representingdescriptionelements, a newdescriptionelement- Specified by:
descriptionin interfaceConnectorDescriptor- Parameters:
values- list ofdescriptionobjects- Returns:
- the current instance of
ConnectorDescriptor
-
getAllDescription
public List<String> getAllDescription()
Returns alldescriptionelements- Specified by:
getAllDescriptionin interfaceConnectorDescriptor- Returns:
- list of
description
-
removeAllDescription
public ConnectorDescriptor removeAllDescription()
Removes thedescriptionelement- Specified by:
removeAllDescriptionin interfaceConnectorDescriptor- Returns:
- the current instance of
ConnectorDescriptor
-
displayName
public ConnectorDescriptor displayName(String... values)
Creates for all String objects representingdisplay-nameelements, a newdisplay-nameelement- Specified by:
displayNamein interfaceConnectorDescriptor- Parameters:
values- list ofdisplay-nameobjects- Returns:
- the current instance of
ConnectorDescriptor
-
getAllDisplayName
public List<String> getAllDisplayName()
Returns alldisplay-nameelements- Specified by:
getAllDisplayNamein interfaceConnectorDescriptor- Returns:
- list of
display-name
-
removeAllDisplayName
public ConnectorDescriptor removeAllDisplayName()
Removes thedisplay-nameelement- Specified by:
removeAllDisplayNamein interfaceConnectorDescriptor- Returns:
- the current instance of
ConnectorDescriptor
-
getOrCreateIcon
public IconType<ConnectorDescriptor> getOrCreateIcon()
If not already created, a newiconelement will be created and returned. Otherwise, the first existingiconelement will be returned.- Specified by:
getOrCreateIconin interfaceConnectorDescriptor- Returns:
- the instance defined for the element
icon
-
createIcon
public IconType<ConnectorDescriptor> createIcon()
Creates a newiconelement- Specified by:
createIconin interfaceConnectorDescriptor- Returns:
- the new created instance of
IconType
-
getAllIcon
public List<IconType<ConnectorDescriptor>> getAllIcon()
Returns alliconelements- Specified by:
getAllIconin interfaceConnectorDescriptor- Returns:
- list of
icon
-
removeAllIcon
public ConnectorDescriptor removeAllIcon()
Removes alliconelements- Specified by:
removeAllIconin interfaceConnectorDescriptor- Returns:
- the current instance of
IconType
-
-