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_contextThe avalon contextprivate HelpManager_helpManagerprivate JSONUtils_jsonUtilsstatic StringROLEAvalon role
-
Constructor Summary
Constructors Constructor Description SAXClientSideElementHelper()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcontextualize(Context context)voidsaxDefinition(String tagName, ClientSideElement element, String extensionPoint, ContentHandler handler, Map<String,Object> contextualParameters)SAX a client side elementprivate voidsaxScriptFile(ContentHandler handler, ClientSideElement.ScriptFile scriptFile)voidservice(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:
servicein interfaceServiceable- Throws:
ServiceException
-
contextualize
public void contextualize(Context context) throws ContextException
- Specified by:
contextualizein 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
-
-