/** * Map property parsing. * * @param property raw map property * @param propertyDefinition property definition * @return otherwise the parsed map, note that the map can be empty if no map properties were set */ protected SimpleEntry<String, Map<String, Object>> preparePropertyMap(PropertyMap property, PropertyDefinitionMap propertyDefinition) { Map<String, Object> results; String propName = stripNumberIdentifier(property.getName()); if (propName.endsWith(":collapsed")) { propName = propName.substring(0, propName.indexOf(':')); results = prepareCollapsedPropertyMap(property, propertyDefinition); } else { results = prepareSimplePropertyMap(property, propertyDefinition); } return new SimpleEntry<String, Map<String, Object>>(propName, results); }
public void print(PropertyMap p, int depth) { out.println(indent(depth) + p.getName() + " [" + p.getMap().size() + "] {"); for (String key : p.getMap().keySet()) { Property entry = p.getMap().get(key); if (entry instanceof PropertySimple) { print((PropertySimple) entry, depth + 1); } else if (entry instanceof PropertyMap) { print((PropertyMap) entry, depth + 1); } } out.println(indent(depth) + "}"); }
.getPropertyDefinitionMap(((PropertyMap) this.propertyMap).getName()); FacesComponentUtility.addVerbatimText(rootPanel, "\n\n<table class='" + OPENMAP_PROPERTIES_TABLE_STYLE_CLASS + "'>");
PropertyMap propertyMap = (PropertyMap) prop; PropertyDefinitionMap propertyDefinition = this.configurationDefinition .getPropertyDefinitionMap(propertyMap.getName());
private void addOpenMapMemberProperty(HtmlPanelGroup parent, PropertyDefinitionMap propertyDefinitionMap, PropertySimple propertySimple, String rowStyleClass) { addDebug(parent, true, ".addOpenMapMemberProperty()"); String mapName = ((PropertyMap) this.propertyMap).getName(); String memberName = propertySimple.getName();