com.endeca.portal.data.model
Class ModelUtil

java.lang.Object
  extended by com.endeca.portal.data.model.ModelUtil

public class ModelUtil
extends java.lang.Object

Class containing utility methods for converting various query result objects into a single record object.


Method Summary
static Record convert(com.endeca.navigation.AggrERec aggrerec)
          Deprecated. 
static Assignment convert(com.endeca.navigation.DimVal dimVal)
          Deprecated. 
static Assignment convert(org.w3c.dom.Element assignment)
          Convert a 7-series assignment into a unified model assignment.
static Record convert(com.endeca.navigation.ERec erec)
          Deprecated. 
static Record convert(MDEXAttributeList attributes, com.endeca.mdex.conversation.Record csRec)
          Convenience converter for taking MDEX attributes and a discovery service record and converting it to a unified model object.
static Assignment convert(com.endeca.navigation.Property property)
          Deprecated. 
static Record convert(com.endeca.mdex.conversation.Record csRec)
          Convert a conversation service record with a null record spec.
static Record convert(RecordSpec recordSpec, com.endeca.mdex.conversation.Record csRec)
          Converts a conversation service record into a uniform record model object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

convert

@Deprecated
public static Record convert(com.endeca.navigation.ERec erec)
Deprecated. 

Convert a 6-series endeca record to a record object.

Parameters:
erec - - the record to convert
Returns:
A semantically equivalent record

convert

@Deprecated
public static Record convert(com.endeca.navigation.AggrERec aggrerec)
Deprecated. 

Convert a 6-series endeca aggregate record to a record object by using the representative record.

Parameters:
aggrerec - - the aggregate record to convert
Returns:
A record that is equivalent to the representative record of the aggregate record.

convert

public static Record convert(com.endeca.mdex.conversation.Record csRec)
Convert a conversation service record with a null record spec. Should not be used widely, only in places which are temporarily using a record as a convenience.

Parameters:
csRec -
Returns:
- an equivalent record

convert

public static Record convert(MDEXAttributeList attributes,
                             com.endeca.mdex.conversation.Record csRec)
Convenience converter for taking MDEX attributes and a discovery service record and converting it to a unified model object.

Parameters:
attributes - - MDEX attributes from the data source which created the discovery service record
csRec - - the record
Returns:
- an equivalent record

convert

public static Record convert(RecordSpec recordSpec,
                             com.endeca.mdex.conversation.Record csRec)
Converts a conversation service record into a uniform record model object.

Parameters:
csRec - - the conversation service record to convert.
Returns:
- an equivalent record

convert

@Deprecated
public static Assignment convert(com.endeca.navigation.Property property)
Deprecated. 

Convert a 6-series property assignment into a unified model assignment.

Parameters:
property - - the property assignment to convert
Returns:
- An equivalent assignment object

convert

@Deprecated
public static Assignment convert(com.endeca.navigation.DimVal dimVal)
Deprecated. 

Convert a 6-series dimval assignment into a unified model assignment.

Parameters:
dimVal - - the dimval assignment to convert
Returns:
- An equivalent assignment object

convert

public static Assignment convert(org.w3c.dom.Element assignment)
Convert a 7-series assignment into a unified model assignment.

Parameters:
dimVal - - the assignment to convert
Returns:
- An equivalent assignment object.