public class WingContext extends Object
| Modifier and Type | Field and Description |
|---|---|
static char |
DIVIDER
The naming divider
|
| Constructor and Description |
|---|
WingContext() |
| Modifier and Type | Method and Description |
|---|---|
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 caller's 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.
|
public static final char DIVIDER
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()
Copyright © 2014 DuraSpace. All Rights Reserved.