org.jboss.shrinkwrap.descriptor.test.impl.connector10
Class ConnectorImpl<T>

java.lang.Object
  extended by org.jboss.shrinkwrap.descriptor.test.impl.connector10.ConnectorImpl<T>
All Implemented Interfaces:
Child<T>, Connector<T>

public class ConnectorImpl<T>
extends Object
implements Child<T>, Connector<T>

This class implements the connector xsd type

Since:
Generation date :2013-01-26T19:27:02.583+01:00
Author:
Ralf Battenfeld, Andrew Lee Rubinger

Constructor Summary
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
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectorImpl

public ConnectorImpl(T t,
                     String nodeName,
                     org.jboss.shrinkwrap.descriptor.spi.node.Node node)

ConnectorImpl

public ConnectorImpl(T t,
                     String nodeName,
                     org.jboss.shrinkwrap.descriptor.spi.node.Node node,
                     org.jboss.shrinkwrap.descriptor.spi.node.Node childNode)
Method Detail

up

public T up()
Description copied from interface: Child
Returns the parent of this Child

Specified by:
up in interface Child<T>
Returns:
The parent of this Child

specVersion

public Connector<T> specVersion(String specVersion)
Sets the spec-version element

Specified by:
specVersion in interface Connector<T>
Parameters:
specVersion - the value for the element spec-version
Returns:
the current instance of Connector

getSpecVersion

public String getSpecVersion()
Returns the spec-version element

Specified by:
getSpecVersion in interface Connector<T>
Returns:
the node defined for the element spec-version

removeSpecVersion

public Connector<T> removeSpecVersion()
Removes the spec-version element

Specified by:
removeSpecVersion in interface Connector<T>
Returns:
the current instance of Connector

getOrCreateIcon

public Icon<Connector<T>> getOrCreateIcon()
If not already created, a new icon element with the given value will be created. Otherwise, the existing icon element will be returned.

Specified by:
getOrCreateIcon in interface Connector<T>
Returns:
a new or existing instance of Icon>

removeIcon

public Connector<T> removeIcon()
Removes the icon element

Specified by:
removeIcon in interface Connector<T>
Returns:
the current instance of Connector

displayName

public Connector<T> displayName(String displayName)
Sets the display-name element

Specified by:
displayName in interface Connector<T>
Parameters:
displayName - the value for the element display-name
Returns:
the current instance of Connector

getDisplayName

public String getDisplayName()
Returns the display-name element

Specified by:
getDisplayName in interface Connector<T>
Returns:
the node defined for the element display-name

removeDisplayName

public Connector<T> removeDisplayName()
Removes the display-name element

Specified by:
removeDisplayName in interface Connector<T>
Returns:
the current instance of Connector

vendorName

public Connector<T> vendorName(String vendorName)
Sets the vendor-name element

Specified by:
vendorName in interface Connector<T>
Parameters:
vendorName - the value for the element vendor-name
Returns:
the current instance of Connector

getVendorName

public String getVendorName()
Returns the vendor-name element

Specified by:
getVendorName in interface Connector<T>
Returns:
the node defined for the element vendor-name

removeVendorName

public Connector<T> removeVendorName()
Removes the vendor-name element

Specified by:
removeVendorName in interface Connector<T>
Returns:
the current instance of Connector

description

public Connector<T> description(String description)
Sets the description element

Specified by:
description in interface Connector<T>
Parameters:
description - the value for the element description
Returns:
the current instance of Connector

getDescription

public String getDescription()
Returns the description element

Specified by:
getDescription in interface Connector<T>
Returns:
the node defined for the element description

removeDescription

public Connector<T> removeDescription()
Removes the description element

Specified by:
removeDescription in interface Connector<T>
Returns:
the current instance of Connector

eisType

public Connector<T> eisType(String eisType)
Sets the eis-type element

Specified by:
eisType in interface Connector<T>
Parameters:
eisType - the value for the element eis-type
Returns:
the current instance of Connector

getEisType

public String getEisType()
Returns the eis-type element

Specified by:
getEisType in interface Connector<T>
Returns:
the node defined for the element eis-type

removeEisType

public Connector<T> removeEisType()
Removes the eis-type element

Specified by:
removeEisType in interface Connector<T>
Returns:
the current instance of Connector

getOrCreateLicense

public License<Connector<T>> getOrCreateLicense()
If not already created, a new license element with the given value will be created. Otherwise, the existing license element will be returned.

Specified by:
getOrCreateLicense in interface Connector<T>
Returns:
a new or existing instance of License>

removeLicense

public Connector<T> removeLicense()
Removes the license element

Specified by:
removeLicense in interface Connector<T>
Returns:
the current instance of Connector

getOrCreateResourceadapter

public Resourceadapter<Connector<T>> getOrCreateResourceadapter()
If not already created, a new resourceadapter element with the given value will be created. Otherwise, the existing resourceadapter element will be returned.

Specified by:
getOrCreateResourceadapter in interface Connector<T>
Returns:
a new or existing instance of Resourceadapter>

removeResourceadapter

public Connector<T> removeResourceadapter()
Removes the resourceadapter element

Specified by:
removeResourceadapter in interface Connector<T>
Returns:
the current instance of Connector

version

public Connector<T> version(String version)
Sets the version element

Specified by:
version in interface Connector<T>
Parameters:
version - the value for the element version
Returns:
the current instance of Connector

getVersion

public String getVersion()
Returns the version element

Specified by:
getVersion in interface Connector<T>
Returns:
the node defined for the element version

removeVersion

public Connector<T> removeVersion()
Removes the version element

Specified by:
removeVersion in interface Connector<T>
Returns:
the current instance of Connector


Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.