Class CommonCompositorDefinition

  • All Implemented Interfaces:
    IArity, IComponent
    Direct Known Subclasses:
    AllElement, ChoiceElement, SequenceElement

    public abstract class CommonCompositorDefinition
    extends CommonCompositorBase
    Compositor for complex content model, including the special case of <all>. The subclasses implement the different models for how nested particles are combined.
    Author:
    Dennis M. Sosnoski
    • Field Detail

      • CHOICE_SEQUENCE_PARTICLE_MASK

        protected static long CHOICE_SEQUENCE_PARTICLE_MASK
        Mask for child elements allowed by <choice> and <sequence>.
      • m_particleList

        private final FilteredSegmentList m_particleList
        Filtered list of composited particle elements.
    • Constructor Detail

      • CommonCompositorDefinition

        protected CommonCompositorDefinition​(int type,
                                             long mask)
        Constructor.
        Parameters:
        type - element type
        mask - mask for allowed particle elements
    • Method Detail

      • getParticleList

        public FilteredSegmentList getParticleList()
        Get list of composited particles.
        Returns:
        list
      • preset

        protected void preset​(IUnmarshallingContext ictx)
                       throws JiBXException
        Description copied from class: SchemaBase
        Pre-set method to be called by data binding while parsing element start tag. The base class implementation just sets the parent element link and reads in any extra namespaces defined on the element. Subclasses which override this implementation must call the base implementation during their processing.
        Overrides:
        preset in class SchemaBase
        Parameters:
        ictx - unmarshalling context
        Throws:
        JiBXException - on error