Package org.jibx.schema.codegen.custom
Class ComponentCustomUnmarshaller
java.lang.Object
org.jibx.schema.codegen.custom.ComponentCustomUnmarshaller
- All Implemented Interfaces:
IUnmarshaller
Unmarshaller class for all nested customizations. This is used for all the customizations below the <schema>
level.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringArray
Attribute names allowed for all types of components.private static final long
Mask for elements which are deletable but do not support nesting.static final StringArray
Attribute names allowed for all excludable components.static final StringArray
Allowed attribute names for customizing elements with values and names.private static final long
Mask for elements with names which can be ignored.static final StringArray
Allowed attribute names for customizing elements with values and names.private static final long
Mask for elements with values and names.private static final long
Mask for elements which are not deletable but do support nesting.static final StringArray
Allowed attribute names for type definition elements.private static final long
Mask for type definition elements.static final StringArray
Allowed attribute names for customizing elements with values but no names.private static final long
Mask for elements with values but no names. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Check if element present.unmarshal
(Object obj, IUnmarshallingContext ictx) Unmarshal the element.
-
Field Details
-
s_baseAttributes
Attribute names allowed for all types of components. -
s_ignorableAttributes
Attribute names allowed for all excludable components. -
s_unnamedValueMask
private static final long s_unnamedValueMaskMask for elements with values but no names. -
s_unnamedValueAttributes
Allowed attribute names for customizing elements with values but no names. -
s_namedValueMask
private static final long s_namedValueMaskMask for elements with values and names. -
s_namedValueAttributes
Allowed attribute names for customizing elements with values and names. -
s_namedIgnorableValueMask
private static final long s_namedIgnorableValueMaskMask for elements with names which can be ignored. -
s_namedIgnorableValueAttributes
Allowed attribute names for customizing elements with values and names. -
s_typeDefinitionMask
private static final long s_typeDefinitionMaskMask for type definition elements. -
s_typeDefinitionAttributes
Allowed attribute names for type definition elements. -
s_simpleNestingMask
private static final long s_simpleNestingMaskMask for elements which are not deletable but do support nesting. -
s_deletableLeafMask
private static final long s_deletableLeafMaskMask for elements which are deletable but do not support nesting.
-
-
Constructor Details
-
ComponentCustomUnmarshaller
public ComponentCustomUnmarshaller()
-
-
Method Details
-
isPresent
Check if element present. If there's a start tag, we want to handle it.- Specified by:
isPresent
in interfaceIUnmarshaller
- Parameters:
ctx
-- Returns:
true
if at a start tag- Throws:
JiBXException
-
unmarshal
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 interfaceIUnmarshaller
- Parameters:
obj
- ignoredictx
- unmarshalling context- Returns:
- unmarshalled instance
- Throws:
JiBXException
- on error in document
-