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);
VERSION| 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
|
IconType<ConnectorDescriptor> |
createIcon()
Creates a new
icon element |
ConnectorDescriptor |
description(String... values)
Creates for all String objects representing
description elements,
a new description element |
ConnectorDescriptor |
displayName(String... values)
Creates for all String objects representing
display-name elements,
a new display-name element |
ConnectorDescriptor |
eisType(String eisType)
Sets the
eis-type element |
List<String> |
getAllDescription()
Returns all
description elements |
List<String> |
getAllDisplayName()
Returns all
display-name elements |
List<IconType<ConnectorDescriptor>> |
getAllIcon()
Returns all
icon elements |
List<String> |
getAllRequiredWorkContext()
Returns all
required-work-context elements |
String |
getEisType()
Returns the
eis-type element |
String |
getId()
Returns the
id attribute |
String |
getModuleName()
Returns the
module-name element |
List<String> |
getNamespaces()
Returns all defined namespaces.
|
IconType<ConnectorDescriptor> |
getOrCreateIcon()
If not already created, a new
icon element will be created and returned. |
LicenseType<ConnectorDescriptor> |
getOrCreateLicense()
If not already created, a new
license element with the given value will be created. |
ResourceadapterType<ConnectorDescriptor> |
getOrCreateResourceadapter()
If not already created, a new
resourceadapter element with the given value will be created. |
String |
getResourceadapterVersion()
Returns the
resourceadapter-version element |
org.jboss.shrinkwrap.descriptor.spi.node.Node |
getRootNode() |
String |
getVendorName()
Returns the
vendor-name element |
String |
getVersion()
Returns the
version attribute |
ConnectorDescriptor |
id(String id)
Sets the
id attribute |
Boolean |
isMetadataComplete()
Returns the
metadata-complete attribute |
ConnectorDescriptor |
metadataComplete(Boolean metadataComplete)
Sets the
metadata-complete attribute |
ConnectorDescriptor |
moduleName(String moduleName)
Sets the
module-name element |
ConnectorDescriptor |
removeAllDescription()
Removes the
description element |
ConnectorDescriptor |
removeAllDisplayName()
Removes the
display-name element |
ConnectorDescriptor |
removeAllIcon()
Removes all
icon elements |
ConnectorDescriptor |
removeAllNamespaces()
Removes all existing namespaces.
|
ConnectorDescriptor |
removeAllRequiredWorkContext()
Removes the
required-work-context element |
ConnectorDescriptor |
removeEisType()
Removes the
eis-type element |
ConnectorDescriptor |
removeId()
Removes the
id attribute |
ConnectorDescriptor |
removeLicense()
Removes the
license element |
ConnectorDescriptor |
removeMetadataComplete()
Removes the
metadata-complete attribute |
ConnectorDescriptor |
removeModuleName()
Removes the
module-name element |
ConnectorDescriptor |
removeResourceadapter()
Removes the
resourceadapter element |
ConnectorDescriptor |
removeResourceadapterVersion()
Removes the
resourceadapter-version element |
ConnectorDescriptor |
removeVendorName()
Removes the
vendor-name element |
ConnectorDescriptor |
removeVersion()
Removes the
version attribute |
ConnectorDescriptor |
requiredWorkContext(String... values)
Creates for all String objects representing
required-work-context elements,
a new required-work-context element |
ConnectorDescriptor |
resourceadapterVersion(String resourceadapterVersion)
Sets the
resourceadapter-version element |
ConnectorDescriptor |
vendorName(String vendorName)
Sets the
vendor-name element |
ConnectorDescriptor |
version(String version)
Sets the
version attribute |
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 moduleName(String moduleName)
module-name elementmoduleName in interface ConnectorDescriptormoduleName - the value for the element module-nameConnectorDescriptorpublic String getModuleName()
module-name elementgetModuleName in interface ConnectorDescriptormodule-namepublic ConnectorDescriptor removeModuleName()
module-name elementremoveModuleName 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 resourceadapterVersion(String resourceadapterVersion)
resourceadapter-version elementresourceadapterVersion in interface ConnectorDescriptorresourceadapterVersion - the value for the element resourceadapter-versionConnectorDescriptorpublic String getResourceadapterVersion()
resourceadapter-version elementgetResourceadapterVersion in interface ConnectorDescriptorresourceadapter-versionpublic ConnectorDescriptor removeResourceadapterVersion()
resourceadapter-version elementremoveResourceadapterVersion in interface ConnectorDescriptorConnectorDescriptorpublic LicenseType<ConnectorDescriptor> getOrCreateLicense()
license element with the given value will be created.
Otherwise, the existing license element will be returned.getOrCreateLicense in interface ConnectorDescriptorLicenseTypepublic ConnectorDescriptor removeLicense()
license elementremoveLicense in interface ConnectorDescriptorConnectorDescriptorpublic ResourceadapterType<ConnectorDescriptor> getOrCreateResourceadapter()
resourceadapter element with the given value will be created.
Otherwise, the existing resourceadapter element will be returned.getOrCreateResourceadapter in interface ConnectorDescriptorResourceadapterTypepublic ConnectorDescriptor removeResourceadapter()
resourceadapter elementremoveResourceadapter in interface ConnectorDescriptorConnectorDescriptorpublic ConnectorDescriptor requiredWorkContext(String... values)
required-work-context elements,
a new required-work-context elementrequiredWorkContext in interface ConnectorDescriptorvalues - list of required-work-context objectsConnectorDescriptorpublic List<String> getAllRequiredWorkContext()
required-work-context elementsgetAllRequiredWorkContext in interface ConnectorDescriptorrequired-work-contextpublic ConnectorDescriptor removeAllRequiredWorkContext()
required-work-context elementremoveAllRequiredWorkContext in interface ConnectorDescriptorConnectorDescriptorpublic ConnectorDescriptor version(String version)
version attributeversion in interface ConnectorDescriptorversion - the value for the attribute versionConnectorDescriptorpublic String getVersion()
version attributegetVersion in interface ConnectorDescriptorversionpublic ConnectorDescriptor removeVersion()
version attributeremoveVersion in interface ConnectorDescriptorConnectorDescriptorpublic ConnectorDescriptor metadataComplete(Boolean metadataComplete)
metadata-complete attributemetadataComplete in interface ConnectorDescriptormetadataComplete - the value for the attribute metadata-completeConnectorDescriptorpublic Boolean isMetadataComplete()
metadata-complete attributeisMetadataComplete in interface ConnectorDescriptormetadata-completepublic ConnectorDescriptor removeMetadataComplete()
metadata-complete attributeremoveMetadataComplete in interface ConnectorDescriptorConnectorDescriptorpublic ConnectorDescriptor id(String id)
id attributeid in interface ConnectorDescriptorid - the value for the attribute idConnectorDescriptorpublic String getId()
id attributegetId in interface ConnectorDescriptoridpublic ConnectorDescriptor removeId()
id attributeremoveId in interface ConnectorDescriptorConnectorDescriptorpublic ConnectorDescriptor description(String... values)
description elements,
a new description elementdescription in interface ConnectorDescriptorvalues - list of description objectsConnectorDescriptorpublic List<String> getAllDescription()
description elementsgetAllDescription in interface ConnectorDescriptordescriptionpublic ConnectorDescriptor removeAllDescription()
description elementremoveAllDescription in interface ConnectorDescriptorConnectorDescriptorpublic ConnectorDescriptor displayName(String... values)
display-name elements,
a new display-name elementdisplayName in interface ConnectorDescriptorvalues - list of display-name objectsConnectorDescriptorpublic List<String> getAllDisplayName()
display-name elementsgetAllDisplayName in interface ConnectorDescriptordisplay-namepublic ConnectorDescriptor removeAllDisplayName()
display-name elementremoveAllDisplayName in interface ConnectorDescriptorConnectorDescriptorpublic IconType<ConnectorDescriptor> getOrCreateIcon()
icon element will be created and returned.
Otherwise, the first existing icon element will be returned.getOrCreateIcon in interface ConnectorDescriptoriconpublic IconType<ConnectorDescriptor> createIcon()
icon elementcreateIcon in interface ConnectorDescriptorIconTypepublic List<IconType<ConnectorDescriptor>> getAllIcon()
icon elementsgetAllIcon in interface ConnectorDescriptoriconpublic ConnectorDescriptor removeAllIcon()
icon elementsremoveAllIcon in interface ConnectorDescriptorIconTypeCopyright © 2021 JBoss by Red Hat. All rights reserved.