Package org.opencms.acacia.client
Interface I_CmsAttributeHandler
- All Known Implementing Classes:
CmsAttributeHandler
,CmsRootHandler
public interface I_CmsAttributeHandler
Attribute handler interface.
-
Method Summary
Modifier and TypeMethodDescriptioncollectSimplePath
(I_CmsAttributeHandler childHandler) Returns the simple path.Returns the attribute name.getChildHandler
(String attributeName, int index) Returns the handler for the given attribute at the given index.getChildHandlerBySimpleName
(String name, int index) Returns the child handler by simple name.void
insertHandlers
(int index) Inserts a handler map at the given index.void
removeHandlers
(int index) Removes the handlers at the given index.void
setHandler
(int index, String attributeName, CmsAttributeHandler handler) Sets a child attribute handler.void
setHandlerById
(String attributeName, CmsAttributeHandler handler) Sets the handler by id.
-
Method Details
-
collectSimplePath
Returns the simple path.- Parameters:
childHandler
- the child attribute handler- Returns:
- the simple path
-
getAttributeName
Returns the attribute name.- Returns:
- the attribute name
-
getChildHandler
Returns the handler for the given attribute at the given index.- Parameters:
attributeName
- the attribute nameindex
- the value index- Returns:
- the handler
-
getChildHandlerBySimpleName
Returns the child handler by simple name.- Parameters:
name
- the nameindex
- the value index- Returns:
- the child handler if present
-
insertHandlers
Inserts a handler map at the given index.- Parameters:
index
- the value index
-
removeHandlers
Removes the handlers at the given index.- Parameters:
index
- the value index
-
setHandler
Sets a child attribute handler.- Parameters:
index
- the value indexattributeName
- the attribute namehandler
- the handler
-
setHandlerById
Sets the handler by id.- Parameters:
attributeName
- the attribute namehandler
- the handler
-