|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dspace.app.xmlui.wing.WingContext
public class WingContext
| Field Summary | |
|---|---|
static char |
DIVIDER
The nameing divider |
| Constructor Summary | |
|---|---|
WingContext()
|
|
| Method Summary | |
|---|---|
void |
checkValidity()
Check that the context is valid, and able to be used. |
void |
dispose()
Recycle this context for future use by another wing element |
String |
generateID(String application,
String name)
Generate a unique id based upon the locally unique name and the application. |
String |
generateID(String application,
String name,
String subName)
Generate a unique id with a sub name. |
String |
generateName(String name)
Generate a specialized name based on the callers name. |
String |
getComponentName()
Return the current transformer's name. |
org.apache.commons.logging.Log |
getLogger()
Return the cocoon logger |
ObjectManager |
getObjectManager()
Get the objectManager. |
void |
setComponentName(String componentName)
Set the current transformer's name |
void |
setLogger(org.apache.commons.logging.Log log)
Set the cocoon logger |
void |
setObjectManager(ObjectManager objectManager)
Set the objectManager which is repsonsible for managing the object store in the DRI document. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final char DIVIDER
| Constructor Detail |
|---|
public WingContext()
| Method Detail |
|---|
public void setComponentName(String componentName)
componentName - the current transformer's name.public String getComponentName()
public org.apache.commons.logging.Log getLogger()
public void setLogger(org.apache.commons.logging.Log log)
log - A new logger.
public String generateID(String application,
String name)
application - The application of this element, typically this is the element
type that is being identified. Such as p, div, table, field,
etc...name - A locally unique name that distinguished this element from
among its siblings.
public String generateID(String application,
String name,
String subName)
application - The application of this element, typically this is the element
type that is being identified. Such as p, div, table, field,
etc...name - A locally unique name that distinguished this element from
among its siblings.subName - An additional name to the original name to further identify it
in cases when just the name alone does not accomplish this.
public String generateName(String name)
name - A locally unique name that distinguished this element from
among it's siblings.public void setObjectManager(ObjectManager objectManager)
objectManager - The new objectManagerpublic ObjectManager getObjectManager()
public void checkValidity()
throws WingException
WingExceptionpublic void dispose()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||