org.jboss.shrinkwrap.descriptor.api.jboss51
Interface JndiRefType<T>

All Superinterfaces:
Child<T>

public interface JndiRefType<T>
extends Child<T>

This interface defines the contract for the jndi-refType xsd type

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

Method Summary
 InjectionTargetType<JndiRefType<T>> createInjectionTarget()
          Creates a new injection-target element
 JndiRefType<T> description(String... values)
          Creates for all String objects representing description elements, a new description element
 List<String> getAllDescription()
          Returns all description elements
 List<InjectionTargetType<JndiRefType<T>>> getAllInjectionTarget()
          Returns all injection-target elements
 String getId()
          Returns the id attribute
 String getJndiName()
          Returns the jndi-name element
 String getJndiRefName()
          Returns the jndi-ref-name element
 String getMappedName()
          Returns the mapped-name element
 InjectionTargetType<JndiRefType<T>> getOrCreateInjectionTarget()
          If not already created, a new injection-target element will be created and returned.
 JndiRefType<T> id(String id)
          Sets the id attribute
 JndiRefType<T> ignoreDependency()
          Sets the ignore-dependency element
 Boolean isIgnoreDependency()
          Removes the ignore-dependency element
 JndiRefType<T> jndiName(String jndiName)
          Sets the jndi-name element
 JndiRefType<T> jndiRefName(String jndiRefName)
          Sets the jndi-ref-name element
 JndiRefType<T> mappedName(String mappedName)
          Sets the mapped-name element
 JndiRefType<T> removeAllDescription()
          Removes the description element
 JndiRefType<T> removeAllInjectionTarget()
          Removes all injection-target elements
 JndiRefType<T> removeId()
          Removes the id attribute
 JndiRefType<T> removeIgnoreDependency()
          Removes the ignore-dependency element
 JndiRefType<T> removeJndiName()
          Removes the jndi-name element
 JndiRefType<T> removeJndiRefName()
          Removes the jndi-ref-name element
 JndiRefType<T> removeMappedName()
          Removes the mapped-name element
 
Methods inherited from interface org.jboss.shrinkwrap.descriptor.api.Child
up
 

Method Detail

jndiName

JndiRefType<T> jndiName(String jndiName)
Sets the jndi-name element

Parameters:
jndiName - the value for the element jndi-name
Returns:
the current instance of JndiRefType

getJndiName

String getJndiName()
Returns the jndi-name element

Returns:
the node defined for the element jndi-name

removeJndiName

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

Returns:
the current instance of JndiRefType

mappedName

JndiRefType<T> mappedName(String mappedName)
Sets the mapped-name element

Parameters:
mappedName - the value for the element mapped-name
Returns:
the current instance of JndiRefType

getMappedName

String getMappedName()
Returns the mapped-name element

Returns:
the node defined for the element mapped-name

removeMappedName

JndiRefType<T> removeMappedName()
Removes the mapped-name element

Returns:
the current instance of JndiRefType

getOrCreateInjectionTarget

InjectionTargetType<JndiRefType<T>> getOrCreateInjectionTarget()
If not already created, a new injection-target element will be created and returned. Otherwise, the first existing injection-target element will be returned.

Returns:
the instance defined for the element injection-target

createInjectionTarget

InjectionTargetType<JndiRefType<T>> createInjectionTarget()
Creates a new injection-target element

Returns:
the new created instance of InjectionTargetType>

getAllInjectionTarget

List<InjectionTargetType<JndiRefType<T>>> getAllInjectionTarget()
Returns all injection-target elements

Returns:
list of injection-target

removeAllInjectionTarget

JndiRefType<T> removeAllInjectionTarget()
Removes all injection-target elements

Returns:
the current instance of InjectionTargetType>

ignoreDependency

JndiRefType<T> ignoreDependency()
Sets the ignore-dependency element

Returns:
the current instance of JndiRefType

isIgnoreDependency

Boolean isIgnoreDependency()
Removes the ignore-dependency element

Returns:
the current instance of JndiRefType

removeIgnoreDependency

JndiRefType<T> removeIgnoreDependency()
Removes the ignore-dependency element

Returns:
the current instance of JndiRefType

description

JndiRefType<T> description(String... values)
Creates for all String objects representing description elements, a new description element

Parameters:
values - list of description objects
Returns:
the current instance of JndiRefType

getAllDescription

List<String> getAllDescription()
Returns all description elements

Returns:
list of description

removeAllDescription

JndiRefType<T> removeAllDescription()
Removes the description element

Returns:
the current instance of JndiRefType

jndiRefName

JndiRefType<T> jndiRefName(String jndiRefName)
Sets the jndi-ref-name element

Parameters:
jndiRefName - the value for the element jndi-ref-name
Returns:
the current instance of JndiRefType

getJndiRefName

String getJndiRefName()
Returns the jndi-ref-name element

Returns:
the node defined for the element jndi-ref-name

removeJndiRefName

JndiRefType<T> removeJndiRefName()
Removes the jndi-ref-name element

Returns:
the current instance of JndiRefType

id

JndiRefType<T> id(String id)
Sets the id attribute

Parameters:
id - the value for the attribute id
Returns:
the current instance of JndiRefType

getId

String getId()
Returns the id attribute

Returns:
the value defined for the attribute id

removeId

JndiRefType<T> removeId()
Removes the id attribute

Returns:
the current instance of JndiRefType


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