All Superinterfaces:
IParsingContext<org.codehaus.stax2.XMLEventReader2,IXmlProblemHandler>
All Known Implementing Classes:
MetaschemaXmlReader

public interface IXmlParsingContext extends IParsingContext<org.codehaus.stax2.XMLEventReader2,IXmlProblemHandler>
  • Method Details

    • read

      <CLASS> CLASS read(@NonNull IBoundDefinitionModelComplex definition) throws IOException
      Parses XML into a bound object based on the provided definition.

      Parses the XMLStreamConstants.START_DOCUMENT, any processing instructions, and the element.

      Type Parameters:
      CLASS - the returned object type
      Parameters:
      definition - the definition describing the element data to read
      Returns:
      the parsed object
      Throws:
      IOException - if an error occurred while parsing the input
    • readItems

      <T> boolean readItems(@NonNull IBoundInstanceModel<T> instance, @NonNull IBoundObject parentObject, boolean parseGrouping) throws IOException
      Read the data associated with the instance and apply it to the provided parentObject.
      Type Parameters:
      T - the item Java type
      Parameters:
      instance - the instance to parse data for
      parentObject - the Java object that data parsed by this method will be stored in
      parseGrouping - if true parse the instance's grouping element or false otherwise
      Returns:
      true if the instance was parsed, or false if the data did not contain information for this instance
      Throws:
      IOException - if an error occurred while parsing the input