com.dfki.peregrin.filekeeping
Class SiteFile
java.lang.Object
|
+--java.util.Dictionary
|
+--java.util.Hashtable
|
+--com.dfki.peregrin.filekeeping.SiteFile
- All Implemented Interfaces:
- java.lang.Cloneable, java.util.Map, java.io.Serializable
- public class SiteFile
- extends java.util.Hashtable
SiteFile recursively implements a file hierarchy as follows: SiteFile is
constructed by giving a single url containing XML code suitable for a
non-validating XML parser; its main contents is a SiteNode tree which is
constructed from the XML tree.
Specific XML data causes the creation of new SiteFile objects for further
XML files; SiteFile extends Hashtable
Current XML date that causes the creation of a new SiteFile object:
-- attributes of the form include="http://...url..."
--- attributes of the form xmlhref="arbitrary"
-- frame nodes:
public methods:
constructors:
public SiteFile(String)
public SiteFile(URL)
methods for accessing internal states:
public void setURL(URL)
public URL url()
public void setSiteTree(SiteNode)
public SiteNode siteTree()
functionality:
public SiteFile getFile(String)
- See Also:
- Serialized Form
Inner classes inherited from class java.util.Map |
java.util.Map.Entry |
Methods inherited from class java.util.Hashtable |
clear, clone, contains, containsKey, containsValue, elements, entrySet, equals, get, hashCode, isEmpty, keys, keySet, put, putAll, rehash, remove, size, toString, values |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
SiteFile
public SiteFile(SiteServlet servlet,
java.lang.String url)
- constructors
SiteFile
public SiteFile(SiteServlet servlet,
SiteNode groot,
java.net.URL u,
SiteNode wrt)
getFile
public SiteFile getFile(java.lang.String name)
setURL
public void setURL(java.net.URL u)
url
public java.net.URL url()
setSiteTree
public void setSiteTree(SiteNode t)
siteTree
public SiteNode siteTree()