Rational Developer for Power Systems Software
V7.6

com.ibm.etools.iseries.edit.xmllite
Class XmlLiteStore

java.lang.Object
  extended by com.ibm.etools.iseries.edit.xmllite.XmlLiteStore

public class XmlLiteStore
extends Object

This class manages the loading, storing, parsing and creation of the element tree.


Field Summary
protected  int _iColumn
           
protected  int _iLine
           
protected  int _iMode
           
protected  InputStream _inputStream
           
protected  LineNumberReader _lineReader
           
protected  XmlLiteElement _parserElementCurrent
           
protected  XmlLiteElement _parserElementRoot
           
protected  XmlLiteAttribute _parserTextAttributeCurrent
           
protected  XmlLiteReader _reader
           
protected  String _strLine
           
protected  URL _url
           
static String copyright
           
 
Constructor Summary
XmlLiteStore()
          Constructor.
 
Method Summary
 File createFile(URL url)
           
protected  void handleAttribute()
           
protected  void handleComment()
           
protected  void handleCommentStart()
           
protected  void handleDoctype()
           
protected  void handleElement()
           
protected  void handleElementEnd()
           
protected  void handleElementStart()
           
protected  void handleText()
           
protected  void handleTextStart()
           
protected  void handleUnknown()
           
protected  void handleXml()
           
 boolean load(XmlLite lite, URL url)
           
protected  void processLine()
           
 void save(XmlLite lite, URL url)
          Attempts to write to the url connection's output stream.
 void saveAsFile(XmlLite lite, URL url)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

copyright

public static final String copyright
See Also:
Constant Field Values

_url

protected URL _url

_iMode

protected int _iMode

_reader

protected XmlLiteReader _reader

_strLine

protected String _strLine

_parserElementCurrent

protected XmlLiteElement _parserElementCurrent

_parserElementRoot

protected XmlLiteElement _parserElementRoot

_parserTextAttributeCurrent

protected XmlLiteAttribute _parserTextAttributeCurrent

_iLine

protected int _iLine

_iColumn

protected int _iColumn

_inputStream

protected InputStream _inputStream

_lineReader

protected LineNumberReader _lineReader
Constructor Detail

XmlLiteStore

public XmlLiteStore()
Constructor.

Method Detail

createFile

public File createFile(URL url)
                throws XmlLiteException
Parameters:
url - java.net.URL
Returns:
java.io.File
Throws:
XmlLiteException

handleAttribute

protected void handleAttribute()
                        throws XmlLiteException
Throws:
XmlLiteException

handleComment

protected void handleComment()

handleCommentStart

protected void handleCommentStart()

handleDoctype

protected void handleDoctype()

handleElement

protected void handleElement()

handleElementEnd

protected void handleElementEnd()
                         throws XmlLiteException
Throws:
XmlLiteException

handleElementStart

protected void handleElementStart()
                           throws XmlLiteException
Throws:
XmlLiteException

handleText

protected void handleText()

handleTextStart

protected void handleTextStart()

handleUnknown

protected void handleUnknown()

handleXml

protected void handleXml()

load

public boolean load(XmlLite lite,
                    URL url)
             throws XmlLiteException
Parameters:
strLog - java.lang.String
Throws:
XmlLiteException

processLine

protected void processLine()
                    throws XmlLiteException
Throws:
XmlLiteException

save

public void save(XmlLite lite,
                 URL url)
          throws XmlLiteException
Attempts to write to the url connection's output stream. If this fails, then attempts to write to a file.

Throws:
XmlLiteException

saveAsFile

public void saveAsFile(XmlLite lite,
                       URL url)
                throws XmlLiteException
Parameters:
XmlLite -
url - java.net.URL
Throws:
XmlLiteException

Rational Developer for Power Systems Software
V7.6

Copyright © 2011 IBM Corp. All Rights Reserved.

Note: This documentation is for part of an interim API that is still under development and expected to change significantly before reaching stability. It is being made available at this early stage to solicit feedback from pioneering adopters on the understanding that any code that uses this API will almost certainly be broken (repeatedly) as the API evolves.