package com.plexobject.aom; import java.util.Collection; import java.util.HashMap; import java.util.Map; public class EntityType { private String typeName; private Map propertyTypes = new HashMap(); private Map operations = new HashMap(); public EntityType(String typeName) { this.typeName = typeName; } public String getTypeName() { return typeName; } public void addPropertyType(PropertyType propertyType) { propertyTypes.put(propertyType.getPropertyName(), propertyType); } public Collection getPropertyTypes() { return propertyTypes.values(); } public PropertyType getPropertyType(String propertyName) { return propertyTypes.get(propertyName); } public void addOperation(String operationName, Operation operation) { operations.put(operationName, operation); } public Operation getOperation(String name) { return operations.get(name); } public Collection getOperations() { return operations.values(); } //... other methods }