|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.w3c.jigadm.PropertyManager
public class PropertyManager
Field Summary | |
---|---|
protected java.util.Hashtable |
classProperties
The set of resource classes we know about. |
protected java.util.Properties |
iconProperties
/** the mapping of icon names to icon locations |
protected java.util.Hashtable |
mimeTypes
the hashtable of mime types |
static PropertyManager |
propertyManager
|
protected java.io.File |
root
The root for the property files. |
static java.lang.String |
ROOT_P
|
protected java.io.File |
zipfile
|
Constructor Summary | |
---|---|
PropertyManager(java.io.File zipfile,
java.io.File root)
|
Method Summary | |
---|---|
protected int |
findResourceClassProperties(java.lang.String[] classes)
|
protected int |
findResourceClassProperties(java.lang.String[] classes,
int offset)
|
java.util.Properties |
getAttributeProperties(RemoteResourceWrapper rrw,
Attribute attr)
Get the properties for the attribute editor of a given remote resource. |
protected java.lang.String[] |
getClassHierarchy(RemoteResourceWrapper rrw)
|
protected java.util.Properties |
getDefaultAttributeProperties(java.lang.String clsname)
|
protected java.util.Properties |
getDefaultHelperProperties(java.lang.String clsname)
|
java.util.Properties |
getEditorProperties(RemoteResourceWrapper rrw)
Get any properties for the editor of the given remote resource instance. |
java.lang.String[] |
getHelperClasses(RemoteResourceWrapper rrw)
Get the list of helpers to be created for the given remote resource. |
java.util.Properties |
getHelperProperties(RemoteResourceWrapper rrw,
java.lang.String helperClass)
Get the properties for the helper of a given remote resource. |
java.lang.String |
getIconLocation(java.lang.String name)
get the icon name resolved from its description |
java.util.Hashtable |
getMimeTypes()
get the hashtable of mimetypes |
static PropertyManager |
getPropertyManager()
|
protected org.w3c.jigadm.ResourceClassProperties |
getResourceClassProperties(java.lang.String[] names)
|
protected org.w3c.jigadm.ResourceClassProperties |
getResourceClassProperties(java.lang.String[] names,
int from)
Get the best matching resource class properties for given class. |
protected void |
initialize()
Load the properties from the root directory. |
protected static java.util.Properties |
merge(java.util.Properties into,
java.util.Properties source)
|
protected static java.util.Properties |
merge(java.util.Properties into,
java.util.Properties source,
boolean overide)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.io.File root
protected java.io.File zipfile
protected java.util.Hashtable classProperties
protected java.util.Properties iconProperties
protected java.util.Hashtable mimeTypes
public static java.lang.String ROOT_P
public static PropertyManager propertyManager
Constructor Detail |
---|
public PropertyManager(java.io.File zipfile, java.io.File root)
Method Detail |
---|
protected static java.util.Properties merge(java.util.Properties into, java.util.Properties source, boolean overide)
protected static java.util.Properties merge(java.util.Properties into, java.util.Properties source)
protected void initialize()
protected org.w3c.jigadm.ResourceClassProperties getResourceClassProperties(java.lang.String[] names, int from)
classes
- The class names we're looking a macth for.
protected org.w3c.jigadm.ResourceClassProperties getResourceClassProperties(java.lang.String[] names)
protected int findResourceClassProperties(java.lang.String[] classes, int offset)
protected int findResourceClassProperties(java.lang.String[] classes)
protected java.lang.String[] getClassHierarchy(RemoteResourceWrapper rrw)
protected java.util.Properties getDefaultHelperProperties(java.lang.String clsname)
protected java.util.Properties getDefaultAttributeProperties(java.lang.String clsname)
public java.util.Properties getEditorProperties(RemoteResourceWrapper rrw)
public java.lang.String[] getHelperClasses(RemoteResourceWrapper rrw)
public java.util.Properties getHelperProperties(RemoteResourceWrapper rrw, java.lang.String helperClass)
rr
- The remote resource being edited.helperClass
- Class of the helper about to be created.
public java.util.Properties getAttributeProperties(RemoteResourceWrapper rrw, Attribute attr)
rr
- The remote resource being edited.attr
- The attribute being edited.public java.lang.String getIconLocation(java.lang.String name)
name
- a Stringpublic java.util.Hashtable getMimeTypes()
public static PropertyManager getPropertyManager()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |