public class TLFolder extends Object implements Serializable
Folder when user calls method TLFolder.update(long timestamp),
it doesn't refresh automaticly.
TLFolder can contain properties and subfolder. Everything is updated recursively.
TLFolder can be created either by mirroring existing Folder or by creating an
empty TLFolder and populating it with properties and subfolders.TLProperty,
Folder,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
protected String |
name
Name of the storage folder
|
LinkedList<TLProperty> |
properties
List of folders that are in this folder
|
LinkedList<TLFolder> |
subfolders |
| Constructor and Description |
|---|
TLFolder(cz.cuni.amis.introspection.Folder folder)
Create a new folder for storing pairs (timestamp, value).
|
TLFolder(String name)
Create an empty folder with name.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addFolder(TLFolder newSubfolder)
Add subfolder to the folder.
|
void |
addProperty(TLProperty newProperty)
Add property to the folder
|
TLFolder |
findFolder(String name)
Find if we have subfolder with specified name and return it.
|
TLProperty |
findProperty(String name)
Find if we have property with specified name in properties and return it.
|
String |
getName()
Return name of the folder.
|
List<TLProperty> |
getProperties() |
List<TLFolder> |
getSubfolders() |
protected String name
public LinkedList<TLProperty> properties
public LinkedList<TLFolder> subfolders
public TLFolder(cz.cuni.amis.introspection.Folder folder)
throws cz.cuni.amis.introspection.IntrospectionException
folder - folder we want to mirror.cz.cuni.amis.introspection.IntrospectionExceptionpublic TLFolder(String name)
name - public void addFolder(TLFolder newSubfolder)
newSubfolder - public void addProperty(TLProperty newProperty)
newProperty - public TLFolder findFolder(String name)
name - name of the subfolder we are searching forpublic TLProperty findProperty(String name)
name - name of the property we are searching forpublic String getName()
public List<TLProperty> getProperties()
Copyright © 2012 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.