Class ConnectorImpl<T>
- java.lang.Object
-
- org.jboss.shrinkwrap.descriptor.impl.connector10.ConnectorImpl<T>
-
-
Constructor Summary
Constructors Constructor Description ConnectorImpl(T t, String nodeName, org.jboss.shrinkwrap.descriptor.spi.node.Node node)ConnectorImpl(T t, String nodeName, org.jboss.shrinkwrap.descriptor.spi.node.Node node, org.jboss.shrinkwrap.descriptor.spi.node.Node childNode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Connector<T>description(String description)Sets thedescriptionelementConnector<T>displayName(String displayName)Sets thedisplay-nameelementConnector<T>eisType(String eisType)Sets theeis-typeelementStringgetDescription()Returns thedescriptionelementStringgetDisplayName()Returns thedisplay-nameelementStringgetEisType()Returns theeis-typeelementIcon<Connector<T>>getOrCreateIcon()If not already created, a newiconelement with the given value will be created.License<Connector<T>>getOrCreateLicense()If not already created, a newlicenseelement with the given value will be created.Resourceadapter<Connector<T>>getOrCreateResourceadapter()If not already created, a newresourceadapterelement with the given value will be created.StringgetSpecVersion()Returns thespec-versionelementStringgetVendorName()Returns thevendor-nameelementStringgetVersion()Returns theversionelementConnector<T>removeDescription()Removes thedescriptionelementConnector<T>removeDisplayName()Removes thedisplay-nameelementConnector<T>removeEisType()Removes theeis-typeelementConnector<T>removeIcon()Removes theiconelementConnector<T>removeLicense()Removes thelicenseelementConnector<T>removeResourceadapter()Removes theresourceadapterelementConnector<T>removeSpecVersion()Removes thespec-versionelementConnector<T>removeVendorName()Removes thevendor-nameelementConnector<T>removeVersion()Removes theversionelementConnector<T>specVersion(String specVersion)Sets thespec-versionelementTup()Connector<T>vendorName(String vendorName)Sets thevendor-nameelementConnector<T>version(String version)Sets theversionelement
-
-
-
Method Detail
-
specVersion
public Connector<T> specVersion(String specVersion)
Sets thespec-versionelement- Specified by:
specVersionin interfaceConnector<T>- Parameters:
specVersion- the value for the elementspec-version- Returns:
- the current instance of
Connector
-
getSpecVersion
public String getSpecVersion()
Returns thespec-versionelement- Specified by:
getSpecVersionin interfaceConnector<T>- Returns:
- the node defined for the element
spec-version
-
removeSpecVersion
public Connector<T> removeSpecVersion()
Removes thespec-versionelement- Specified by:
removeSpecVersionin interfaceConnector<T>- Returns:
- the current instance of
Connector
-
getOrCreateLicense
public License<Connector<T>> getOrCreateLicense()
If not already created, a newlicenseelement with the given value will be created. Otherwise, the existinglicenseelement will be returned.- Specified by:
getOrCreateLicensein interfaceConnector<T>- Returns:
- a new or existing instance of
License>
-
removeLicense
public Connector<T> removeLicense()
Removes thelicenseelement- Specified by:
removeLicensein interfaceConnector<T>- Returns:
- the current instance of
Connector
-
displayName
public Connector<T> displayName(String displayName)
Sets thedisplay-nameelement- Specified by:
displayNamein interfaceConnector<T>- Parameters:
displayName- the value for the elementdisplay-name- Returns:
- the current instance of
Connector
-
getDisplayName
public String getDisplayName()
Returns thedisplay-nameelement- Specified by:
getDisplayNamein interfaceConnector<T>- Returns:
- the node defined for the element
display-name
-
removeDisplayName
public Connector<T> removeDisplayName()
Removes thedisplay-nameelement- Specified by:
removeDisplayNamein interfaceConnector<T>- Returns:
- the current instance of
Connector
-
getOrCreateIcon
public Icon<Connector<T>> getOrCreateIcon()
If not already created, a newiconelement with the given value will be created. Otherwise, the existingiconelement will be returned.- Specified by:
getOrCreateIconin interfaceConnector<T>- Returns:
- a new or existing instance of
Icon>
-
removeIcon
public Connector<T> removeIcon()
Removes theiconelement- Specified by:
removeIconin interfaceConnector<T>- Returns:
- the current instance of
Connector
-
description
public Connector<T> description(String description)
Sets thedescriptionelement- Specified by:
descriptionin interfaceConnector<T>- Parameters:
description- the value for the elementdescription- Returns:
- the current instance of
Connector
-
getDescription
public String getDescription()
Returns thedescriptionelement- Specified by:
getDescriptionin interfaceConnector<T>- Returns:
- the node defined for the element
description
-
removeDescription
public Connector<T> removeDescription()
Removes thedescriptionelement- Specified by:
removeDescriptionin interfaceConnector<T>- Returns:
- the current instance of
Connector
-
vendorName
public Connector<T> vendorName(String vendorName)
Sets thevendor-nameelement- Specified by:
vendorNamein interfaceConnector<T>- Parameters:
vendorName- the value for the elementvendor-name- Returns:
- the current instance of
Connector
-
getVendorName
public String getVendorName()
Returns thevendor-nameelement- Specified by:
getVendorNamein interfaceConnector<T>- Returns:
- the node defined for the element
vendor-name
-
removeVendorName
public Connector<T> removeVendorName()
Removes thevendor-nameelement- Specified by:
removeVendorNamein interfaceConnector<T>- Returns:
- the current instance of
Connector
-
getEisType
public String getEisType()
Returns theeis-typeelement- Specified by:
getEisTypein interfaceConnector<T>- Returns:
- the node defined for the element
eis-type
-
removeEisType
public Connector<T> removeEisType()
Removes theeis-typeelement- Specified by:
removeEisTypein interfaceConnector<T>- Returns:
- the current instance of
Connector
-
getVersion
public String getVersion()
Returns theversionelement- Specified by:
getVersionin interfaceConnector<T>- Returns:
- the node defined for the element
version
-
removeVersion
public Connector<T> removeVersion()
Removes theversionelement- Specified by:
removeVersionin interfaceConnector<T>- Returns:
- the current instance of
Connector
-
getOrCreateResourceadapter
public Resourceadapter<Connector<T>> getOrCreateResourceadapter()
If not already created, a newresourceadapterelement with the given value will be created. Otherwise, the existingresourceadapterelement will be returned.- Specified by:
getOrCreateResourceadapterin interfaceConnector<T>- Returns:
- a new or existing instance of
Resourceadapter>
-
removeResourceadapter
public Connector<T> removeResourceadapter()
Removes theresourceadapterelement- Specified by:
removeResourceadapterin interfaceConnector<T>- Returns:
- the current instance of
Connector
-
-