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, getExporter
exportAsString, 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()
getRootNode
in interface org.jboss.shrinkwrap.descriptor.spi.node.NodeDescriptor
public ConnectorDescriptor addDefaultNamespaces()
addDefaultNamespaces
in interface org.jboss.shrinkwrap.descriptor.api.DescriptorNamespace<ConnectorDescriptor>
ConnectorDescriptor
public ConnectorDescriptor addNamespace(String name, String value)
addNamespace
in interface org.jboss.shrinkwrap.descriptor.api.DescriptorNamespace<ConnectorDescriptor>
ConnectorDescriptor
public 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>
ConnectorDescriptor
public ConnectorDescriptor moduleName(String moduleName)
module-name
elementmoduleName
in interface ConnectorDescriptor
moduleName
- the value for the element module-name
ConnectorDescriptor
public String getModuleName()
module-name
elementgetModuleName
in interface ConnectorDescriptor
module-name
public ConnectorDescriptor removeModuleName()
module-name
elementremoveModuleName
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 resourceadapterVersion(String resourceadapterVersion)
resourceadapter-version
elementresourceadapterVersion
in interface ConnectorDescriptor
resourceadapterVersion
- the value for the element resourceadapter-version
ConnectorDescriptor
public String getResourceadapterVersion()
resourceadapter-version
elementgetResourceadapterVersion
in interface ConnectorDescriptor
resourceadapter-version
public ConnectorDescriptor removeResourceadapterVersion()
resourceadapter-version
elementremoveResourceadapterVersion
in interface ConnectorDescriptor
ConnectorDescriptor
public LicenseType<ConnectorDescriptor> getOrCreateLicense()
license
element with the given value will be created.
Otherwise, the existing license
element will be returned.getOrCreateLicense
in interface ConnectorDescriptor
LicenseType
public ConnectorDescriptor removeLicense()
license
elementremoveLicense
in interface ConnectorDescriptor
ConnectorDescriptor
public ResourceadapterType<ConnectorDescriptor> getOrCreateResourceadapter()
resourceadapter
element with the given value will be created.
Otherwise, the existing resourceadapter
element will be returned.getOrCreateResourceadapter
in interface ConnectorDescriptor
ResourceadapterType
public ConnectorDescriptor removeResourceadapter()
resourceadapter
elementremoveResourceadapter
in interface ConnectorDescriptor
ConnectorDescriptor
public ConnectorDescriptor requiredWorkContext(String... values)
required-work-context
elements,
a new required-work-context
elementrequiredWorkContext
in interface ConnectorDescriptor
values
- list of required-work-context
objectsConnectorDescriptor
public List<String> getAllRequiredWorkContext()
required-work-context
elementsgetAllRequiredWorkContext
in interface ConnectorDescriptor
required-work-context
public ConnectorDescriptor removeAllRequiredWorkContext()
required-work-context
elementremoveAllRequiredWorkContext
in interface ConnectorDescriptor
ConnectorDescriptor
public ConnectorDescriptor version(String version)
version
attributeversion
in interface ConnectorDescriptor
version
- the value for the attribute version
ConnectorDescriptor
public String getVersion()
version
attributegetVersion
in interface ConnectorDescriptor
version
public ConnectorDescriptor removeVersion()
version
attributeremoveVersion
in interface ConnectorDescriptor
ConnectorDescriptor
public ConnectorDescriptor metadataComplete(Boolean metadataComplete)
metadata-complete
attributemetadataComplete
in interface ConnectorDescriptor
metadataComplete
- the value for the attribute metadata-complete
ConnectorDescriptor
public Boolean isMetadataComplete()
metadata-complete
attributeisMetadataComplete
in interface ConnectorDescriptor
metadata-complete
public ConnectorDescriptor removeMetadataComplete()
metadata-complete
attributeremoveMetadataComplete
in interface ConnectorDescriptor
ConnectorDescriptor
public ConnectorDescriptor id(String id)
id
attributeid
in interface ConnectorDescriptor
id
- the value for the attribute id
ConnectorDescriptor
public String getId()
id
attributegetId
in interface ConnectorDescriptor
id
public ConnectorDescriptor removeId()
id
attributeremoveId
in interface ConnectorDescriptor
ConnectorDescriptor
public ConnectorDescriptor description(String... values)
description
elements,
a new description
elementdescription
in interface ConnectorDescriptor
values
- list of description
objectsConnectorDescriptor
public List<String> getAllDescription()
description
elementsgetAllDescription
in interface ConnectorDescriptor
description
public ConnectorDescriptor removeAllDescription()
description
elementremoveAllDescription
in interface ConnectorDescriptor
ConnectorDescriptor
public ConnectorDescriptor displayName(String... values)
display-name
elements,
a new display-name
elementdisplayName
in interface ConnectorDescriptor
values
- list of display-name
objectsConnectorDescriptor
public List<String> getAllDisplayName()
display-name
elementsgetAllDisplayName
in interface ConnectorDescriptor
display-name
public ConnectorDescriptor removeAllDisplayName()
display-name
elementremoveAllDisplayName
in interface ConnectorDescriptor
ConnectorDescriptor
public IconType<ConnectorDescriptor> getOrCreateIcon()
icon
element will be created and returned.
Otherwise, the first existing icon
element will be returned.getOrCreateIcon
in interface ConnectorDescriptor
icon
public IconType<ConnectorDescriptor> createIcon()
icon
elementcreateIcon
in interface ConnectorDescriptor
IconType
public List<IconType<ConnectorDescriptor>> getAllIcon()
icon
elementsgetAllIcon
in interface ConnectorDescriptor
icon
public ConnectorDescriptor removeAllIcon()
icon
elementsremoveAllIcon
in interface ConnectorDescriptor
IconType
Copyright © 2021 JBoss by Red Hat. All rights reserved.