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
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 namespaceConnectorDescriptordescription(String description)Sets thedescriptionelementConnectorDescriptordisplayName(String displayName)Sets thedisplay-nameelementConnectorDescriptoreisType(String eisType)Sets theeis-typeelementStringgetDescription()Returns thedescriptionelementStringgetDisplayName()Returns thedisplay-nameelementStringgetEisType()Returns theeis-typeelementList<String>getNamespaces()Returns all defined namespaces.Icon<ConnectorDescriptor>getOrCreateIcon()If not already created, a newiconelement with the given value will be created.License<ConnectorDescriptor>getOrCreateLicense()If not already created, a newlicenseelement with the given value will be created.Resourceadapter<ConnectorDescriptor>getOrCreateResourceadapter()If not already created, a newresourceadapterelement with the given value will be created.org.jboss.shrinkwrap.descriptor.spi.node.NodegetRootNode()StringgetSpecVersion()Returns thespec-versionelementStringgetVendorName()Returns thevendor-nameelementStringgetVersion()Returns theversionelementConnectorDescriptorremoveAllNamespaces()Removes all existing namespaces.ConnectorDescriptorremoveDescription()Removes thedescriptionelementConnectorDescriptorremoveDisplayName()Removes thedisplay-nameelementConnectorDescriptorremoveEisType()Removes theeis-typeelementConnectorDescriptorremoveIcon()Removes theiconelementConnectorDescriptorremoveLicense()Removes thelicenseelementConnectorDescriptorremoveResourceadapter()Removes theresourceadapterelementConnectorDescriptorremoveSpecVersion()Removes thespec-versionelementConnectorDescriptorremoveVendorName()Removes thevendor-nameelementConnectorDescriptorremoveVersion()Removes theversionelementConnectorDescriptorspecVersion(String specVersion)Sets thespec-versionelementConnectorDescriptorvendorName(String vendorName)Sets thevendor-nameelementConnectorDescriptorversion(String version)Sets theversionelement-
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
-
specVersion
public ConnectorDescriptor specVersion(String specVersion)
Sets thespec-versionelement- Specified by:
specVersionin interfaceConnectorDescriptor- Parameters:
specVersion- the value for the elementspec-version- Returns:
- the current instance of
ConnectorDescriptor
-
getSpecVersion
public String getSpecVersion()
Returns thespec-versionelement- Specified by:
getSpecVersionin interfaceConnectorDescriptor- Returns:
- the node defined for the element
spec-version
-
removeSpecVersion
public ConnectorDescriptor removeSpecVersion()
Removes thespec-versionelement- Specified by:
removeSpecVersionin interfaceConnectorDescriptor- Returns:
- the current instance of
ConnectorDescriptor
-
getOrCreateLicense
public License<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
public ConnectorDescriptor removeLicense()
Removes thelicenseelement- Specified by:
removeLicensein interfaceConnectorDescriptor- Returns:
- the current instance of
ConnectorDescriptor
-
displayName
public ConnectorDescriptor displayName(String displayName)
Sets thedisplay-nameelement- Specified by:
displayNamein interfaceConnectorDescriptor- Parameters:
displayName- the value for the elementdisplay-name- Returns:
- the current instance of
ConnectorDescriptor
-
getDisplayName
public String getDisplayName()
Returns thedisplay-nameelement- Specified by:
getDisplayNamein interfaceConnectorDescriptor- Returns:
- the node defined for the element
display-name
-
removeDisplayName
public ConnectorDescriptor removeDisplayName()
Removes thedisplay-nameelement- Specified by:
removeDisplayNamein interfaceConnectorDescriptor- Returns:
- the current instance of
ConnectorDescriptor
-
getOrCreateIcon
public Icon<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
public ConnectorDescriptor removeIcon()
Removes theiconelement- Specified by:
removeIconin interfaceConnectorDescriptor- Returns:
- the current instance of
ConnectorDescriptor
-
description
public ConnectorDescriptor description(String description)
Sets thedescriptionelement- Specified by:
descriptionin interfaceConnectorDescriptor- Parameters:
description- the value for the elementdescription- Returns:
- the current instance of
ConnectorDescriptor
-
getDescription
public String getDescription()
Returns thedescriptionelement- Specified by:
getDescriptionin interfaceConnectorDescriptor- Returns:
- the node defined for the element
description
-
removeDescription
public ConnectorDescriptor removeDescription()
Removes thedescriptionelement- Specified by:
removeDescriptionin interfaceConnectorDescriptor- 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
-
version
public ConnectorDescriptor version(String version)
Sets theversionelement- Specified by:
versionin interfaceConnectorDescriptor- Parameters:
version- the value for the elementversion- Returns:
- the current instance of
ConnectorDescriptor
-
getVersion
public String getVersion()
Returns theversionelement- Specified by:
getVersionin interfaceConnectorDescriptor- Returns:
- the node defined for the element
version
-
removeVersion
public ConnectorDescriptor removeVersion()
Removes theversionelement- Specified by:
removeVersionin interfaceConnectorDescriptor- Returns:
- the current instance of
ConnectorDescriptor
-
getOrCreateResourceadapter
public Resourceadapter<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
public ConnectorDescriptor removeResourceadapter()
Removes theresourceadapterelement- Specified by:
removeResourceadapterin interfaceConnectorDescriptor- Returns:
- the current instance of
ConnectorDescriptor
-
-