public class ConnectorDescriptorImpl extends org.jboss.shrinkwrap.descriptor.spi.node.NodeDescriptorImplBase implements 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()
Obtains the top-level root
Node for this NodeDescriptor |
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, getExporter
exportAsString, getDescriptorName
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
exportAsString, exportTo, getDescriptorName
public ConnectorDescriptorImpl(String descriptorName)
public ConnectorDescriptorImpl(String descriptorName, org.jboss.shrinkwrap.descriptor.spi.node.Node node)
public org.jboss.shrinkwrap.descriptor.spi.node.Node getRootNode()
org.jboss.shrinkwrap.descriptor.spi.node.NodeDescriptor
Node
for this NodeDescriptor
getRootNode
in interface org.jboss.shrinkwrap.descriptor.spi.node.NodeDescriptor
public ConnectorDescriptor addDefaultNamespaces()
addDefaultNamespaces
in interface DescriptorNamespace<ConnectorDescriptor>
ConnectorDescriptor
public ConnectorDescriptor addNamespace(String name, String value)
addNamespace
in interface DescriptorNamespace<ConnectorDescriptor>
name
- the name of the namespacevalue
- the value of the namespaceConnectorDescriptor
public List<String> getNamespaces()
getNamespaces
in interface DescriptorNamespace<ConnectorDescriptor>
public ConnectorDescriptor removeAllNamespaces()
removeAllNamespaces
in interface DescriptorNamespace<ConnectorDescriptor>
ConnectorDescriptor
public ConnectorDescriptor specVersion(String specVersion)
spec-version
elementspecVersion
in interface ConnectorDescriptor
specVersion
- the value for the element spec-version
ConnectorDescriptor
public String getSpecVersion()
spec-version
elementgetSpecVersion
in interface ConnectorDescriptor
spec-version
public ConnectorDescriptor removeSpecVersion()
spec-version
elementremoveSpecVersion
in interface ConnectorDescriptor
ConnectorDescriptor
public License<ConnectorDescriptor> getOrCreateLicense()
license
element with the given value will be created.
Otherwise, the existing license
element will be returned.getOrCreateLicense
in interface ConnectorDescriptor
License
public ConnectorDescriptor removeLicense()
license
elementremoveLicense
in interface ConnectorDescriptor
ConnectorDescriptor
public ConnectorDescriptor displayName(String displayName)
display-name
elementdisplayName
in interface ConnectorDescriptor
displayName
- the value for the element display-name
ConnectorDescriptor
public String getDisplayName()
display-name
elementgetDisplayName
in interface ConnectorDescriptor
display-name
public ConnectorDescriptor removeDisplayName()
display-name
elementremoveDisplayName
in interface ConnectorDescriptor
ConnectorDescriptor
public Icon<ConnectorDescriptor> getOrCreateIcon()
icon
element with the given value will be created.
Otherwise, the existing icon
element will be returned.getOrCreateIcon
in interface ConnectorDescriptor
Icon
public ConnectorDescriptor removeIcon()
icon
elementremoveIcon
in interface ConnectorDescriptor
ConnectorDescriptor
public ConnectorDescriptor description(String description)
description
elementdescription
in interface ConnectorDescriptor
description
- the value for the element description
ConnectorDescriptor
public String getDescription()
description
elementgetDescription
in interface ConnectorDescriptor
description
public ConnectorDescriptor removeDescription()
description
elementremoveDescription
in interface ConnectorDescriptor
ConnectorDescriptor
public ConnectorDescriptor vendorName(String vendorName)
vendor-name
elementvendorName
in interface ConnectorDescriptor
vendorName
- the value for the element vendor-name
ConnectorDescriptor
public String getVendorName()
vendor-name
elementgetVendorName
in interface ConnectorDescriptor
vendor-name
public ConnectorDescriptor removeVendorName()
vendor-name
elementremoveVendorName
in interface ConnectorDescriptor
ConnectorDescriptor
public ConnectorDescriptor eisType(String eisType)
eis-type
elementeisType
in interface ConnectorDescriptor
eisType
- the value for the element eis-type
ConnectorDescriptor
public String getEisType()
eis-type
elementgetEisType
in interface ConnectorDescriptor
eis-type
public ConnectorDescriptor removeEisType()
eis-type
elementremoveEisType
in interface ConnectorDescriptor
ConnectorDescriptor
public ConnectorDescriptor version(String version)
version
elementversion
in interface ConnectorDescriptor
version
- the value for the element version
ConnectorDescriptor
public String getVersion()
version
elementgetVersion
in interface ConnectorDescriptor
version
public ConnectorDescriptor removeVersion()
version
elementremoveVersion
in interface ConnectorDescriptor
ConnectorDescriptor
public Resourceadapter<ConnectorDescriptor> getOrCreateResourceadapter()
resourceadapter
element with the given value will be created.
Otherwise, the existing resourceadapter
element will be returned.getOrCreateResourceadapter
in interface ConnectorDescriptor
Resourceadapter
public ConnectorDescriptor removeResourceadapter()
resourceadapter
elementremoveResourceadapter
in interface ConnectorDescriptor
ConnectorDescriptor
Copyright © 2021 JBoss by Red Hat. All rights reserved.