| Constructor and Description |
|---|
GeometryTreeModel()
Standard constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addContained(String
Add all files in this directory to the given namespace.
|
void |
addDirectory(Node
Add the directory 'name' to the denoted node.
|
void |
addFile(File
Add the denoted file to the denoted parent node.
|
void |
addFiles(List
Add the denoted list of files to the denoted parent node.
|
void |
addFiles(List
Add the list of files to the given path.
|
void |
addTreeModelListener(TreeModelListener
|
Node |
createNamespace(String
Create this folder namespace.
|
static GeometryTreeModel |
deserialize(SAXParser
Read a GeometryTreeModel from the given Inputstream and SAXParser
|
Entry |
getByNamespace(String
Get an entry by it's namespace.
|
Object |
getChild(Object
|
int |
getChildCount(Object
|
int |
getIndexOfChild(Object
|
Node |
getRoot()
|
boolean |
isLeaf(Object
|
void |
removePath(TreePath
Remove the denoted element from the model.
|
void |
removeTreeModelListener(TreeModelListener
|
void |
serialize(TransformerHandler
Serialize the model to a XML output.
|
void |
valueForPathChanged(TreePath
|
public NodecreateNamespace(String namespace)
namespace - a namespace with parts separated by dots.
public EntrygetByNamespace(String namespace)
namespace - the namespace to use for searching
public void addContained(Stringdirectory, String namespace)
directory - the directory containing the files.
namespace - the namespace to add the files in.
public NodegetRoot()
public int getChildCount(Objectparent)
public boolean isLeaf(Objectnode)
public void addTreeModelListener(TreeModelListenerl)
public void removeTreeModelListener(TreeModelListenerl)
public void addDirectory(Nodenode, String name)
node - the node to add a child for.
name - the new node's name.
public void addFiles(List<File > files, TreePath path)
files - the files to add.
path - the path, where to add.
public void addFile(Filefile, Node parent)
file - the file to add.
parent - the node to add the file in.
public void addFiles(List<File > handleFiles, Node parent)
handleFiles - the files to add.
parent - the node to add the files in.
public void serialize(TransformerHandlerhandler) throws SAXException
handler - the handler to output to.
SAXException - if a xml error occurs.
public static GeometryTreeModeldeserialize(SAXParser sax, FileInputStream inputStream) throws SAXException , IOException
sax - the parser to use.
inputStream - the input stream to read from.
SAXException - if an error occurred while reading.
IOException - if an error occurred while reading.
public void removePath(TreePathpath)
path - the path describing the element to remove.