org.jibx.ws.wsdl.tools.custom
Class FaultCustom

java.lang.Object
  extended by org.jibx.custom.classes.CustomBase
      extended by org.jibx.ws.wsdl.tools.custom.FaultCustom

public class FaultCustom
extends CustomBase

Fault data customization information. TODO: include this in the customizations file structure - child of service element?

Author:
Dennis M. Sosnoski

Field Summary
private  java.lang.String m_dataType
           
private  java.util.List m_documentation
           
private  java.lang.String m_elementName
           
private  java.lang.String m_exceptionType
           
private  java.lang.String m_faultName
           
private  java.lang.String m_fieldName
           
 
Fields inherited from class org.jibx.custom.classes.CustomBase
CAMEL_CASE_NAMES, DERIVE_BY_PACKAGE, DERIVE_FIXED, DERIVE_NONE, DOTTED_NAMES, HYPHENATED_NAMES, REQUIRE_ALL, REQUIRE_NONE, REQUIRE_OBJECTS, REQUIRE_PRIMITIVES, s_namespaceStyleEnum, s_nameStyleEnum, s_requireEnum, UNDERSCORED_NAMES, UPPER_CAMEL_CASE_NAMES
 
Constructor Summary
protected FaultCustom(NestingBase parent, java.lang.String type)
          Constructor.
 
Method Summary
 void apply(IClassLocator icl)
          Apply customizations to fault to fill out members.
 java.lang.String getDataType()
          Get fully-qualified name of exception data class.
 java.util.List getDocumentation()
          Get value documentation node list.
 java.lang.String getElementName()
          Get XML element name for exception data.
 java.lang.String getExceptionType()
          Get fully-qualified exception class name.
 java.lang.String getFaultName()
          Get Fault name.
private static FaultCustom throwsFactory(IUnmarshallingContext ictx)
          Parameter value unmarshalling factory.
 
Methods inherited from class org.jibx.custom.classes.CustomBase
convertName, deriveItemName, deriveNamespace, getContainingObject, getGlobal, getParent, packageOfType, packageToNamespace, validateAttributes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_exceptionType

private java.lang.String m_exceptionType

m_fieldName

private java.lang.String m_fieldName

m_dataType

private java.lang.String m_dataType

m_faultName

private java.lang.String m_faultName

m_elementName

private java.lang.String m_elementName

m_documentation

private java.util.List m_documentation
Constructor Detail

FaultCustom

protected FaultCustom(NestingBase parent,
                      java.lang.String type)
Constructor.

Parameters:
parent -
type - fully-qualified exception class name
Method Detail

getExceptionType

public java.lang.String getExceptionType()
Get fully-qualified exception class name.

Returns:
type

getFaultName

public java.lang.String getFaultName()
Get Fault name. This method should only be used after the apply(IClassLocator) method is called.

Returns:
parmaterized type

getElementName

public java.lang.String getElementName()
Get XML element name for exception data. This method should only be used after the apply(IClassLocator) method is called.

Returns:
name

getDataType

public java.lang.String getDataType()
Get fully-qualified name of exception data class.

Returns:
parmaterized type

getDocumentation

public java.util.List getDocumentation()
Get value documentation node list. This method should only be used after the apply(IClassLocator) method is called.

Returns:
list of documentation nodes (null if none)

apply

public void apply(IClassLocator icl)
Apply customizations to fault to fill out members.

Parameters:
icl - class locator

throwsFactory

private static FaultCustom throwsFactory(IUnmarshallingContext ictx)
                                  throws JiBXException
Parameter value unmarshalling factory. This gets the containing element and the name so that the standard constructor can be used.

Parameters:
ictx -
Returns:
created instance
Throws:
JiBXException


Project Web Site