public class ConnectorImpl<T> extends Object implements Child<T>, Connector<T>
connector
xsd typeConstructor and 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) |
Modifier and Type | Method and Description |
---|---|
Connector<T> |
description(String description)
Sets the
description element |
Connector<T> |
displayName(String displayName)
Sets the
display-name element |
Connector<T> |
eisType(String eisType)
Sets the
eis-type element |
String |
getDescription()
Returns the
description element |
String |
getDisplayName()
Returns the
display-name element |
String |
getEisType()
Returns the
eis-type element |
Icon<Connector<T>> |
getOrCreateIcon()
If not already created, a new
icon element with the given value will be created. |
License<Connector<T>> |
getOrCreateLicense()
If not already created, a new
license element with the given value will be created. |
Resourceadapter<Connector<T>> |
getOrCreateResourceadapter()
If not already created, a new
resourceadapter element with the given value will be created. |
String |
getSpecVersion()
Returns the
spec-version element |
String |
getVendorName()
Returns the
vendor-name element |
String |
getVersion()
Returns the
version element |
Connector<T> |
removeDescription()
Removes the
description element |
Connector<T> |
removeDisplayName()
Removes the
display-name element |
Connector<T> |
removeEisType()
Removes the
eis-type element |
Connector<T> |
removeIcon()
Removes the
icon element |
Connector<T> |
removeLicense()
Removes the
license element |
Connector<T> |
removeResourceadapter()
Removes the
resourceadapter element |
Connector<T> |
removeSpecVersion()
Removes the
spec-version element |
Connector<T> |
removeVendorName()
Removes the
vendor-name element |
Connector<T> |
removeVersion()
Removes the
version element |
Connector<T> |
specVersion(String specVersion)
Sets the
spec-version element |
T |
up()
Returns the parent of this
Child |
Connector<T> |
vendorName(String vendorName)
Sets the
vendor-name element |
Connector<T> |
version(String version)
Sets the
version element |
public ConnectorImpl(T t, String nodeName, org.jboss.shrinkwrap.descriptor.spi.node.Node node)
public Connector<T> specVersion(String specVersion)
spec-version
elementspecVersion
in interface Connector<T>
specVersion
- the value for the element spec-version
Connector
public String getSpecVersion()
spec-version
elementgetSpecVersion
in interface Connector<T>
spec-version
public Connector<T> removeSpecVersion()
spec-version
elementremoveSpecVersion
in interface Connector<T>
Connector
public Icon<Connector<T>> getOrCreateIcon()
icon
element with the given value will be created.
Otherwise, the existing icon
element will be returned.getOrCreateIcon
in interface Connector<T>
Icon>
public Connector<T> removeIcon()
icon
elementremoveIcon
in interface Connector<T>
Connector
public Connector<T> displayName(String displayName)
display-name
elementdisplayName
in interface Connector<T>
displayName
- the value for the element display-name
Connector
public String getDisplayName()
display-name
elementgetDisplayName
in interface Connector<T>
display-name
public Connector<T> removeDisplayName()
display-name
elementremoveDisplayName
in interface Connector<T>
Connector
public Connector<T> vendorName(String vendorName)
vendor-name
elementvendorName
in interface Connector<T>
vendorName
- the value for the element vendor-name
Connector
public String getVendorName()
vendor-name
elementgetVendorName
in interface Connector<T>
vendor-name
public Connector<T> removeVendorName()
vendor-name
elementremoveVendorName
in interface Connector<T>
Connector
public Connector<T> description(String description)
description
elementdescription
in interface Connector<T>
description
- the value for the element description
Connector
public String getDescription()
description
elementgetDescription
in interface Connector<T>
description
public Connector<T> removeDescription()
description
elementremoveDescription
in interface Connector<T>
Connector
public String getEisType()
eis-type
elementgetEisType
in interface Connector<T>
eis-type
public Connector<T> removeEisType()
eis-type
elementremoveEisType
in interface Connector<T>
Connector
public License<Connector<T>> getOrCreateLicense()
license
element with the given value will be created.
Otherwise, the existing license
element will be returned.getOrCreateLicense
in interface Connector<T>
License>
public Connector<T> removeLicense()
license
elementremoveLicense
in interface Connector<T>
Connector
public Resourceadapter<Connector<T>> getOrCreateResourceadapter()
resourceadapter
element with the given value will be created.
Otherwise, the existing resourceadapter
element will be returned.getOrCreateResourceadapter
in interface Connector<T>
Resourceadapter>
public Connector<T> removeResourceadapter()
resourceadapter
elementremoveResourceadapter
in interface Connector<T>
Connector
public String getVersion()
version
elementgetVersion
in interface Connector<T>
version
public Connector<T> removeVersion()
version
elementremoveVersion
in interface Connector<T>
Connector
Copyright © 2012 JBoss, a division of Red Hat, Inc.. All Rights Reserved.