public class ModelUtil
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static Assignment |
convert(com.endeca.mdex.conversation.types.Assignment assignment)
Convert a 7-series assignment into a unified model assignment.
|
static java.lang.Iterable<Record> |
convert(java.util.List<com.endeca.mdex.conversation.types.Record> csRecList)
This method converts a list of conversation records to an iterable of uniform record model object.
|
static java.lang.Iterable<Record> |
convert(java.util.Map<java.lang.String,Attribute> attrMap,
java.util.List<com.endeca.mdex.conversation.types.Record> csRecList)
This method converts a list of conversation records to an iterable of uniform record model object.
|
static Record |
convert(java.util.Map<java.lang.String,Attribute> attrMap,
com.endeca.mdex.conversation.types.Record csRec)
Convenience converter for taking MDEX attributes and a discovery service record and converting it to a unified model object.
|
static Record |
convert(com.endeca.mdex.conversation.types.Record csRec)
Convert a conversation service record with a null record spec.
|
static Record |
convert(RecordSpec recordSpec,
com.endeca.mdex.conversation.types.Record csRec)
Converts a conversation service record into a uniform record model object.
|
static com.endeca.mdex.ingest.types.Record |
convertToIngestRecord(Record record) |
static java.lang.String |
getSoleAssignmentValue(Record rec,
java.lang.String attrKey)
Helper to retrieve a single value assignment for specified attribute key or null if no assignments for this attribute exist.
|
public static Record convert(com.endeca.mdex.conversation.types.Record csRec)
csRec - public static Record convert(java.util.Map<java.lang.String,Attribute> attrMap, com.endeca.mdex.conversation.types.Record csRec)
attributes - - MDEX attributes from the data source which created the discovery service recordcsRec - - the recordpublic static Record convert(RecordSpec recordSpec, com.endeca.mdex.conversation.types.Record csRec)
csRec - - the conversation service record to convert.public static Assignment convert(com.endeca.mdex.conversation.types.Assignment assignment)
assignment - - the assignment to convertpublic static java.lang.Iterable<Record> convert(java.util.List<com.endeca.mdex.conversation.types.Record> csRecList)
csRecList - public static java.lang.Iterable<Record> convert(java.util.Map<java.lang.String,Attribute> attrMap, java.util.List<com.endeca.mdex.conversation.types.Record> csRecList)
attributes - csRecList - public static com.endeca.mdex.ingest.types.Record convertToIngestRecord(Record record)
public static java.lang.String getSoleAssignmentValue(Record rec, java.lang.String attrKey)
rec - attrKey - Copyright 2003, 2014, Oracle and/or its affiliates. All rights reserved.