|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectthinkmap.context.ThinkmapConfig
public class ThinkmapConfig
The ThinkmapConfig is the base class for Thinkmap configuration objects; a Thinkmap configuration object constructs and initializes the objects which constitute a Thinkmap. This class provides methods for initializing the ThinkmapConfig and for obtaining objects which are constructed by the ThinkmapConfig as part of the application.
| Constructor Summary | |
|---|---|
ThinkmapConfig()
|
|
ThinkmapConfig(IThinkmapContext context,
File base)
|
|
ThinkmapConfig(IThinkmapContext context,
URL baseURL)
|
|
| Method Summary | |
|---|---|
void |
assignId(String id,
Object value)
Associate an object with an identifier in this configuration |
File |
createFile(String s)
Creates a File based on a String. |
URL |
createURL(String s)
Creates a URL based on a String. |
IThinkmapContext |
getContext()
Get the context which represents the environment that this Thinkmap runs in. |
URL |
getDocumentBase()
Returns a URL that corresponds to the root of where documents are stored for this context. |
File |
getFileBase()
Returns a string which represents the absolute path on the local machine of the code base, or null if files cannot be used. |
Object |
getObjectById(String id)
Objects can be stored by id in the thinkmap config, this method gets an object by its id. |
Object |
getRoot()
Get the root object of this configuration. |
IPropertyHandler |
getRootPropertyHandler()
|
void |
setContext(IThinkmapContext context)
Sets the ThinkmapContext on this ThinkmapConfig. |
void |
setDocumentBase(URL urlBase)
|
void |
setDocumentBase(URL urlBase,
File fileBase)
Initialize this configuration. |
void |
setFileBase(File fileBase)
|
void |
setRoot(Object root)
Sets the root object of this configuration |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ThinkmapConfig()
public ThinkmapConfig(IThinkmapContext context,
File base)
public ThinkmapConfig(IThinkmapContext context,
URL baseURL)
| Method Detail |
|---|
public Object getRoot()
public void setRoot(Object root)
root - the root object of this configurationpublic IThinkmapContext getContext()
public void setContext(IThinkmapContext context)
context - the context which represents the environment that this Thinkmap will
operate in.
public final void setDocumentBase(URL urlBase,
File fileBase)
public void setDocumentBase(URL urlBase)
public void setFileBase(File fileBase)
public Object getObjectById(String id)
id - the id of the object to retrieve
public void assignId(String id,
Object value)
id - the id to assignvalue - to associate with the idpublic IPropertyHandler getRootPropertyHandler()
public File getFileBase()
public URL getDocumentBase()
Applet,
ServletContext
public URL createURL(String s)
throws MalformedURLException
s - the string to convert to a URL
MalformedURLException - if a URL cannot be created.public File createFile(String s)
s - the string to convert to a File
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||