public class TreevizFileSystemXMLTree extends java.lang.Object implements DemoTree
The children of the Users element are interpreted as user account data.
Each element should have the following attributes: id(XML-ID), name(Text),
created(ISO-Date), isActive(boolean).
Nesting of elements is not allowed. Other than that, there are no
more restrictions on the elements.
The children of the Files element are interpreted as a directory tree.
Each element should have the following attributes: name(Text),
created(ISO-Date), size(Number), and "ownerRef"(id of a user), "creatorRef".
Nesting of elements is allowed to form a directory structure. Other than that,
there are no more restrictions on the elements.
See XMLNodeInfo on how the XML data structure is being interpreted.
| Constructor and Description |
|---|
TreevizFileSystemXMLTree(java.io.File xmlFile) |
TreevizFileSystemXMLTree(java.net.URL xmlFile) |
| Modifier and Type | Method and Description |
|---|---|
TreevizFileSystemXMLNodeInfo |
getInfo() |
TreevizFileSystemXMLNode |
getRoot() |
TreevizFileSystemXMLNode |
getUsersRoot() |
void |
read(java.io.InputStream in,
java.lang.String rootName,
long fileLength) |
public TreevizFileSystemXMLTree(java.io.File xmlFile)
throws java.io.IOException
java.io.IOExceptionpublic TreevizFileSystemXMLTree(java.net.URL xmlFile)
throws java.io.IOException
java.io.IOExceptionpublic void read(java.io.InputStream in,
java.lang.String rootName,
long fileLength)
throws java.io.IOException
java.io.IOExceptionpublic TreevizFileSystemXMLNode getRoot()
public TreevizFileSystemXMLNode getUsersRoot()
public TreevizFileSystemXMLNodeInfo getInfo()