cz.cuni.amis.introspection
Class Folder

Package class diagram package Folder
java.lang.Object
  extended by cz.cuni.amis.introspection.Feature
      extended by cz.cuni.amis.introspection.Folder
Direct Known Subclasses:
AbstractObjectFolder, FolderShadow, ScriptProxyManager.EmptyFolder

public abstract class Folder
extends Feature

Interface for introspection of internal properties of object.

Author:
Ik

Field Summary
 
Fields inherited from class cz.cuni.amis.introspection.Feature
name
 
Constructor Summary
Folder(String name)
           
 
Method Summary
 Properties createProperties()
          Stores all folders and properties from this Folder to a Java Properties object that can be used for storing the values.
protected  Properties createProperties(String prefix)
          Stores all folders and properties from this Folder to a Java Properties object that can be used for storing the values.
 Folder getFolder(String name)
           
abstract  Folder[] getFolders()
           
abstract  Property[] getProperties()
           
 Property getProperty(String name)
          Return property of the given name, null if no such property exists.
 void loadFromProperties(Properties props)
          Initializes folder from the properties object.
protected  void loadFromProperties(Properties props, String prefix)
          Initializes folder from the properties object.
 
Methods inherited from class cz.cuni.amis.introspection.Feature
getName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Folder

public Folder(String name)
Method Detail

getFolders

public abstract Folder[] getFolders()
                             throws IntrospectionException
Returns:
Array of introspectable children objects.
Throws:
IntrospectionException

getProperties

public abstract Property[] getProperties()
                                  throws IntrospectionException
Returns:
Array of properties of this object.
Throws:
IntrospectionException

getProperty

public Property getProperty(String name)
                     throws IntrospectionException
Return property of the given name, null if no such property exists.

Parameters:
name - Name of the
Returns:
Throws:
IntrospectionException

getFolder

public Folder getFolder(String name)
                 throws IntrospectionException
Throws:
IntrospectionException

createProperties

public Properties createProperties()
                            throws IntrospectionException
Stores all folders and properties from this Folder to a Java Properties object that can be used for storing the values.

Returns:
Throws:
IntrospectionException

createProperties

protected Properties createProperties(String prefix)
                               throws IntrospectionException
Stores all folders and properties from this Folder to a Java Properties object that can be used for storing the values.

Parameters:
prefix - prefix should be empty for root folder or end with dot for subfolders
Returns:
Throws:
IntrospectionException

loadFromProperties

public void loadFromProperties(Properties props)
                        throws IntrospectionException
Initializes folder from the properties object.

Parameters:
props -
Throws:
IntrospectionException

loadFromProperties

protected void loadFromProperties(Properties props,
                                  String prefix)
                           throws IntrospectionException
Initializes folder from the properties object.

Parameters:
props -
Throws:
IntrospectionException


Copyright © 2014 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.