Class MappingElement


public class MappingElement extends MappingElementBase
Model component for mapping element of normal binding definition.
Author:
Dennis M. Sosnoski
  • Field Details

    • m_extendsMapping

      private MappingElement m_extendsMapping
      Mapping extended by this mapping.
    • m_constructVerified

      private boolean m_constructVerified
      Constructability verified flag.
  • Constructor Details

    • MappingElement

      public MappingElement()
      Default constructor.
  • Method Details

    • getExtendsMapping

      public MappingElement getExtendsMapping()
      Get mapping extended by this one.
      Returns:
      mapping extended by this one
    • verifyConstruction

      public void verifyConstruction(ValidationContext vctx)
      Verify that instances of the mapped class can be constructed. This method may be called during the validate(ValidationContext) processing of other elements. If this mapping has any extensions, the check is ignored. TODO: check that at least one of the extensions can be created
      Parameters:
      vctx -
    • validate

      public void validate(ValidationContext vctx)
      Description copied from class: ElementBase
      Validate element information. The validation step is used for checking the interactions between elements, such as name references to other elements. The ElementBase.prevalidate(org.jibx.binding.model.ValidationContext) method will always be called for every element in the binding definition before this method is called for any element. This empty base class implementation should be overridden by each subclass that requires validation handling.
      Overrides:
      validate in class MappingElementBase
      Parameters:
      vctx - validation context
    • validateExtension

      public void validateExtension(ValidationContext vctx)
      Special validation method to link extension mappings to base mappings. This is called as a special step following registration, so that the normal validation pass can make use of the linkage information.
      Parameters:
      vctx - validation context