Package org.jibx.schema.codegen.custom
Class ComponentCustomUnmarshaller
- java.lang.Object
-
- 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
Fields Modifier and Type Field Description static StringArrays_baseAttributesAttribute names allowed for all types of components.private static longs_deletableLeafMaskMask for elements which are deletable but do not support nesting.static StringArrays_ignorableAttributesAttribute names allowed for all excludable components.static StringArrays_namedIgnorableValueAttributesAllowed attribute names for customizing elements with values and names.private static longs_namedIgnorableValueMaskMask for elements with names which can be ignored.static StringArrays_namedValueAttributesAllowed attribute names for customizing elements with values and names.private static longs_namedValueMaskMask for elements with values and names.private static longs_simpleNestingMaskMask for elements which are not deletable but do support nesting.static StringArrays_typeDefinitionAttributesAllowed attribute names for type definition elements.private static longs_typeDefinitionMaskMask for type definition elements.static StringArrays_unnamedValueAttributesAllowed attribute names for customizing elements with values but no names.private static longs_unnamedValueMaskMask for elements with values but no names.
-
Constructor Summary
Constructors Constructor Description ComponentCustomUnmarshaller()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisPresent(IUnmarshallingContext ctx)Check if element present.java.lang.Objectunmarshal(java.lang.Object obj, IUnmarshallingContext ictx)Unmarshal the element.
-
-
-
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.
-
-
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:
isPresentin interfaceIUnmarshaller- Parameters:
ctx-- Returns:
trueif at a start tag- Throws:
JiBXException
-
unmarshal
public java.lang.Object unmarshal(java.lang.Object obj, IUnmarshallingContext ictx) throws JiBXExceptionUnmarshal 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:
unmarshalin interfaceIUnmarshaller- Parameters:
obj- ignoredictx- unmarshalling context- Returns:
- unmarshalled instance
- Throws:
JiBXException- on error in document
-
-