Modello XPP3 Plugin

Modello XPP3 Plugin generates XML readers and writers based on XPP3 API (XML Pull Parser) provided by plexus-utils.

Notice: DOM content type can be represented either as plexus-utils' Xpp3Dom or, since Modello 1.6, standard org.w3c.dom.Element objects

xpp3-reader

xpp3-reader generator creates my.model.package.io.xpp3.ModelNameXpp3Reader class with following public methods:

  • public RootClass read( Reader reader, boolean strict )
        throws IOException, XmlPullParserException
  • public RootClass read( Reader reader )
        throws IOException, XmlPullParserException
  • public RootClass read( InputStream in, boolean strict )
        throws IOException, XmlPullParserException
  • public RootClass read( InputStream in )
        throws IOException, XmlPullParserException
  • public void setAddDefaultEntities( boolean addDefaultEntities )
  • public boolean getAddDefaultEntities()

xpp3-writer

xpp3-writer generator creates my.model.package.io.xpp3.ModelNameXpp3Writer class with following public methods:

  • public void write( Writer writer, RootClass root )
        throws IOException