public class WingContext
extends java.lang.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
|
java.lang.String |
generateID(java.lang.String application,
java.lang.String name)
Generate a unique id based upon the locally unique name and the
application.
|
java.lang.String |
generateID(java.lang.String application,
java.lang.String name,
java.lang.String subName)
Generate a unique id with a sub name.
|
java.lang.String |
generateName(java.lang.String name)
Generate a specialized name based on the caller's name.
|
java.lang.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(java.lang.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(java.lang.String componentName)
componentName - the current transformer's name.public java.lang.String getComponentName()
public org.apache.commons.logging.Log getLogger()
public void setLogger(org.apache.commons.logging.Log log)
log - A new logger.public java.lang.String generateID(java.lang.String application,
java.lang.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 java.lang.String generateID(java.lang.String application,
java.lang.String name,
java.lang.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 java.lang.String generateName(java.lang.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 © 2018 DuraSpace. All Rights Reserved.