org.jboss.shrinkwrap.descriptor.impl.ejbjar31
Class StatefulTimeoutTypeImpl<T>

java.lang.Object
  extended by org.jboss.shrinkwrap.descriptor.impl.ejbjar31.StatefulTimeoutTypeImpl<T>
All Implemented Interfaces:
org.jboss.shrinkwrap.descriptor.api.Child<T>, StatefulTimeoutType<T>

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

This class implements the stateful-timeoutType xsd type

Original Documentation:



The stateful-timeoutType represents the amount of time
a stateful session bean can be idle(not receive any client
invocations) before it is eligible for removal by the container.

A timeout value of 0 means the bean is immediately eligible for removal.

A timeout value of -1 means the bean will never be removed due to timeout.


Since:
Generation date :2011-07-19T22:55:02.759+02:00
Author:
Ralf Battenfeld

Constructor Summary
StatefulTimeoutTypeImpl(T t, java.lang.String nodeName, org.jboss.shrinkwrap.descriptor.spi.Node node)
           
StatefulTimeoutTypeImpl(T t, java.lang.String nodeName, org.jboss.shrinkwrap.descriptor.spi.Node node, org.jboss.shrinkwrap.descriptor.spi.Node childNode)
           
 
Method Summary
 java.lang.Integer getTimeout()
          Returns the timeout element
 TimeUnitTypeType getUnit()
          Returns the unit element
 java.lang.String getUnitAsString()
          Returns the unit element
 StatefulTimeoutType<T> removeTimeout()
          Removes the timeout element
 StatefulTimeoutType<T> setTimeout(java.lang.Integer timeout)
          If not already created, a new timeout element with the given value will be created.
 StatefulTimeoutType<T> setUnit(java.lang.String unit)
          If not already created, a new unit element with the given value will be created.
 StatefulTimeoutType<T> setUnit(TimeUnitTypeType unit)
          If not already created, a new unit 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

StatefulTimeoutTypeImpl

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

StatefulTimeoutTypeImpl

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

setTimeout

public StatefulTimeoutType<T> setTimeout(java.lang.Integer timeout)
If not already created, a new timeout element with the given value will be created. Otherwise, the existing timeout element will be updated with the given value.

Specified by:
setTimeout in interface StatefulTimeoutType<T>
Returns:
the current instance of StatefulTimeoutType

removeTimeout

public StatefulTimeoutType<T> removeTimeout()
Removes the timeout element

Specified by:
removeTimeout in interface StatefulTimeoutType<T>
Returns:
the current instance of StatefulTimeoutType

getTimeout

public java.lang.Integer getTimeout()
Returns the timeout element

Specified by:
getTimeout in interface StatefulTimeoutType<T>
Returns:
the node defined for the element timeout

setUnit

public StatefulTimeoutType<T> setUnit(TimeUnitTypeType unit)
If not already created, a new unit element with the given value will be created. Otherwise, the existing unit element will be updated with the given value.

Specified by:
setUnit in interface StatefulTimeoutType<T>
Returns:
the current instance of StatefulTimeoutType

setUnit

public StatefulTimeoutType<T> setUnit(java.lang.String unit)
If not already created, a new unit element with the given value will be created. Otherwise, the existing unit element will be updated with the given value.

Specified by:
setUnit in interface StatefulTimeoutType<T>
Returns:
the current instance of StatefulTimeoutType

getUnit

public TimeUnitTypeType getUnit()
Returns the unit element

Specified by:
getUnit in interface StatefulTimeoutType<T>
Returns:
the node defined for the element unit

getUnitAsString

public java.lang.String getUnitAsString()
Returns the unit element

Specified by:
getUnitAsString in interface StatefulTimeoutType<T>
Returns:
the node defined for the element unit