@@ -0,0 +1,1288 @@
+package org.om.core.impl.mapping;%0A%0Aimport java.util.Collection;%0Aimport java.util.HashMap;%0Aimport java.util.Map;%0A%0Aimport org.om.core.api.mapping.ItemMap;%0Aimport org.om.core.api.mapping.PropertyMapping;%0A%0A/**%0A * %0A * @author tome%0A * %0A */%0Apublic class BasicPropertyMap implements ItemMap %7B%0A%0A%09/**%0A%09 * properties%0A%09 */%0A%09private final Map%3CString, PropertyMapping%3E properties = new HashMap%3CString, PropertyMapping%3E();%0A%09private final Map%3CString, PropertyMapping%3E fields = new HashMap%3CString, PropertyMapping%3E();%0A%0A%09public void add(PropertyMapping propertyMapping) %7B%0A%09%09fields.put(propertyMapping.getFieldname(), propertyMapping);%0A%09%09properties.put(propertyMapping.getPropertyName(), propertyMapping);%0A%0A%09%7D%0A%0A%09public Collection%3CPropertyMapping%3E getAll() %7B%0A%09%09return properties.values();%0A%09%7D%0A%0A%09public PropertyMapping getField(String fieldname) %7B%0A%09%09return fields.get(fieldname);%0A%09%7D%0A%0A%09public PropertyMapping getIdProperty() %7B%0A%09%09return null;%0A%09%7D%0A%0A%09public PropertyMapping getProperty(String name) %7B%0A%09%09return properties.get(name);%0A%09%7D%0A%0A%09public int getSize() %7B%0A%09%09return properties.size();%0A%09%7D%0A%0A%09public boolean hasField(String name) %7B%0A%09%09return fields.containsKey(name);%0A%09%7D%0A%0A%09public boolean hasProperty(String name) %7B%0A%09%09return properties.containsKey(name);%0A%09%7D%0A%0A%09public boolean isEmpty() %7B%0A%09%09return getSize() == 0;%0A%09%7D%0A%7D%0A

Move mutable property map into jcr2pojo module