Package org.ametys.core.ui
Class SAXClientSideElementHelper
- java.lang.Object
-
- org.ametys.runtime.plugin.component.AbstractLogEnabled
-
- org.ametys.core.ui.SAXClientSideElementHelper
-
- All Implemented Interfaces:
LogEnabled
,Component
,Contextualizable
,Serviceable
,ThreadSafe
public class SAXClientSideElementHelper extends AbstractLogEnabled implements Contextualizable, Component, Serviceable, ThreadSafe
This helper allow to sax a client side element
-
-
Field Summary
Fields Modifier and Type Field Description protected Context
_context
The avalon contextprivate HelpManager
_helpManager
private JSONUtils
_jsonUtils
static String
ROLE
Avalon role
-
Constructor Summary
Constructors Constructor Description SAXClientSideElementHelper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
contextualize(Context context)
void
saxDefinition(String tagName, ClientSideElement element, String extensionPoint, ContentHandler handler, Map<String,Object> contextualParameters)
SAX a client side elementprivate void
saxScriptFile(ContentHandler handler, ClientSideElement.ScriptFile scriptFile)
void
service(ServiceManager smanager)
-
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
-
-
-
Field Detail
-
_jsonUtils
private JSONUtils _jsonUtils
-
_helpManager
private HelpManager _helpManager
-
-
Constructor Detail
-
SAXClientSideElementHelper
public SAXClientSideElementHelper()
-
-
Method Detail
-
service
public void service(ServiceManager smanager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
contextualize
public void contextualize(Context context) throws ContextException
- Specified by:
contextualize
in interfaceContextualizable
- Throws:
ContextException
-
saxDefinition
public void saxDefinition(String tagName, ClientSideElement element, String extensionPoint, ContentHandler handler, Map<String,Object> contextualParameters) throws SAXException
SAX a client side element- Parameters:
tagName
- the tag name to createelement
- The client side element to sax. Can not be null.extensionPoint
- the extension point of the element.handler
- The handler where to saxcontextualParameters
- Contextuals parameters transmitted by the environment.- Throws:
SAXException
- If an error occured
-
saxScriptFile
private void saxScriptFile(ContentHandler handler, ClientSideElement.ScriptFile scriptFile) throws SAXException
- Throws:
SAXException
-
-