com.endeca.portal.data.model
Class SimpleRecord

java.lang.Object
  extended by com.endeca.portal.data.model.SimpleRecord
All Implemented Interfaces:
Record

public class SimpleRecord
extends java.lang.Object
implements Record

A map based record, not necessarily the most efficient way to implement things.


Constructor Summary
SimpleRecord()
           
 
Method Summary
 void addAssignment(Assignment assignment)
           
 java.util.Map<java.lang.String,java.util.List<Assignment>> getAssignments()
           
 Assignments getAssignments(java.lang.String attributeKey)
          Retrieves a list of attributes for the given key.
 java.util.Set<java.lang.String> getAttributeKeys()
           
 RecordSpec getRecordSpec()
          Get the record specification.
 void setRecordSpec(RecordSpec spec)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleRecord

public SimpleRecord()
Method Detail

getRecordSpec

public RecordSpec getRecordSpec()
Description copied from interface: Record
Get the record specification.

Specified by:
getRecordSpec in interface Record

setRecordSpec

public void setRecordSpec(RecordSpec spec)

addAssignment

public void addAssignment(Assignment assignment)

getAttributeKeys

public java.util.Set<java.lang.String> getAttributeKeys()
Specified by:
getAttributeKeys in interface Record
Returns:
A list of all of the attribute keys assigned to this record.

getAssignments

public Assignments getAssignments(java.lang.String attributeKey)
Description copied from interface: Record
Retrieves a list of attributes for the given key. The list provides access to all assignments for the same key, if the attribute is multi-assign.

Specified by:
getAssignments in interface Record
Parameters:
attributeKey - The name of the attribute for the assignments to be returned.
Returns:
List of attributes with the specified name - may be empty but not null

getAssignments

public java.util.Map<java.lang.String,java.util.List<Assignment>> getAssignments()