|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object sk.uniba.euromath.document.XMLAccess
public final class XMLAccess
Provides access to the document. Accessible from out of document package. Class is not intended to be instantiated by clients.
Method Summary | |
---|---|
void |
closeView(DocumentView view)
Unregisters the view. |
Set<String> |
getAllNamespaces()
Deprecated. |
DocumentContent |
getContent()
Returns document content retriever for this document. |
Document |
getDocument()
Access to the XML document. |
DocumentModifyHelper |
getDocumentModifyHelper()
Returns clients Helper for modifying. |
URL |
getDocumentURL()
Returns full URI address of the document. |
DomCore |
getDomProxy()
Deprecated. |
String |
getEncoding()
Returns encoding, in which the document is serialized. |
sk.baka.ikslibs.ref.EntityManager |
getEntityManager()
Returns entity manager for this document. |
ExportManager |
getExportManager()
Returns the export manager for this document. |
String |
getFileName()
Returns the name of the document file, including the extension, without the path specifier. |
sk.baka.ikslibs.ids.IDManager |
getIdManager()
Returns ID manager, that maps IDs to nodes and vice versa. |
DocumentListeners |
getListeners()
Returns document listeners manager for this document. |
DocumentModifier |
getModifier()
Returns document modifier, which is used to transparently modify the document. |
NamespaceManager |
getNsManager()
Returns namespace manager for this document. |
URLDir |
getRoot()
Returns URL pointing to the directory where the document is located. |
DocumentSchema |
getSchema()
Document's content modifier helper. |
sk.baka.ikslibs.splitted.SplittedDocHolder |
getSplittedDoc()
Returns object accessing the 'splitted' image of the document. |
UndoManager |
getUndoManager()
Returns instance of the undo manager for this document. |
void |
loadGlobalSchemas()
Loads global schemas for all namespaces, present in the document, for which no local schema was loaded. |
void |
openView(DocumentView view)
Opens new view on the document. |
void |
saveDocument(OutputStream out,
String encoding,
boolean prettyFormatting)
Serializes in-memory document to specified output stream. |
void |
serialize(OutputStream out)
Serializes transformed document "as-is", no emp:id removal is performed. |
void |
validate()
Validates this document. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public void openView(DocumentView view)
view
- the view to register.public void closeView(DocumentView view)
view
- the document view to close. Fails if the view was not opened
for this document.public UndoManager getUndoManager()
@Deprecated public Set<String> getAllNamespaces()
null
namespace (nor empty
namespace) does not occur in the returned set. Deprecated, use namespace
manager methods.public Document getDocument()
Access to the XML document. This document has this special feature: Every
element has emp:id
attribute, denoting ID of that element.
WARNING: It's client responsibility to use returned reference for
read-access only. Any change of the document leads to inconsistency and
errorneous behaviour. For write-access use the
DocumentModifier
object obtained using the
getModifier()
method.
public void validate() throws SchemaException
SchemaException
- if something goes wrong in the process of
validation.public DocumentModifier getModifier()
public void loadGlobalSchemas() throws SchemaException, IOException
SchemaException
- if error happens during loading of schemas.
IOException
- if i/o error occurspublic DocumentSchema getSchema()
public sk.baka.ikslibs.ids.IDManager getIdManager()
public NamespaceManager getNsManager()
public sk.baka.ikslibs.ref.EntityManager getEntityManager()
public DocumentContent getContent()
public void saveDocument(OutputStream out, String encoding, boolean prettyFormatting)
out
- stream, where to store saved xml.encoding
- the encoding. If null
, then UTF-8 is
used.prettyFormatting
- if output xml will be pretty-formatted - readable
by user. Warning: this adds some whitespaces to xml, thus modifying
result xml. User must be sure that these whitespaces are discardable.public String getEncoding()
null
if the encoding was not specified.
public void serialize(OutputStream out)
out
- the outputstream.@Deprecated public DomCore getDomProxy()
public DocumentListeners getListeners()
public ExportManager getExportManager()
public URL getDocumentURL()
public String getFileName()
public URLDir getRoot()
public sk.baka.ikslibs.splitted.SplittedDocHolder getSplittedDoc()
DomToSplitted
for this document.public DocumentModifyHelper getDocumentModifyHelper()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |