All Packages Class Hierarchy This Package Previous Next Index
Class w3c.jigadm.PropertyManager
java.lang.Object
|
+----w3c.jigadm.PropertyManager
- public class PropertyManager
- extends Object
-
classProperties
- The set of resource classes we know about.
-
iconProperties
- /**
the mapping of icon names to icon locations
-
mimeTypes
- the hashtable of mime types
-
propertyManager
-
-
root
- The root for the property files.
-
ROOT_P
-
-
PropertyManager(File)
-
-
findResourceClassProperties(String[])
-
-
findResourceClassProperties(String[], int)
-
-
getAttributeProperties(RemoteResourceWrapper, Attribute)
- Get the properties for the attribute editor of a given remote resource.
-
getClassHierarchy(RemoteResourceWrapper)
-
-
getDefaultAttributeProperties(String)
-
-
getDefaultHelperProperties(String)
-
-
getEditorProperties(RemoteResourceWrapper)
- Get any properties for the editor of the given remote resource instance.
-
getHelperClasses(RemoteResourceWrapper)
- Get the list of helpers to be created for the given remote resource.
-
getHelperProperties(RemoteResourceWrapper, String)
- Get the properties for the helper of a given remote resource.
-
getIconLocation(String)
- get the icon name resolved from its description
-
getMimeTypes()
- get the hashtable of mimetypes
-
getPropertyManager()
-
-
getResourceClassProperties(String[])
-
-
getResourceClassProperties(String[], int)
- Get the best matching resource class properties for given class.
-
initialize()
- Load the properties from the root directory.
-
merge(Properties, Properties)
-
-
merge(Properties, Properties, boolean)
-
root
protected File root
- The root for the property files.
classProperties
protected Hashtable classProperties
- The set of resource classes we know about.
Maps class names to ResourceClassProperty
iconProperties
protected Properties iconProperties
- /**
the mapping of icon names to icon locations
mimeTypes
protected Hashtable mimeTypes
- the hashtable of mime types
ROOT_P
public static String ROOT_P
propertyManager
public static PropertyManager propertyManager
PropertyManager
public PropertyManager(File root)
merge
protected static Properties merge(Properties into,
Properties source,
boolean overide)
merge
protected static Properties merge(Properties into,
Properties source)
initialize
protected void initialize()
- Load the properties from the root directory.
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.
getResourceClassProperties
protected ResourceClassProperties getResourceClassProperties(String names[])
findResourceClassProperties
protected int findResourceClassProperties(String classes[],
int offset)
findResourceClassProperties
protected int findResourceClassProperties(String classes[])
getClassHierarchy
protected String[] getClassHierarchy(RemoteResourceWrapper rrw)
getDefaultHelperProperties
protected Properties getDefaultHelperProperties(String clsname)
getDefaultAttributeProperties
protected Properties getDefaultAttributeProperties(String clsname)
getEditorProperties
public Properties getEditorProperties(RemoteResourceWrapper rrw)
- Get any properties for the editor of the given remote resource instance.
- Returns:
- A Properties instance.
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).
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.
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.
getIconLocation
public String getIconLocation(String name)
- get the icon name resolved from its description
- Parameters:
- name - a String
getMimeTypes
public Hashtable getMimeTypes()
- get the hashtable of mimetypes
getPropertyManager
public static PropertyManager getPropertyManager()
All Packages Class Hierarchy This Package Previous Next Index