/** * Returns the first mapping defined for the given element xpath.<p> * * Since OpenCms version 7.0.2, multiple mappings for an element are possible, so * use {@link #getMapping(String)} instead.<p> * * @param elementName the element xpath to look up the mapping for * * @return the mapping defined for the given element xpath * * @deprecated use {@link #getMappings(String)} instead to recieve all mappings */ public String getMapping(String elementName) { String[] mappings = getMappings(elementName); return (mappings == null) ? null : mappings[0]; }
/** * Contains the visibility handler configuration for a content field path.<p> */ protected static class VisibilityConfiguration { /** The handler instance. */ private I_CmsXmlContentVisibilityHandler m_handler; /** The handler configuration parameters. */ private String m_params; /** * Constructor.<p> * * @param handler the handler instance * @param params the handler configuration parameteres */ protected VisibilityConfiguration(I_CmsXmlContentVisibilityHandler handler, String params) { m_handler = handler; m_params = params; } /** * Returns the visibility handler instance.<p> * * @return the handler instance */ public I_CmsXmlContentVisibilityHandler getHandler() {
String[] mappings = getMappings(value.getPath()); if (mappings == null) {