|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.shrinkwrap.descriptor.spi.DescriptorImplBase<org.jboss.shrinkwrap.descriptor.spi.node.NodeDescriptor>
org.jboss.shrinkwrap.descriptor.spi.node.NodeDescriptorImplBase
org.jboss.shrinkwrap.descriptor.test.impl.connector10.ConnectorDescriptorImpl
public class ConnectorDescriptorImpl
This deployment descriptor provides the functionalities as described in the specification
Example:
ConnectorDescriptor descriptor = Descriptors.create(ConnectorDescriptor.class);
Constructor Summary | |
---|---|
ConnectorDescriptorImpl(String descriptorName)
|
|
ConnectorDescriptorImpl(String descriptorName,
org.jboss.shrinkwrap.descriptor.spi.node.Node node)
|
Method Summary | |
---|---|
ConnectorDescriptor |
addDefaultNamespaces()
Adds the default namespaces as defined in the specification |
ConnectorDescriptor |
addNamespace(String name,
String value)
Adds a new namespace |
ConnectorDescriptor |
description(String description)
Sets the description element |
ConnectorDescriptor |
displayName(String displayName)
Sets the display-name element |
ConnectorDescriptor |
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 |
List<String> |
getNamespaces()
Returns all defined namespaces. |
Icon<ConnectorDescriptor> |
getOrCreateIcon()
If not already created, a new icon element with the given value will be created. |
License<ConnectorDescriptor> |
getOrCreateLicense()
If not already created, a new license element with the given value will be created. |
Resourceadapter<ConnectorDescriptor> |
getOrCreateResourceadapter()
If not already created, a new resourceadapter element with the given value will be created. |
org.jboss.shrinkwrap.descriptor.spi.node.Node |
getRootNode()
|
String |
getSpecVersion()
Returns the spec-version element |
String |
getVendorName()
Returns the vendor-name element |
String |
getVersion()
Returns the version element |
ConnectorDescriptor |
removeAllNamespaces()
Removes all existing namespaces. |
ConnectorDescriptor |
removeDescription()
Removes the description element |
ConnectorDescriptor |
removeDisplayName()
Removes the display-name element |
ConnectorDescriptor |
removeEisType()
Removes the eis-type element |
ConnectorDescriptor |
removeIcon()
Removes the icon element |
ConnectorDescriptor |
removeLicense()
Removes the license element |
ConnectorDescriptor |
removeResourceadapter()
Removes the resourceadapter element |
ConnectorDescriptor |
removeSpecVersion()
Removes the spec-version element |
ConnectorDescriptor |
removeVendorName()
Removes the vendor-name element |
ConnectorDescriptor |
removeVersion()
Removes the version element |
ConnectorDescriptor |
specVersion(String specVersion)
Sets the spec-version element |
ConnectorDescriptor |
vendorName(String vendorName)
Sets the vendor-name element |
ConnectorDescriptor |
version(String version)
Sets the version element |
Methods inherited from class org.jboss.shrinkwrap.descriptor.spi.node.NodeDescriptorImplBase |
---|
exportTo, getExporter |
Methods inherited from class org.jboss.shrinkwrap.descriptor.spi.DescriptorImplBase |
---|
exportAsString, getDescriptorName |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.jboss.shrinkwrap.descriptor.api.Descriptor |
---|
exportAsString, exportTo, getDescriptorName |
Constructor Detail |
---|
public ConnectorDescriptorImpl(String descriptorName)
public ConnectorDescriptorImpl(String descriptorName, org.jboss.shrinkwrap.descriptor.spi.node.Node node)
Method Detail |
---|
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 DescriptorNamespace<ConnectorDescriptor>
ConnectorDescriptor
public ConnectorDescriptor addNamespace(String name, String value)
addNamespace
in interface DescriptorNamespace<ConnectorDescriptor>
name
- the name of the namespacevalue
- the value of the namespace
ConnectorDescriptor
public List<String> getNamespaces()
getNamespaces
in interface DescriptorNamespace<ConnectorDescriptor>
public ConnectorDescriptor removeAllNamespaces()
removeAllNamespaces
in interface DescriptorNamespace<ConnectorDescriptor>
ConnectorDescriptor
public ConnectorDescriptor specVersion(String specVersion)
spec-version
element
specVersion
in interface ConnectorDescriptor
specVersion
- the value for the element spec-version
ConnectorDescriptor
public String getSpecVersion()
spec-version
element
getSpecVersion
in interface ConnectorDescriptor
spec-version
public ConnectorDescriptor removeSpecVersion()
spec-version
element
removeSpecVersion
in interface ConnectorDescriptor
ConnectorDescriptor
public Icon<ConnectorDescriptor> getOrCreateIcon()
icon
element with the given value will be created.
Otherwise, the existing icon
element will be returned.
getOrCreateIcon
in interface ConnectorDescriptor
Icon
public ConnectorDescriptor removeIcon()
icon
element
removeIcon
in interface ConnectorDescriptor
ConnectorDescriptor
public ConnectorDescriptor displayName(String displayName)
display-name
element
displayName
in interface ConnectorDescriptor
displayName
- the value for the element display-name
ConnectorDescriptor
public String getDisplayName()
display-name
element
getDisplayName
in interface ConnectorDescriptor
display-name
public ConnectorDescriptor removeDisplayName()
display-name
element
removeDisplayName
in interface ConnectorDescriptor
ConnectorDescriptor
public ConnectorDescriptor vendorName(String vendorName)
vendor-name
element
vendorName
in interface ConnectorDescriptor
vendorName
- the value for the element vendor-name
ConnectorDescriptor
public String getVendorName()
vendor-name
element
getVendorName
in interface ConnectorDescriptor
vendor-name
public ConnectorDescriptor removeVendorName()
vendor-name
element
removeVendorName
in interface ConnectorDescriptor
ConnectorDescriptor
public ConnectorDescriptor description(String description)
description
element
description
in interface ConnectorDescriptor
description
- the value for the element description
ConnectorDescriptor
public String getDescription()
description
element
getDescription
in interface ConnectorDescriptor
description
public ConnectorDescriptor removeDescription()
description
element
removeDescription
in interface ConnectorDescriptor
ConnectorDescriptor
public ConnectorDescriptor eisType(String eisType)
eis-type
element
eisType
in interface ConnectorDescriptor
eisType
- the value for the element eis-type
ConnectorDescriptor
public String getEisType()
eis-type
element
getEisType
in interface ConnectorDescriptor
eis-type
public ConnectorDescriptor removeEisType()
eis-type
element
removeEisType
in interface ConnectorDescriptor
ConnectorDescriptor
public License<ConnectorDescriptor> getOrCreateLicense()
license
element with the given value will be created.
Otherwise, the existing license
element will be returned.
getOrCreateLicense
in interface ConnectorDescriptor
License
public ConnectorDescriptor removeLicense()
license
element
removeLicense
in interface ConnectorDescriptor
ConnectorDescriptor
public Resourceadapter<ConnectorDescriptor> getOrCreateResourceadapter()
resourceadapter
element with the given value will be created.
Otherwise, the existing resourceadapter
element will be returned.
getOrCreateResourceadapter
in interface ConnectorDescriptor
Resourceadapter
public ConnectorDescriptor removeResourceadapter()
resourceadapter
element
removeResourceadapter
in interface ConnectorDescriptor
ConnectorDescriptor
public ConnectorDescriptor version(String version)
version
element
version
in interface ConnectorDescriptor
version
- the value for the element version
ConnectorDescriptor
public String getVersion()
version
element
getVersion
in interface ConnectorDescriptor
version
public ConnectorDescriptor removeVersion()
version
element
removeVersion
in interface ConnectorDescriptor
ConnectorDescriptor
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |