|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object sk.uniba.euromath.editor.XMLResourceManipulator
public final class XMLResourceManipulator
Responsible for loading and saving XML data.
Constructor Summary | |
---|---|
XMLResourceManipulator(IEditorInput editorInput)
Constructor. |
Method Summary | |
---|---|
IPath |
getFile()
Returns location path to the XML file. |
XMLAccess |
getXmlAccess()
Returns the document instance. |
protected boolean |
isInputValid()
Checks if this editor input is valid. |
void |
load()
Deserializes the document. |
protected void |
load(IPath data)
|
void |
save(String fullPathAndName)
Saves (serializes) the document. |
void |
save(String fullPathAndName,
String encoding,
XMLSerializerPropertiesWidget deq)
Serializes the document object model. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XMLResourceManipulator(IEditorInput editorInput)
editorInput
- document is deserialized from this editor input.Method Detail |
---|
public IPath getFile()
public XMLAccess getXmlAccess()
null
.protected final boolean isInputValid()
true
if given editor input is valid,
false
otherwise.public void load() throws SAXException, IOException, DocumentException, SchemaException
SAXException
IOException
DocumentException
SchemaException
protected void load(IPath data) throws SAXException, IOException, DocumentException, SchemaException
data
-
SAXException
IOException
DocumentException
SchemaException
public void save(String fullPathAndName) throws IOException
fullPathAndName
- if not null
then document is saved
into given file name. Otherwise, it is saved to a file name specified by
the XMLAccess instance.
IOException
- when i/o error occurs.public void save(String fullPathAndName, String encoding, XMLSerializerPropertiesWidget deq) throws IOException
fullPathAndName
- if not null
then document is saved
into given file name. Otherwise, it is saved to a file name specified by
the XMLAccess instance.encoding
- the encoding of the document. If null
then
default is used.deq
- output format parameters. May be null
- in such
case it is ignored.
IOException
- if serialization fails.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |