Class Aggregation

    • Field Detail

      • lazy

        protected boolean lazy
      • occurs

        protected Field occurs
    • Constructor Detail

      • Aggregation

        public Aggregation()
    • Method Detail

      • isProperty

        public abstract boolean isProperty()
        Returns whether this aggregation is a property of its parent bean object.
        Returns:
        true if this a property, false otherwise
      • length

        protected abstract int length​(java.lang.Object value)
        Returns the length of aggregation.
        Parameters:
        value - the aggregation value
        Returns:
        the length
      • marshal

        public final boolean marshal​(MarshallingContext context)
                              throws java.io.IOException
        Description copied from interface: Parser
        Marshals a record.
        Specified by:
        marshal in interface Parser
        Overrides:
        marshal in class DelegatingParser
        Parameters:
        context - the MarshallingContext
        Returns:
        whether a value was marshalled
        Throws:
        java.io.IOException - if an I/O error occurs
      • marshal

        protected abstract boolean marshal​(MarshallingContext context,
                                           Parser delegate,
                                           int minOccurs,
                                           int maxOccurs)
                                    throws java.io.IOException
        Throws:
        java.io.IOException
      • unmarshal

        protected abstract boolean unmarshal​(UnmarshallingContext context,
                                             Parser delegate,
                                             int minOccurs,
                                             int maxOccurs)
      • isOptional

        public boolean isOptional()
        Description copied from interface: Parser
        Returns whether this node must exist during unmarshalling.
        Specified by:
        isOptional in interface Parser
        Overrides:
        isOptional in class DelegatingParser
        Returns:
        true if this node is optional during unmarshalling, false otherwise
      • isIdentifier

        public boolean isIdentifier()
        Description copied from interface: Parser
        Returns whether this parser or any descendant of this parser is used to identify a record during unmarshalling.
        Specified by:
        isIdentifier in interface Parser
        Specified by:
        isIdentifier in interface Property
        Overrides:
        isIdentifier in class DelegatingParser
        Returns:
        true if this parser or any descendant is used to identify a record
      • setIdentifier

        public void setIdentifier​(boolean identifier)
        Specified by:
        setIdentifier in interface Property
        Throws:
        java.lang.UnsupportedOperationException
      • getIterationIndex

        public final int getIterationIndex​(ParsingContext context)
        Description copied from interface: Iteration
        Returns the index of the current iteration relative to its parent.
        Specified by:
        getIterationIndex in interface Iteration
        Returns:
        the index of the current iteration
      • setIterationIndex

        protected final void setIterationIndex​(ParsingContext context,
                                               int index)
      • getMinOccurs

        public int getMinOccurs()
      • setMinOccurs

        public void setMinOccurs​(int minOccurs)
      • getMaxOccurs

        public int getMaxOccurs()
      • setMaxOccurs

        public void setMaxOccurs​(int maxOccurs)
      • getOccurs

        public Field getOccurs()
      • setOccurs

        public void setOccurs​(Field occurs)
      • isLazy

        public boolean isLazy()
      • setLazy

        public void setLazy​(boolean lazy)
      • isDynamicIteration

        public boolean isDynamicIteration()
        Description copied from interface: Iteration
        Returns whether the iteration size is variable based on another field in the record.
        Specified by:
        isDynamicIteration in interface Iteration
        Returns:
        true if variable, false otherwise
      • registerLocals

        public void registerLocals​(java.util.Set<ParserLocal<? extends java.lang.Object>> locals)
        Description copied from class: Component
        Called by a stream to register variables stored in the parsing context. This method should be overridden by subclasses that need to register one or more parser context variables.
        Overrides:
        registerLocals in class Component
        Parameters:
        locals - set of local variables