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 and Description |
|---|
ConnectorDescriptorImpl(String descriptorName) |
ConnectorDescriptorImpl(String descriptorName,
org.jboss.shrinkwrap.descriptor.spi.node.Node node) |
| Modifier and Type | Method and Description |
|---|---|
ConnectorDescriptor |
addDefaultNamespaces()
Adds the default namespaces as defined in the specification
|
ConnectorDescriptor |
addNamespace(String name,
String value)
Adds a new namespace
|
ConnectorDescriptor |
description(String description)
Sets the
description element |
ConnectorDescriptor |
displayName(String displayName)
Sets the
display-name element |
ConnectorDescriptor |
eisType(String eisType)
Sets the
eis-type element |
String |
getDescription()
Returns the
description element |
String |
getDisplayName()
Returns the
display-name element |
String |
getEisType()
Returns the
eis-type element |
List<String> |
getNamespaces()
Returns all defined namespaces.
|
Icon<ConnectorDescriptor> |
getOrCreateIcon()
If not already created, a new
icon element with the given value will be created. |
License<ConnectorDescriptor> |
getOrCreateLicense()
If not already created, a new
license element with the given value will be created. |
Resourceadapter<ConnectorDescriptor> |
getOrCreateResourceadapter()
If not already created, a new
resourceadapter element with the given value will be created. |
org.jboss.shrinkwrap.descriptor.spi.node.Node |
getRootNode() |
String |
getSpecVersion()
Returns the
spec-version element |
String |
getVendorName()
Returns the
vendor-name element |
String |
getVersion()
Returns the
version element |
ConnectorDescriptor |
removeAllNamespaces()
Removes all existing namespaces.
|
ConnectorDescriptor |
removeDescription()
Removes the
description element |
ConnectorDescriptor |
removeDisplayName()
Removes the
display-name element |
ConnectorDescriptor |
removeEisType()
Removes the
eis-type element |
ConnectorDescriptor |
removeIcon()
Removes the
icon element |
ConnectorDescriptor |
removeLicense()
Removes the
license element |
ConnectorDescriptor |
removeResourceadapter()
Removes the
resourceadapter element |
ConnectorDescriptor |
removeSpecVersion()
Removes the
spec-version element |
ConnectorDescriptor |
removeVendorName()
Removes the
vendor-name element |
ConnectorDescriptor |
removeVersion()
Removes the
version element |
ConnectorDescriptor |
specVersion(String specVersion)
Sets the
spec-version element |
ConnectorDescriptor |
vendorName(String vendorName)
Sets the
vendor-name element |
ConnectorDescriptor |
version(String version)
Sets the
version element |
exportTo, getExporterexportAsString, getDescriptorNamepublic ConnectorDescriptorImpl(String descriptorName)
public ConnectorDescriptorImpl(String descriptorName, org.jboss.shrinkwrap.descriptor.spi.node.Node node)
public org.jboss.shrinkwrap.descriptor.spi.node.Node getRootNode()
getRootNode in interface org.jboss.shrinkwrap.descriptor.spi.node.NodeDescriptorpublic ConnectorDescriptor addDefaultNamespaces()
addDefaultNamespaces in interface org.jboss.shrinkwrap.descriptor.api.DescriptorNamespace<ConnectorDescriptor>ConnectorDescriptorpublic ConnectorDescriptor addNamespace(String name, String value)
addNamespace in interface org.jboss.shrinkwrap.descriptor.api.DescriptorNamespace<ConnectorDescriptor>ConnectorDescriptorpublic List<String> getNamespaces()
getNamespaces in interface org.jboss.shrinkwrap.descriptor.api.DescriptorNamespace<ConnectorDescriptor>public ConnectorDescriptor removeAllNamespaces()
removeAllNamespaces in interface org.jboss.shrinkwrap.descriptor.api.DescriptorNamespace<ConnectorDescriptor>ConnectorDescriptorpublic ConnectorDescriptor specVersion(String specVersion)
spec-version elementspecVersion in interface ConnectorDescriptorspecVersion - the value for the element spec-versionConnectorDescriptorpublic String getSpecVersion()
spec-version elementgetSpecVersion in interface ConnectorDescriptorspec-versionpublic ConnectorDescriptor removeSpecVersion()
spec-version elementremoveSpecVersion in interface ConnectorDescriptorConnectorDescriptorpublic License<ConnectorDescriptor> getOrCreateLicense()
license element with the given value will be created.
Otherwise, the existing license element will be returned.getOrCreateLicense in interface ConnectorDescriptorLicensepublic ConnectorDescriptor removeLicense()
license elementremoveLicense in interface ConnectorDescriptorConnectorDescriptorpublic ConnectorDescriptor displayName(String displayName)
display-name elementdisplayName in interface ConnectorDescriptordisplayName - the value for the element display-nameConnectorDescriptorpublic String getDisplayName()
display-name elementgetDisplayName in interface ConnectorDescriptordisplay-namepublic ConnectorDescriptor removeDisplayName()
display-name elementremoveDisplayName in interface ConnectorDescriptorConnectorDescriptorpublic Icon<ConnectorDescriptor> getOrCreateIcon()
icon element with the given value will be created.
Otherwise, the existing icon element will be returned.getOrCreateIcon in interface ConnectorDescriptorIconpublic ConnectorDescriptor removeIcon()
icon elementremoveIcon in interface ConnectorDescriptorConnectorDescriptorpublic ConnectorDescriptor description(String description)
description elementdescription in interface ConnectorDescriptordescription - the value for the element descriptionConnectorDescriptorpublic String getDescription()
description elementgetDescription in interface ConnectorDescriptordescriptionpublic ConnectorDescriptor removeDescription()
description elementremoveDescription in interface ConnectorDescriptorConnectorDescriptorpublic ConnectorDescriptor vendorName(String vendorName)
vendor-name elementvendorName in interface ConnectorDescriptorvendorName - the value for the element vendor-nameConnectorDescriptorpublic String getVendorName()
vendor-name elementgetVendorName in interface ConnectorDescriptorvendor-namepublic ConnectorDescriptor removeVendorName()
vendor-name elementremoveVendorName in interface ConnectorDescriptorConnectorDescriptorpublic ConnectorDescriptor eisType(String eisType)
eis-type elementeisType in interface ConnectorDescriptoreisType - the value for the element eis-typeConnectorDescriptorpublic String getEisType()
eis-type elementgetEisType in interface ConnectorDescriptoreis-typepublic ConnectorDescriptor removeEisType()
eis-type elementremoveEisType in interface ConnectorDescriptorConnectorDescriptorpublic ConnectorDescriptor version(String version)
version elementversion in interface ConnectorDescriptorversion - the value for the element versionConnectorDescriptorpublic String getVersion()
version elementgetVersion in interface ConnectorDescriptorversionpublic ConnectorDescriptor removeVersion()
version elementremoveVersion in interface ConnectorDescriptorConnectorDescriptorpublic Resourceadapter<ConnectorDescriptor> getOrCreateResourceadapter()
resourceadapter element with the given value will be created.
Otherwise, the existing resourceadapter element will be returned.getOrCreateResourceadapter in interface ConnectorDescriptorResourceadapterpublic ConnectorDescriptor removeResourceadapter()
resourceadapter elementremoveResourceadapter in interface ConnectorDescriptorConnectorDescriptorCopyright © 2021 JBoss by Red Hat. All rights reserved.