ilex.test.XmlObjectFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of opendcs Show documentation
Show all versions of opendcs Show documentation
A collection of software for aggregatting and processing environmental data such as from NOAA GOES satellites.
The newest version!
package ilex.test;
/**
* This class is designed to be the base class of
* application-specific classes that perform two functions:
*
* -
* Create new objects when certain XML tags are seen, and
*
* -
* Parse the contents of the XML elements.
*
*
*
* As with the XmlContentParser (from which this derives)
* the default implementation of each of the XML event methods
* produces a SAXException. Derived classes should override
* these as appropriate.
*
*/
public class XmlObjectFactory extends XmlContentParser
{
/**
* Create a new object of the correct type.
* This will create a new, "blank", object of some class that is a
* subclass of XmlObject. Derived classes should override this
* method such that the actual class of the newly created object
* is the correct one for a particular tag.
* By default, this creates a new object which
* is an instance of XmlObject.
*/
public XmlObject create()
{
return new XmlObject();
}
}