package org.slc.sli.domain;

import java.util.Map;

public interface Entity {
    
    String getType();
    
    String getId();
    
    Map<String, Object> getBody();
    
}

package org.slc.sli.domain;

import java.util.Map;

/**
 * Define the entity interface that provides getter method to retrieve the fields
 * for entities including core entities and association entities
 * 
 * @author Dong Liu dliu@wgen.net
 * 
 */
public interface Entity {
    
    /**
     * @return the entity type as string, can be entity type for
     *            core entity or association entity
     */
    String getType();
    
    /**
     * @return the global unique id of the entity as string
     */
    String getId();
    
    /**
     * @return the entity body wrapped by a map
     */
    Map<String, Object> getBody();
    
}

add java doc for entity interface