IdGen
(package private) IdGen IdGen
DR**************
baseURL
(package private) URL baseURL
doc2XDoc
(package private) HashMap doc2XDoc
doc2forest
(package private) HashMap doc2forest
DR***************
file2name
(package private) HashMap file2name
forests
(package private) HashMap forests
origUri
(package private) String origUri
DR*********
replicationCounters
(package private) HashMap replicationCounters
DR **************
url2XDoc
(package private) HashMap url2XDoc
addDocToForest
public boolean addDocToForest(String forestName,
String fileName,
String docName)
*******************************ADD DOCUMENT TO FOREST
************************************
forestName
- fileName
- docName
-
addDocToForest
public void addDocToForest(String forestName,
XDocument xdoc)
clear
public boolean clear()
createForest
(package private) void createForest(Element forest)
createForest
public boolean createForest(String forestName)
creates forest with the given name
getData
public HashMap getData()
getDataGuide
public ArrayList getDataGuide(String name)
D&R*******************************************
getDocument
public XDocument getDocument(String forestName,
String fileName)
getDocument
(package private) XDocument getDocument(URL url,
String xdocName,
String forestName)
throws Exception
Returns a XDocument representing the document located at url
getDocument
public XDocument getDocument(URL docURL,
String fileName,
String docName,
String forestName)
D&R*******************************************
getDocumentFileNames
public String[] getDocumentFileNames()
getDocumentName
public String getDocumentName(Document doc)
getDocumentName
public String getDocumentName(String fileName)
returns a real name of a document
getDocumentNames
public String[] getDocumentNames()
getDocumentURLs
public URL[] getDocumentURLs()
getDocumentsPaths
public String[] getDocumentsPaths()
getForestName
public String getForestName(String fileName)
getForestNames
public String[] getForestNames()
getOrigURI
public String getOrigURI()
getbaseURL
public URL getbaseURL()
isDocInForest
public boolean isDocInForest(String forestName,
String fileName)
isElement
(package private) static boolean isElement(Node n,
String name)
readbaseURL
(package private) void readbaseURL(URL baseURL)
removeDocFromForest
public boolean removeDocFromForest(String forestName,
XDocument xdoc)
removeDocument
public boolean removeDocument(String fileName,
Document doc)
removeDocument
public boolean removeDocument(URL url)
removeForest
public void removeForest(String forestName)
save
public boolean save()
updateDocument
public void updateDocument(Document doc)
updateDocument
public void updateDocument(String forestName,
URL docURL,
Document doc)
xmlSerialize
public void xmlSerialize(PrintWriter pw)
xmlSerializeForest
(package private) void xmlSerializeForest(PrintWriter pw,
String forestName,
ArrayList forest)