com.endeca.portal.data.model
Class RecordSpec
java.lang.Object
com.endeca.portal.data.model.RecordSpec
public class RecordSpec
- extends java.lang.Object
Bean representing a record specification. A record specification uniquely
identifies a record in an MDEX. On 6-series MDEXes the record specification
is a single string value. On 7-series MDEXes the record specification is
a property key and a value.
Constructor Summary |
RecordSpec(MDEXAttributeList attributes,
com.endeca.mdex.conversation.Record csRec)
Constructor for a 7-series record specification. |
RecordSpec(java.lang.String key,
java.lang.String value)
Custom constructor for Jackson deserialization and creating a record spec from
non-mdex models (e.g. deep-links). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
RecordSpec
public RecordSpec(MDEXAttributeList attributes,
com.endeca.mdex.conversation.Record csRec)
- Constructor for a 7-series record specification.
- Parameters:
attributes
- csRec
- the CS record for this RecordSpec
RecordSpec
public RecordSpec(java.lang.String key,
java.lang.String value)
- Custom constructor for Jackson deserialization and creating a record spec from
non-mdex models (e.g. deep-links).
- Parameters:
key
- - the attribute key for the spec.value
- - the value of the assignment
getKey
public java.lang.String getKey()
- Returns:
- The attribute key for the record spec. In 6-series this is always null
and isn't required by the query interfaces. In 7-series this is the key for a
single assign and unique property assigned to a record.
getValue
public java.lang.String getValue()
- Returns:
- The value of the assignment.
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object