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
ConstructorsConstructorDescriptionConnectorDescriptorImpl(String descriptorName) ConnectorDescriptorImpl(String descriptorName, org.jboss.shrinkwrap.descriptor.spi.node.Node node) -
Method Summary
Modifier and TypeMethodDescriptionAdds the default namespaces as defined in the specificationaddNamespace(String name, String value) Adds a new namespaceCreates a newiconelementdescription(String... values) Creates for all String objects representingdescriptionelements, a newdescriptionelementdisplayName(String... values) Creates for all String objects representingdisplay-nameelements, a newdisplay-nameelementSets theeis-typeelementReturns alldescriptionelementsReturns alldisplay-nameelementsReturns alliconelementsReturns theeis-typeelementgetId()Returns theidattributeReturns all defined namespaces.If not already created, a newiconelement will be created and returned.If not already created, a newlicenseelement with the given value will be created.If not already created, a newresourceadapterelement with the given value will be created.Returns theresourceadapter-versionelementorg.jboss.shrinkwrap.descriptor.spi.node.NodeReturns thevendor-nameelementReturns theversionattributeSets theidattributeRemoves thedescriptionelementRemoves thedisplay-nameelementRemoves alliconelementsRemoves all existing namespaces.Removes theeis-typeelementremoveId()Removes theidattributeRemoves thelicenseelementRemoves theresourceadapterelementRemoves theresourceadapter-versionelementRemoves thevendor-nameelementRemoves theversionattributeresourceadapterVersion(String resourceadapterVersion) Sets theresourceadapter-versionelementvendorName(String vendorName) Sets thevendor-nameelementSets theversionattributeMethods inherited from class org.jboss.shrinkwrap.descriptor.spi.node.NodeDescriptorImplBase
exportTo, getExporterMethods inherited from class org.jboss.shrinkwrap.descriptor.spi.DescriptorImplBase
exportAsString, getDescriptorNameMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jboss.shrinkwrap.descriptor.api.Descriptor
exportAsString, exportTo, getDescriptorName
-
Constructor Details
-
ConnectorDescriptorImpl
-
ConnectorDescriptorImpl
public ConnectorDescriptorImpl(String descriptorName, org.jboss.shrinkwrap.descriptor.spi.node.Node node)
-
-
Method Details
-
getRootNode
public org.jboss.shrinkwrap.descriptor.spi.node.Node getRootNode()- Specified by:
getRootNodein interfaceorg.jboss.shrinkwrap.descriptor.spi.node.NodeDescriptor
-
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
Adds a new namespace- Specified by:
addNamespacein interfaceorg.jboss.shrinkwrap.descriptor.api.DescriptorNamespace<ConnectorDescriptor>- Returns:
- the current instance of
ConnectorDescriptor
-
getNamespaces
Returns all defined namespaces.- Specified by:
getNamespacesin interfaceorg.jboss.shrinkwrap.descriptor.api.DescriptorNamespace<ConnectorDescriptor>- Returns:
- all defined namespaces
-
removeAllNamespaces
Removes all existing namespaces.- Specified by:
removeAllNamespacesin interfaceorg.jboss.shrinkwrap.descriptor.api.DescriptorNamespace<ConnectorDescriptor>- Returns:
- the current instance of
ConnectorDescriptor
-
vendorName
Sets thevendor-nameelement- Specified by:
vendorNamein interfaceConnectorDescriptor- Parameters:
vendorName- the value for the elementvendor-name- Returns:
- the current instance of
ConnectorDescriptor
-
getVendorName
Returns thevendor-nameelement- Specified by:
getVendorNamein interfaceConnectorDescriptor- Returns:
- the node defined for the element
vendor-name
-
removeVendorName
Removes thevendor-nameelement- Specified by:
removeVendorNamein interfaceConnectorDescriptor- Returns:
- the current instance of
ConnectorDescriptor
-
eisType
Sets theeis-typeelement- Specified by:
eisTypein interfaceConnectorDescriptor- Parameters:
eisType- the value for the elementeis-type- Returns:
- the current instance of
ConnectorDescriptor
-
getEisType
Returns theeis-typeelement- Specified by:
getEisTypein interfaceConnectorDescriptor- Returns:
- the node defined for the element
eis-type
-
removeEisType
Removes theeis-typeelement- Specified by:
removeEisTypein interfaceConnectorDescriptor- Returns:
- the current instance of
ConnectorDescriptor
-
resourceadapterVersion
Sets theresourceadapter-versionelement- Specified by:
resourceadapterVersionin interfaceConnectorDescriptor- Parameters:
resourceadapterVersion- the value for the elementresourceadapter-version- Returns:
- the current instance of
ConnectorDescriptor
-
getResourceadapterVersion
Returns theresourceadapter-versionelement- Specified by:
getResourceadapterVersionin interfaceConnectorDescriptor- Returns:
- the node defined for the element
resourceadapter-version
-
removeResourceadapterVersion
Removes theresourceadapter-versionelement- Specified by:
removeResourceadapterVersionin interfaceConnectorDescriptor- Returns:
- the current instance of
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
Removes thelicenseelement- Specified by:
removeLicensein interfaceConnectorDescriptor- Returns:
- the current instance of
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
Removes theresourceadapterelement- Specified by:
removeResourceadapterin interfaceConnectorDescriptor- Returns:
- the current instance of
ConnectorDescriptor
-
version
Sets theversionattribute- Specified by:
versionin interfaceConnectorDescriptor- Parameters:
version- the value for the attributeversion- Returns:
- the current instance of
ConnectorDescriptor
-
getVersion
Returns theversionattribute- Specified by:
getVersionin interfaceConnectorDescriptor- Returns:
- the value defined for the attribute
version
-
removeVersion
Removes theversionattribute- Specified by:
removeVersionin interfaceConnectorDescriptor- Returns:
- the current instance of
ConnectorDescriptor
-
id
Sets theidattribute- Specified by:
idin interfaceConnectorDescriptor- Parameters:
id- the value for the attributeid- Returns:
- the current instance of
ConnectorDescriptor
-
getId
Returns theidattribute- Specified by:
getIdin interfaceConnectorDescriptor- Returns:
- the value defined for the attribute
id
-
removeId
Removes theidattribute- Specified by:
removeIdin interfaceConnectorDescriptor- Returns:
- the current instance of
ConnectorDescriptor
-
description
Creates for all String objects representingdescriptionelements, a newdescriptionelement- Specified by:
descriptionin interfaceConnectorDescriptor- Parameters:
values- list ofdescriptionobjects- Returns:
- the current instance of
ConnectorDescriptor
-
getAllDescription
Returns alldescriptionelements- Specified by:
getAllDescriptionin interfaceConnectorDescriptor- Returns:
- list of
description
-
removeAllDescription
Removes thedescriptionelement- Specified by:
removeAllDescriptionin interfaceConnectorDescriptor- Returns:
- the current instance of
ConnectorDescriptor
-
displayName
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
Returns alldisplay-nameelements- Specified by:
getAllDisplayNamein interfaceConnectorDescriptor- Returns:
- list of
display-name
-
removeAllDisplayName
Removes thedisplay-nameelement- Specified by:
removeAllDisplayNamein interfaceConnectorDescriptor- Returns:
- the current instance of
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
Creates a newiconelement- Specified by:
createIconin interfaceConnectorDescriptor- Returns:
- the new created instance of
IconType
-
getAllIcon
Returns alliconelements- Specified by:
getAllIconin interfaceConnectorDescriptor- Returns:
- list of
icon
-
removeAllIcon
Removes alliconelements- Specified by:
removeAllIconin interfaceConnectorDescriptor- Returns:
- the current instance of
IconType
-