org.jboss.ironjacamar.impl
Class AdminObjectTypeImpl<T>

java.lang.Object
  extended by org.jboss.ironjacamar.impl.AdminObjectTypeImpl<T>
All Implemented Interfaces:
AdminObjectType<T>, Child<T>

public class AdminObjectTypeImpl<T>
extends Object
implements Child<T>, AdminObjectType<T>

This class implements the admin-objectType xsd type

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

Constructor Summary
AdminObjectTypeImpl(T t, String nodeName, org.jboss.shrinkwrap.descriptor.spi.node.Node node)
           
AdminObjectTypeImpl(T t, String nodeName, org.jboss.shrinkwrap.descriptor.spi.node.Node node, org.jboss.shrinkwrap.descriptor.spi.node.Node childNode)
           
 
Method Summary
 AdminObjectType<T> className(String className)
          Sets the class-name attribute
 ConfigPropertyType<AdminObjectType<T>> createConfigProperty()
          Creates a new config-property element
 AdminObjectType<T> enabled(Boolean enabled)
          Sets the enabled attribute
 List<ConfigPropertyType<AdminObjectType<T>>> getAllConfigProperty()
          Returns all config-property elements
 String getClassName()
          Returns the class-name attribute
 String getJndiName()
          Returns the jndi-name attribute
 ConfigPropertyType<AdminObjectType<T>> getOrCreateConfigProperty()
          If not already created, a new config-property element will be created and returned.
 String getPoolName()
          Returns the pool-name attribute
 Boolean isEnabled()
          Returns the enabled attribute
 Boolean isUseJavaContext()
          Returns the use-java-context attribute
 AdminObjectType<T> jndiName(String jndiName)
          Sets the jndi-name attribute
 AdminObjectType<T> poolName(String poolName)
          Sets the pool-name attribute
 AdminObjectType<T> removeAllConfigProperty()
          Removes all config-property elements
 AdminObjectType<T> removeClassName()
          Removes the class-name attribute
 AdminObjectType<T> removeEnabled()
          Removes the enabled attribute
 AdminObjectType<T> removeJndiName()
          Removes the jndi-name attribute
 AdminObjectType<T> removePoolName()
          Removes the pool-name attribute
 AdminObjectType<T> removeUseJavaContext()
          Removes the use-java-context attribute
 T up()
          Returns the parent of this Child
 AdminObjectType<T> useJavaContext(Boolean useJavaContext)
          Sets the use-java-context attribute
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AdminObjectTypeImpl

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

AdminObjectTypeImpl

public AdminObjectTypeImpl(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

className

public AdminObjectType<T> className(String className)
Sets the class-name attribute

Specified by:
className in interface AdminObjectType<T>
Parameters:
className - the value for the attribute class-name
Returns:
the current instance of AdminObjectType

getClassName

public String getClassName()
Returns the class-name attribute

Specified by:
getClassName in interface AdminObjectType<T>
Returns:
the value defined for the attribute class-name

removeClassName

public AdminObjectType<T> removeClassName()
Removes the class-name attribute

Specified by:
removeClassName in interface AdminObjectType<T>
Returns:
the current instance of AdminObjectType

jndiName

public AdminObjectType<T> jndiName(String jndiName)
Sets the jndi-name attribute

Specified by:
jndiName in interface AdminObjectType<T>
Parameters:
jndiName - the value for the attribute jndi-name
Returns:
the current instance of AdminObjectType

getJndiName

public String getJndiName()
Returns the jndi-name attribute

Specified by:
getJndiName in interface AdminObjectType<T>
Returns:
the value defined for the attribute jndi-name

removeJndiName

public AdminObjectType<T> removeJndiName()
Removes the jndi-name attribute

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

enabled

public AdminObjectType<T> enabled(Boolean enabled)
Sets the enabled attribute

Specified by:
enabled in interface AdminObjectType<T>
Parameters:
enabled - the value for the attribute enabled
Returns:
the current instance of AdminObjectType

isEnabled

public Boolean isEnabled()
Returns the enabled attribute

Specified by:
isEnabled in interface AdminObjectType<T>
Returns:
the value defined for the attribute enabled

removeEnabled

public AdminObjectType<T> removeEnabled()
Removes the enabled attribute

Specified by:
removeEnabled in interface AdminObjectType<T>
Returns:
the current instance of AdminObjectType

useJavaContext

public AdminObjectType<T> useJavaContext(Boolean useJavaContext)
Sets the use-java-context attribute

Specified by:
useJavaContext in interface AdminObjectType<T>
Parameters:
useJavaContext - the value for the attribute use-java-context
Returns:
the current instance of AdminObjectType

isUseJavaContext

public Boolean isUseJavaContext()
Returns the use-java-context attribute

Specified by:
isUseJavaContext in interface AdminObjectType<T>
Returns:
the value defined for the attribute use-java-context

removeUseJavaContext

public AdminObjectType<T> removeUseJavaContext()
Removes the use-java-context attribute

Specified by:
removeUseJavaContext in interface AdminObjectType<T>
Returns:
the current instance of AdminObjectType

poolName

public AdminObjectType<T> poolName(String poolName)
Sets the pool-name attribute

Specified by:
poolName in interface AdminObjectType<T>
Parameters:
poolName - the value for the attribute pool-name
Returns:
the current instance of AdminObjectType

getPoolName

public String getPoolName()
Returns the pool-name attribute

Specified by:
getPoolName in interface AdminObjectType<T>
Returns:
the value defined for the attribute pool-name

removePoolName

public AdminObjectType<T> removePoolName()
Removes the pool-name attribute

Specified by:
removePoolName in interface AdminObjectType<T>
Returns:
the current instance of AdminObjectType

getOrCreateConfigProperty

public ConfigPropertyType<AdminObjectType<T>> getOrCreateConfigProperty()
If not already created, a new config-property element will be created and returned. Otherwise, the first existing config-property element will be returned.

Specified by:
getOrCreateConfigProperty in interface AdminObjectType<T>
Returns:
the instance defined for the element config-property

createConfigProperty

public ConfigPropertyType<AdminObjectType<T>> createConfigProperty()
Creates a new config-property element

Specified by:
createConfigProperty in interface AdminObjectType<T>
Returns:
the new created instance of ConfigPropertyType>

getAllConfigProperty

public List<ConfigPropertyType<AdminObjectType<T>>> getAllConfigProperty()
Returns all config-property elements

Specified by:
getAllConfigProperty in interface AdminObjectType<T>
Returns:
list of config-property

removeAllConfigProperty

public AdminObjectType<T> removeAllConfigProperty()
Removes all config-property elements

Specified by:
removeAllConfigProperty in interface AdminObjectType<T>
Returns:
the current instance of ConfigPropertyType>


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