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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ConnectorDescriptordescription(String description)Sets thedescriptionelementConnectorDescriptordisplayName(String displayName)Sets thedisplay-nameelementConnectorDescriptoreisType(String eisType)Sets theeis-typeelementStringgetDescription()Returns thedescriptionelementStringgetDisplayName()Returns thedisplay-nameelementStringgetEisType()Returns theeis-typeelementIcon<ConnectorDescriptor>getOrCreateIcon()If not already created, a newiconelement with the given value will be created.License<ConnectorDescriptor>getOrCreateLicense()If not already created, a newlicenseelement with the given value will be created.Resourceadapter<ConnectorDescriptor>getOrCreateResourceadapter()If not already created, a newresourceadapterelement with the given value will be created.StringgetSpecVersion()Returns thespec-versionelementStringgetVendorName()Returns thevendor-nameelementStringgetVersion()Returns theversionelementConnectorDescriptorremoveDescription()Removes thedescriptionelementConnectorDescriptorremoveDisplayName()Removes thedisplay-nameelementConnectorDescriptorremoveEisType()Removes theeis-typeelementConnectorDescriptorremoveIcon()Removes theiconelementConnectorDescriptorremoveLicense()Removes thelicenseelementConnectorDescriptorremoveResourceadapter()Removes theresourceadapterelementConnectorDescriptorremoveSpecVersion()Removes thespec-versionelementConnectorDescriptorremoveVendorName()Removes thevendor-nameelementConnectorDescriptorremoveVersion()Removes theversionelementConnectorDescriptorspecVersion(String specVersion)Sets thespec-versionelementConnectorDescriptorvendorName(String vendorName)Sets thevendor-nameelementConnectorDescriptorversion(String version)Sets theversionelement
-
-
-
Method Detail
-
specVersion
ConnectorDescriptor specVersion(String 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
ConnectorDescriptor displayName(String 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
ConnectorDescriptor description(String 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
ConnectorDescriptor vendorName(String 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
ConnectorDescriptor eisType(String 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
ConnectorDescriptor version(String 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
-
-