org.jboss.shrinkwrap.descriptor.impl.jboss51
Class LocalBindingTypeImpl<T>

java.lang.Object
  extended by org.jboss.shrinkwrap.descriptor.impl.jboss51.LocalBindingTypeImpl<T>
All Implemented Interfaces:
org.jboss.shrinkwrap.descriptor.api.Child<T>, LocalBindingType<T>

public class LocalBindingTypeImpl<T>
extends java.lang.Object
implements org.jboss.shrinkwrap.descriptor.api.Child<T>, LocalBindingType<T>

This class implements the local-bindingType xsd type

Original Documentation:



Element for specifying the local jndi binding for a bean.


Since:
Generation date :2011-07-19T22:54:35.59+02:00
Author:
Ralf Battenfeld

Constructor Summary
LocalBindingTypeImpl(T t, java.lang.String nodeName, org.jboss.shrinkwrap.descriptor.spi.Node node)
           
LocalBindingTypeImpl(T t, java.lang.String nodeName, org.jboss.shrinkwrap.descriptor.spi.Node node, org.jboss.shrinkwrap.descriptor.spi.Node childNode)
           
 
Method Summary
 java.util.List<java.lang.String> getDescriptionList()
          Returns all description elements
 java.lang.String getJndiName()
          Returns the jndi-name element
 LocalBindingType<T> removeAllDescription()
          Removes the description element
 LocalBindingType<T> removeJndiName()
          Removes the jndi-name element
 LocalBindingType<T> setDescription(java.lang.String description)
          Creates a new description element
 LocalBindingType<T> setDescriptionList(java.lang.String... values)
          Creates for all String objects representing description elements, a new description element
 LocalBindingType<T> setJndiName(java.lang.String jndiName)
          If not already created, a new jndi-name element with the given value will be created.
 T up()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalBindingTypeImpl

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

LocalBindingTypeImpl

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

up

public T up()
Specified by:
up in interface org.jboss.shrinkwrap.descriptor.api.Child<T>

setDescription

public LocalBindingType<T> setDescription(java.lang.String description)
Creates a new description element

Specified by:
setDescription in interface LocalBindingType<T>
Returns:
the current instance of LocalBindingType

setDescriptionList

public LocalBindingType<T> setDescriptionList(java.lang.String... values)
Creates for all String objects representing description elements, a new description element

Specified by:
setDescriptionList in interface LocalBindingType<T>
Parameters:
list - of description objects
Returns:
the current instance of LocalBindingType

removeAllDescription

public LocalBindingType<T> removeAllDescription()
Removes the description element

Specified by:
removeAllDescription in interface LocalBindingType<T>
Returns:
the current instance of LocalBindingType

getDescriptionList

public java.util.List<java.lang.String> getDescriptionList()
Returns all description elements

Specified by:
getDescriptionList in interface LocalBindingType<T>
Returns:
list of description

setJndiName

public LocalBindingType<T> setJndiName(java.lang.String jndiName)
If not already created, a new jndi-name element with the given value will be created. Otherwise, the existing jndi-name element will be updated with the given value.

Specified by:
setJndiName in interface LocalBindingType<T>
Returns:
the current instance of LocalBindingType

removeJndiName

public LocalBindingType<T> removeJndiName()
Removes the jndi-name element

Specified by:
removeJndiName in interface LocalBindingType<T>
Returns:
the current instance of LocalBindingType

getJndiName

public java.lang.String getJndiName()
Returns the jndi-name element

Specified by:
getJndiName in interface LocalBindingType<T>
Returns:
the node defined for the element jndi-name