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

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

public class CollectionValueCustom
extends ValueCustom

Method parameter or return collection value customization information.

Author:
Dennis M. Sosnoski

Field Summary
private  java.lang.String m_itemName
           
private  java.lang.String m_itemType
           
static StringArray s_allowedAttributes
          Enumeration of allowed attribute names
private static org.apache.log4j.Logger s_logger
          Logger for class.
 
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 CollectionValueCustom(NestingBase parent, java.lang.String name)
          Constructor.
 
Method Summary
(package private)  void complete(java.lang.String type, java.lang.String itype, java.util.List docs, java.lang.Boolean req)
          Complete customization information based on supplied type.
 java.lang.String getItemElementName()
          Get name for elements representing items in collection.
 java.lang.String getItemType()
          Get item type for collection.
private  void preSet(IUnmarshallingContext uctx)
          Make sure all attributes are defined.
 
Methods inherited from class org.jibx.ws.wsdl.tools.custom.ValueCustom
complete, getBoundType, getCreateType, getDocumentation, getElementName, getFactoryMethod, getType, getValueName, isRequired, setElementName
 
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

s_logger

private static final org.apache.log4j.Logger s_logger
Logger for class.


s_allowedAttributes

public static final StringArray s_allowedAttributes
Enumeration of allowed attribute names


m_itemType

private java.lang.String m_itemType

m_itemName

private java.lang.String m_itemName
Constructor Detail

CollectionValueCustom

protected CollectionValueCustom(NestingBase parent,
                                java.lang.String name)
Constructor.

Parameters:
parent -
name -
Method Detail

preSet

private void preSet(IUnmarshallingContext uctx)
Make sure all attributes are defined.

Parameters:
uctx - unmarshalling context

getItemType

public java.lang.String getItemType()
Get item type for collection. This method should only be used after the complete(String, String, List, Boolean) method is called.

Overrides:
getItemType in class ValueCustom
Returns:
collection item type, null if not a collection

getItemElementName

public java.lang.String getItemElementName()
Get name for elements representing items in collection. This method should only be used after the complete(String, String, List, Boolean) method is called.

Overrides:
getItemElementName in class ValueCustom
Returns:
collection item type, null if not a collection

complete

void complete(java.lang.String type,
              java.lang.String itype,
              java.util.List docs,
              java.lang.Boolean req)
Complete customization information based on supplied type. If the type information has not previously been set, this will set it. It will also derive the appropriate XML name, if not previously set.

Parameters:
type -
itype -
docs - default documentation node list (null if none)
req - required member flag (null if unknown)


Project Web Site