org.jibx.schema.codegen.custom
Class ComponentCustomUnmarshaller

java.lang.Object
  extended by org.jibx.schema.codegen.custom.ComponentCustomUnmarshaller
All Implemented Interfaces:
IUnmarshaller

public class ComponentCustomUnmarshaller
extends java.lang.Object
implements IUnmarshaller

Unmarshaller class for all nested customizations. This is used for all the customizations below the <schema> level.


Field Summary
static StringArray s_baseAttributes
          Attribute names allowed for all types of components.
private static long s_deletableLeafMask
          Mask for elements which are deletable but do not support nesting.
static StringArray s_ignorableAttributes
          Attribute names allowed for all excludable components.
static StringArray s_namedIgnorableValueAttributes
          Allowed attribute names for customizing elements with values and names.
private static long s_namedIgnorableValueMask
          Mask for elements with names which can be ignored.
static StringArray s_namedValueAttributes
          Allowed attribute names for customizing elements with values and names.
private static long s_namedValueMask
          Mask for elements with values and names.
private static long s_simpleNestingMask
          Mask for elements which are not deletable but do support nesting.
static StringArray s_typeDefinitionAttributes
          Allowed attribute names for type definition elements.
private static long s_typeDefinitionMask
          Mask for type definition elements.
static StringArray s_unnamedValueAttributes
          Allowed attribute names for customizing elements with values but no names.
private static long s_unnamedValueMask
          Mask for elements with values but no names.
 
Constructor Summary
ComponentCustomUnmarshaller()
           
 
Method Summary
 boolean isPresent(IUnmarshallingContext ctx)
          Check if element present.
 java.lang.Object unmarshal(java.lang.Object obj, IUnmarshallingContext ictx)
          Unmarshal the element.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

s_baseAttributes

public static final StringArray s_baseAttributes
Attribute names allowed for all types of components.


s_ignorableAttributes

public static final StringArray s_ignorableAttributes
Attribute names allowed for all excludable components.


s_unnamedValueMask

private static final long s_unnamedValueMask
Mask for elements with values but no names.


s_unnamedValueAttributes

public static final StringArray s_unnamedValueAttributes
Allowed attribute names for customizing elements with values but no names.


s_namedValueMask

private static final long s_namedValueMask
Mask for elements with values and names.


s_namedValueAttributes

public static final StringArray s_namedValueAttributes
Allowed attribute names for customizing elements with values and names.


s_namedIgnorableValueMask

private static final long s_namedIgnorableValueMask
Mask for elements with names which can be ignored.


s_namedIgnorableValueAttributes

public static final StringArray s_namedIgnorableValueAttributes
Allowed attribute names for customizing elements with values and names.


s_typeDefinitionMask

private static final long s_typeDefinitionMask
Mask for type definition elements.


s_typeDefinitionAttributes

public static final StringArray s_typeDefinitionAttributes
Allowed attribute names for type definition elements.


s_simpleNestingMask

private static final long s_simpleNestingMask
Mask for elements which are not deletable but do support nesting.


s_deletableLeafMask

private static final long s_deletableLeafMask
Mask for elements which are deletable but do not support nesting.

Constructor Detail

ComponentCustomUnmarshaller

public ComponentCustomUnmarshaller()
Method Detail

isPresent

public boolean isPresent(IUnmarshallingContext ctx)
                  throws JiBXException
Check if element present. If there's a start tag, we want to handle it.

Specified by:
isPresent in interface IUnmarshaller
Parameters:
ctx -
Returns:
true if at a start tag
Throws:
JiBXException

unmarshal

public java.lang.Object unmarshal(java.lang.Object obj,
                                  IUnmarshallingContext ictx)
                           throws JiBXException
Unmarshal the element. This matches the current start tag name to the corresponding schema component element, then unmarshals the content based on the type of schema element (invoking the abstract unmarshaller defined in the binding for the actual content).

Specified by:
unmarshal in interface IUnmarshaller
Parameters:
obj - ignored
ictx - unmarshalling context
Returns:
unmarshalled instance
Throws:
JiBXException - on error in document


Project Web Site