|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Interface extends XML editor data-model interface
FXModel with methods, performing
XML documents creating, loading and retrieval.
| Method Summary | |
void |
clear()
Removes current XML document from data-model. |
java.lang.String[] |
getAvailableRootElementNames(java.lang.String ns)
Returns an array of names of global non-abstract elements names for the given namespace. |
java.lang.String[] |
getAvailableRootNamespaces()
Returns an array of namespaces which have global definitions of non-absract elements. |
org.w3c.dom.Document |
getDocument()
Returns current XML document as a DOM Tree or null when
data-model contains no document. |
java.net.URL |
getSchemaURL()
Returns a URL of the current XML Schema document. |
void |
newDocument(java.net.URL schemaURL)
Creates new empty XML document for the specified XML Schema for the first available root namespace and element name found. |
void |
newDocument(java.net.URL schemaURL,
java.lang.String elementName)
Creates a new empty XML document for specified XML Schema and name of the root element. |
void |
newDocument(java.net.URL schemaURL,
java.lang.String ns,
java.lang.String elementName)
Creates a new empty XML document for specified XML Schema and namespace and name of the root element. |
java.util.List |
openDocument(java.net.URL schemaURL,
org.w3c.dom.Document doc)
Opens an existing XML document with specified XML Schema. |
java.util.List |
openDocument(java.net.URL schemaURL,
org.xml.sax.InputSource src)
Opens an existing XML document with specified XML Schema. |
java.util.List |
openDocument(java.net.URL schemaURL,
java.net.URL docURL)
Opens an existing XML document with specified XML Schema. |
void |
setDocumentChanged(boolean changed)
Allows to set "changed" status for the current XML document programaticaly. |
| Methods inherited from interface com.fg.xmleditor.FXModel |
addModelStatusListener, fireTreeModelDataChanged, getNodeMessage, getNSQualifiers, getRootElementName, getRootNamespace, getValidityMessage, insertInstance, isDocumentChanged, isDocumentValid, populateNode, removeInstance, removeModelStatusListener, setNodeValue, setNSQualifier, toggleSelectionChanged |
| Methods inherited from interface com.fg.ftree.FTreeModel |
addTreeModelListener, getAllowsChildren, getChild, getChildCount, getRoot, removeTreeModelListener |
| Method Detail |
public java.lang.String[] getAvailableRootNamespaces()
public java.lang.String[] getAvailableRootElementNames(java.lang.String ns)
ns - a namespace URI
public void newDocument(java.net.URL schemaURL)
throws FXModelException
schemaURL - a URL of the XML Schema document
FXModelException - when specified XML document can't be created
public void newDocument(java.net.URL schemaURL,
java.lang.String elementName)
throws FXModelException
FXModelException when no
such namespace found.
schemaURL - a URL of the XML Schema documentelementName - a local name of the root XML element
FXModelException - when specified XML document can't be created
public void newDocument(java.net.URL schemaURL,
java.lang.String ns,
java.lang.String elementName)
throws FXModelException
schemaURL - a URL of the XML Schema documentns - a namespace of the root XML elementelementName - a local name of the root XML element
FXModelException - when specified XML document can't be created
public java.util.List openDocument(java.net.URL schemaURL,
org.w3c.dom.Document doc)
throws FXModelException
schemaURL - a URL of the XML Schema documentdoc - a Document object, which holds existing XML document
org.w3c.dom.Element elements, which
have not been loaded because of the document structural invalidity or
null if the whole document has been loaded successfully.
FXModelException - when specified XML document can't be opened
with the specified XML Schema.
public java.util.List openDocument(java.net.URL schemaURL,
java.net.URL docURL)
throws FXModelException
schemaURL - a URL of the XML Schema documentdocURL - a URL of the XML document
org.w3c.dom.Element elements, which
have not been loaded because of the document structural invalidity or
null if the whole document has been loaded successfully.
FXModelException - when specified XML document can't be opened
with the specified XML Schema.
public java.util.List openDocument(java.net.URL schemaURL,
org.xml.sax.InputSource src)
throws FXModelException
schemaURL - a URL of the XML Schema documentsrc - an InputSource for the XML document
org.w3c.dom.Element elements, which
have not been loaded because of the document structural invalidity or
null if the whole document has been loaded successfully.
FXModelException - when specified XML document can't be opened
with the specified XML Schema.public void setDocumentChanged(boolean changed)
false after the
current document is saved.
changed - a "changed" boolean valuepublic java.net.URL getSchemaURL()
public org.w3c.dom.Document getDocument()
null when
data-model contains no document.
Document object.public void clear()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||