Class ComponentCustomUnmarshaller

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

public class ComponentCustomUnmarshaller extends Object implements IUnmarshaller
Unmarshaller class for all nested customizations. This is used for all the customizations below the <schema> level.
  • Field Details

    • 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 Details

    • ComponentCustomUnmarshaller

      public ComponentCustomUnmarshaller()
  • Method Details

    • 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 Object unmarshal(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