All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class w3c.jigadm.PropertyManager

java.lang.Object
   |
   +----w3c.jigadm.PropertyManager

public class PropertyManager
extends Object

Variable Index

 o classProperties
The set of resource classes we know about.
 o iconProperties
/** the mapping of icon names to icon locations
 o mimeTypes
the hashtable of mime types
 o propertyManager
 o root
The root for the property files.
 o ROOT_P

Constructor Index

 o PropertyManager(File)

Method Index

 o findResourceClassProperties(String[])
 o findResourceClassProperties(String[], int)
 o getAttributeProperties(RemoteResourceWrapper, Attribute)
Get the properties for the attribute editor of a given remote resource.
 o getClassHierarchy(RemoteResourceWrapper)
 o getDefaultAttributeProperties(String)
 o getDefaultHelperProperties(String)
 o getEditorProperties(RemoteResourceWrapper)
Get any properties for the editor of the given remote resource instance.
 o getHelperClasses(RemoteResourceWrapper)
Get the list of helpers to be created for the given remote resource.
 o getHelperProperties(RemoteResourceWrapper, String)
Get the properties for the helper of a given remote resource.
 o getIconLocation(String)
get the icon name resolved from its description
 o getMimeTypes()
get the hashtable of mimetypes
 o getPropertyManager()
 o getResourceClassProperties(String[])
 o getResourceClassProperties(String[], int)
Get the best matching resource class properties for given class.
 o initialize()
Load the properties from the root directory.
 o merge(Properties, Properties)
 o merge(Properties, Properties, boolean)

Variables

 o root
 protected File root
The root for the property files.

 o classProperties
 protected Hashtable classProperties
The set of resource classes we know about. Maps class names to ResourceClassProperty

 o iconProperties
 protected Properties iconProperties
/** the mapping of icon names to icon locations

 o mimeTypes
 protected Hashtable mimeTypes
the hashtable of mime types

 o ROOT_P
 public static String ROOT_P
 o propertyManager
 public static PropertyManager propertyManager

Constructors

 o PropertyManager
 public PropertyManager(File root)

Methods

 o merge
 protected static Properties merge(Properties into,
                                   Properties source,
                                   boolean overide)
 o merge
 protected static Properties merge(Properties into,
                                   Properties source)
 o initialize
 protected void initialize()
Load the properties from the root directory.

 o getResourceClassProperties
 protected ResourceClassProperties getResourceClassProperties(String names[],
                                                              int from)
Get the best matching resource class properties for given class.

Parameters:
classes - The class names we're looking a macth for.
Returns:
A ResourceClassProperties instance.
 o getResourceClassProperties
 protected ResourceClassProperties getResourceClassProperties(String names[])
 o findResourceClassProperties
 protected int findResourceClassProperties(String classes[],
                                           int offset)
 o findResourceClassProperties
 protected int findResourceClassProperties(String classes[])
 o getClassHierarchy
 protected String[] getClassHierarchy(RemoteResourceWrapper rrw)
 o getDefaultHelperProperties
 protected Properties getDefaultHelperProperties(String clsname)
 o getDefaultAttributeProperties
 protected Properties getDefaultAttributeProperties(String clsname)
 o getEditorProperties
 public Properties getEditorProperties(RemoteResourceWrapper rrw)
Get any properties for the editor of the given remote resource instance.

Returns:
A Properties instance.
 o getHelperClasses
 public String[] getHelperClasses(RemoteResourceWrapper rrw)
Get the list of helpers to be created for the given remote resource.

Returns:
A set of helper class names (as an array).
 o getHelperProperties
 public Properties getHelperProperties(RemoteResourceWrapper rrw,
                                       String helperClass)
Get the properties for the helper of a given remote resource.

Parameters:
rr - The remote resource being edited.
helperClass - Class of the helper about to be created.
Returns:
An instance of Properties.
 o getAttributeProperties
 public Properties getAttributeProperties(RemoteResourceWrapper rrw,
                                          Attribute attr)
Get the properties for the attribute editor of a given remote resource.

Parameters:
rr - The remote resource being edited.
attr - The attribute being edited.
 o getIconLocation
 public String getIconLocation(String name)
get the icon name resolved from its description

Parameters:
name - a String
 o getMimeTypes
 public Hashtable getMimeTypes()
get the hashtable of mimetypes

 o getPropertyManager
 public static PropertyManager getPropertyManager()

All Packages  Class Hierarchy  This Package  Previous  Next  Index