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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
contextualize
(Context context) boolean
saxDefinition
(String tagName, ClientSideElement element, String extensionPoint, ContentHandler handler, Map<String, Object> contextualParameters) SAX a client side elementvoid
service
(ServiceManager smanager) Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Field Details
-
ROLE
Avalon role -
_context
The avalon context
-
-
Constructor Details
-
SAXClientSideElementHelper
public SAXClientSideElementHelper()
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
contextualize
- Specified by:
contextualize
in interfaceContextualizable
- Throws:
ContextException
-
saxDefinition
public boolean saxDefinition(String tagName, ClientSideElement element, String extensionPoint, ContentHandler handler, Map<String, Object> contextualParameters) throws SAXExceptionSAX 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.- Returns:
- true if effectively saxed something, false otherwise (rights ko for example)
- Throws:
SAXException
- If an error occured
-