|
JMSLTM Numerical Library 5.0.1 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.imsl.chart.xml.ChartXML
public class ChartXML
Create a Chart from an XML file.
Constructor Summary | |
---|---|
ChartXML(Document document)
Creates a ChartXML from a DOM tree. |
|
ChartXML(InputSource source,
boolean validating)
Creates a ChartXML from an XML source. |
|
ChartXML(String filename)
Creates a ChartXML from an XML file. |
|
ChartXML(String filename,
boolean validating)
Creates a ChartXML from an XML file. |
Method Summary | |
---|---|
void |
error(SAXParseException exception)
Receive notification of a recoverable error. |
protected void |
error(String key,
Object[] args)
Handles error messages. |
void |
fatalError(SAXParseException exception)
Receive notification of a non-recoverable error. |
Object |
get(String id)
Returns a generated object given the id attribute in the XML tag that created the object. |
Chart |
getChart()
Returns the root node of the chart tree. |
protected static Integer |
getEnumValue(String value)
Returns the int corresponding to an enumeration. |
Set |
keySet()
Returns the Set view of all id's defined in the XML file. |
static void |
main(String[] argv)
Displays a chart created from an XML file. |
protected Object |
stringToObject(Class theClass,
String value)
Converts a String into an Object of the given class. |
void |
warning(SAXParseException exception)
Receive notification of a warning. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ChartXML(Document document) throws SAXException
document
- is a description of a chart.
SAXException
public ChartXML(InputSource source, boolean validating) throws SAXException, IOException, ParserConfigurationException
source
- is an InputSource containing an
XML description of a chart.validating
- is true if a validating parser is to be used.
IOException
- if there is a problem reading the source.
SAXException
- if there is a problem parsing the source.
ParserConfigurationException
- if there is a problem
configuring the XML parser.public ChartXML(String filename) throws SAXException, IOException, ParserConfigurationException
filename
- is the name of a file containing an
XML description of a chart.
IOException
- if there is a problem reading the file.
SAXException
- if there is a problem parsing the file.
ParserConfigurationException
- if there is a problem
configuring the XML parser.public ChartXML(String filename, boolean validating) throws SAXException, IOException, ParserConfigurationException
filename
- is the name of a file containing an
XML description of a chart.validating
- is true if a validating parser is to be used.
IOException
- if there is a problem reading the file.
SAXException
- if there is a problem parsing the file.
ParserConfigurationException
- if there is a problem
configuring the XML parser.Method Detail |
---|
public void error(SAXParseException exception)
error
in interface ErrorHandler
protected void error(String key, Object[] args)
key
- is the key to the error message string in the
ErrorMessages bundle in this package.args
- are the arguments to be filled into the error
message string.public void fatalError(SAXParseException exception)
fatalError
in interface ErrorHandler
public Object get(String id)
public Chart getChart()
protected static Integer getEnumValue(String value)
public Set keySet()
public static void main(String[] argv) throws Exception
Exception
protected Object stringToObject(Class theClass, String value)
public void warning(SAXParseException exception)
warning
in interface ErrorHandler
|
JMSLTM Numerical Library 5.0.1 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |