Interface ConnectorDescriptor
- All Superinterfaces:
org.jboss.shrinkwrap.descriptor.api.Descriptor,org.jboss.shrinkwrap.descriptor.api.DescriptorNamespace<ConnectorDescriptor>
- All Known Implementing Classes:
ConnectorDescriptorImpl
public interface ConnectorDescriptor
extends org.jboss.shrinkwrap.descriptor.api.Descriptor, org.jboss.shrinkwrap.descriptor.api.DescriptorNamespace<ConnectorDescriptor>
This deployment descriptor provides the functionalities as described in the specification
Example:
ConnectorDescriptor descriptor = Descriptors.create(ConnectorDescriptor.class);
-
Method Summary
Modifier and TypeMethodDescriptiondescription(String description) Sets thedescriptionelementdisplayName(String displayName) Sets thedisplay-nameelementSets theeis-typeelementReturns thedescriptionelementReturns thedisplay-nameelementReturns theeis-typeelementIf not already created, a newiconelement with the given value will be created.If not already created, a newlicenseelement with the given value will be created.If not already created, a newresourceadapterelement with the given value will be created.Returns thespec-versionelementReturns thevendor-nameelementReturns theversionelementRemoves thedescriptionelementRemoves thedisplay-nameelementRemoves theeis-typeelementRemoves theiconelementRemoves thelicenseelementRemoves theresourceadapterelementRemoves thespec-versionelementRemoves thevendor-nameelementRemoves theversionelementspecVersion(String specVersion) Sets thespec-versionelementvendorName(String vendorName) Sets thevendor-nameelementSets theversionelementMethods inherited from interface org.jboss.shrinkwrap.descriptor.api.Descriptor
exportAsString, exportTo, getDescriptorNameMethods inherited from interface org.jboss.shrinkwrap.descriptor.api.DescriptorNamespace
addDefaultNamespaces, addNamespace, getNamespaces, removeAllNamespaces
-
Method Details
-
specVersion
Sets thespec-versionelement- Parameters:
specVersion- the value for the elementspec-version- Returns:
- the current instance of
ConnectorDescriptor
-
getSpecVersion
String getSpecVersion()Returns thespec-versionelement- Returns:
- the node defined for the element
spec-version
-
removeSpecVersion
ConnectorDescriptor removeSpecVersion()Removes thespec-versionelement- Returns:
- the current instance of
ConnectorDescriptor
-
getOrCreateLicense
License<ConnectorDescriptor> getOrCreateLicense()If not already created, a newlicenseelement with the given value will be created. Otherwise, the existinglicenseelement will be returned.- Returns:
- a new or existing instance of
License
-
removeLicense
ConnectorDescriptor removeLicense()Removes thelicenseelement- Returns:
- the current instance of
ConnectorDescriptor
-
displayName
Sets thedisplay-nameelement- Parameters:
displayName- the value for the elementdisplay-name- Returns:
- the current instance of
ConnectorDescriptor
-
getDisplayName
String getDisplayName()Returns thedisplay-nameelement- Returns:
- the node defined for the element
display-name
-
removeDisplayName
ConnectorDescriptor removeDisplayName()Removes thedisplay-nameelement- Returns:
- the current instance of
ConnectorDescriptor
-
getOrCreateIcon
Icon<ConnectorDescriptor> getOrCreateIcon()If not already created, a newiconelement with the given value will be created. Otherwise, the existingiconelement will be returned.- Returns:
- a new or existing instance of
Icon
-
removeIcon
ConnectorDescriptor removeIcon()Removes theiconelement- Returns:
- the current instance of
ConnectorDescriptor
-
description
Sets thedescriptionelement- Parameters:
description- the value for the elementdescription- Returns:
- the current instance of
ConnectorDescriptor
-
getDescription
String getDescription()Returns thedescriptionelement- Returns:
- the node defined for the element
description
-
removeDescription
ConnectorDescriptor removeDescription()Removes thedescriptionelement- Returns:
- the current instance of
ConnectorDescriptor
-
vendorName
Sets thevendor-nameelement- Parameters:
vendorName- the value for the elementvendor-name- Returns:
- the current instance of
ConnectorDescriptor
-
getVendorName
String getVendorName()Returns thevendor-nameelement- Returns:
- the node defined for the element
vendor-name
-
removeVendorName
ConnectorDescriptor removeVendorName()Removes thevendor-nameelement- Returns:
- the current instance of
ConnectorDescriptor
-
eisType
Sets theeis-typeelement- Parameters:
eisType- the value for the elementeis-type- Returns:
- the current instance of
ConnectorDescriptor
-
getEisType
String getEisType()Returns theeis-typeelement- Returns:
- the node defined for the element
eis-type
-
removeEisType
ConnectorDescriptor removeEisType()Removes theeis-typeelement- Returns:
- the current instance of
ConnectorDescriptor
-
version
Sets theversionelement- Parameters:
version- the value for the elementversion- Returns:
- the current instance of
ConnectorDescriptor
-
getVersion
String getVersion()Returns theversionelement- Returns:
- the node defined for the element
version
-
removeVersion
ConnectorDescriptor removeVersion()Removes theversionelement- Returns:
- the current instance of
ConnectorDescriptor
-
getOrCreateResourceadapter
Resourceadapter<ConnectorDescriptor> getOrCreateResourceadapter()If not already created, a newresourceadapterelement with the given value will be created. Otherwise, the existingresourceadapterelement will be returned.- Returns:
- a new or existing instance of
Resourceadapter
-
removeResourceadapter
ConnectorDescriptor removeResourceadapter()Removes theresourceadapterelement- Returns:
- the current instance of
ConnectorDescriptor
-