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.connector10.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);
-
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 namespacedescription(String description) Sets thedescriptionelementdisplayName(String displayName) Sets thedisplay-nameelementSets theeis-typeelementReturns thedescriptionelementReturns thedisplay-nameelementReturns theeis-typeelementReturns all defined namespaces.If not already created, a newiconelement with the given value will be created.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.org.jboss.shrinkwrap.descriptor.spi.node.NodeReturns thespec-versionelementReturns thevendor-nameelementReturns theversionelementRemoves all existing namespaces.Removes thedescriptionelementRemoves thedisplay-nameelementRemoves theeis-typeelementRemoves theiconelementRemoves thelicenseelementRemoves theresourceadapterelementRemoves thespec-versionelementRemoves thevendor-nameelementRemoves theversionelementspecVersion(String specVersion) Sets thespec-versionelementvendorName(String vendorName) Sets thevendor-nameelementSets theversionelementMethods 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
-
specVersion
Sets thespec-versionelement- Specified by:
specVersionin interfaceConnectorDescriptor- Parameters:
specVersion- the value for the elementspec-version- Returns:
- the current instance of
ConnectorDescriptor
-
getSpecVersion
Returns thespec-versionelement- Specified by:
getSpecVersionin interfaceConnectorDescriptor- Returns:
- the node defined for the element
spec-version
-
removeSpecVersion
Removes thespec-versionelement- Specified by:
removeSpecVersionin 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
License
-
removeLicense
Removes thelicenseelement- Specified by:
removeLicensein interfaceConnectorDescriptor- Returns:
- the current instance of
ConnectorDescriptor
-
displayName
Sets thedisplay-nameelement- Specified by:
displayNamein interfaceConnectorDescriptor- Parameters:
displayName- the value for the elementdisplay-name- Returns:
- the current instance of
ConnectorDescriptor
-
getDisplayName
Returns thedisplay-nameelement- Specified by:
getDisplayNamein interfaceConnectorDescriptor- Returns:
- the node defined for the element
display-name
-
removeDisplayName
Removes thedisplay-nameelement- Specified by:
removeDisplayNamein interfaceConnectorDescriptor- Returns:
- the current instance of
ConnectorDescriptor
-
getOrCreateIcon
If not already created, a newiconelement with the given value will be created. Otherwise, the existingiconelement will be returned.- Specified by:
getOrCreateIconin interfaceConnectorDescriptor- Returns:
- a new or existing instance of
Icon
-
removeIcon
Removes theiconelement- Specified by:
removeIconin interfaceConnectorDescriptor- Returns:
- the current instance of
ConnectorDescriptor
-
description
Sets thedescriptionelement- Specified by:
descriptionin interfaceConnectorDescriptor- Parameters:
description- the value for the elementdescription- Returns:
- the current instance of
ConnectorDescriptor
-
getDescription
Returns thedescriptionelement- Specified by:
getDescriptionin interfaceConnectorDescriptor- Returns:
- the node defined for the element
description
-
removeDescription
Removes thedescriptionelement- Specified by:
removeDescriptionin interfaceConnectorDescriptor- 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
-
version
Sets theversionelement- Specified by:
versionin interfaceConnectorDescriptor- Parameters:
version- the value for the elementversion- Returns:
- the current instance of
ConnectorDescriptor
-
getVersion
Returns theversionelement- Specified by:
getVersionin interfaceConnectorDescriptor- Returns:
- the node defined for the element
version
-
removeVersion
Removes theversionelement- Specified by:
removeVersionin 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
Resourceadapter
-
removeResourceadapter
Removes theresourceadapterelement- Specified by:
removeResourceadapterin interfaceConnectorDescriptor- Returns:
- the current instance of
ConnectorDescriptor
-