|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.shrinkwrap.descriptor.impl.ejbjar31.ApplicationExceptionTypeImpl<T>
public class ApplicationExceptionTypeImpl<T>
This class implements the application-exceptionType
xsd type
Original Documentation:
The application-exceptionType declares an application
exception. The declaration consists of:
- the exception class. When the container receives
an exception of this type, it is required to
forward this exception as an applcation exception
to the client regardless of whether it is a checked
or unchecked exception.
- an optional rollback element. If this element is
set to true, the container must rollback the current
transaction before forwarding the exception to the
client. If not specified, it defaults to false.
- an optional inherited element. If this element is
set to true, subclasses of the exception class type
are also automatically considered application
exceptions (unless overriden at a lower level).
If set to false, only the exception class type is
considered an application-exception, not its
exception subclasses. If not specified, this
value defaults to true.
Constructor Summary | |
---|---|
ApplicationExceptionTypeImpl(T t,
java.lang.String nodeName,
org.jboss.shrinkwrap.descriptor.spi.Node node)
|
|
ApplicationExceptionTypeImpl(T t,
java.lang.String nodeName,
org.jboss.shrinkwrap.descriptor.spi.Node node,
org.jboss.shrinkwrap.descriptor.spi.Node childNode)
|
Method Summary | |
---|---|
java.lang.String |
getExceptionClass()
Returns the exception-class element |
java.lang.Boolean |
isInherited()
Returns the inherited element |
java.lang.Boolean |
isRollback()
Returns the rollback element |
ApplicationExceptionType<T> |
removeExceptionClass()
Removes the exception-class element |
ApplicationExceptionType<T> |
removeInherited()
Removes the inherited element |
ApplicationExceptionType<T> |
removeRollback()
Removes the rollback element |
ApplicationExceptionType<T> |
setExceptionClass(java.lang.String exceptionClass)
If not already created, a new exception-class element with the given value will be created. |
ApplicationExceptionType<T> |
setInherited(java.lang.Boolean inherited)
If not already created, a new inherited element with the given value will be created. |
ApplicationExceptionType<T> |
setRollback(java.lang.Boolean rollback)
If not already created, a new rollback 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 |
---|
public ApplicationExceptionTypeImpl(T t, java.lang.String nodeName, org.jboss.shrinkwrap.descriptor.spi.Node node)
public ApplicationExceptionTypeImpl(T t, java.lang.String nodeName, org.jboss.shrinkwrap.descriptor.spi.Node node, org.jboss.shrinkwrap.descriptor.spi.Node childNode)
Method Detail |
---|
public T up()
up
in interface org.jboss.shrinkwrap.descriptor.api.Child<T>
public ApplicationExceptionType<T> setExceptionClass(java.lang.String exceptionClass)
exception-class
element with the given value will be created.
Otherwise, the existing exception-class
element will be updated with the given value.
setExceptionClass
in interface ApplicationExceptionType<T>
ApplicationExceptionType
public ApplicationExceptionType<T> removeExceptionClass()
exception-class
element
removeExceptionClass
in interface ApplicationExceptionType<T>
ApplicationExceptionType
public java.lang.String getExceptionClass()
exception-class
element
getExceptionClass
in interface ApplicationExceptionType<T>
exception-class
public ApplicationExceptionType<T> setRollback(java.lang.Boolean rollback)
rollback
element with the given value will be created.
Otherwise, the existing rollback
element will be updated with the given value.
setRollback
in interface ApplicationExceptionType<T>
ApplicationExceptionType
public ApplicationExceptionType<T> removeRollback()
rollback
element
removeRollback
in interface ApplicationExceptionType<T>
ApplicationExceptionType
public java.lang.Boolean isRollback()
rollback
element
isRollback
in interface ApplicationExceptionType<T>
rollback
public ApplicationExceptionType<T> setInherited(java.lang.Boolean inherited)
inherited
element with the given value will be created.
Otherwise, the existing inherited
element will be updated with the given value.
setInherited
in interface ApplicationExceptionType<T>
ApplicationExceptionType
public ApplicationExceptionType<T> removeInherited()
inherited
element
removeInherited
in interface ApplicationExceptionType<T>
ApplicationExceptionType
public java.lang.Boolean isInherited()
inherited
element
isInherited
in interface ApplicationExceptionType<T>
inherited
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |