Package com.luciad.ogc.csw.record
Class TLcdCSWRecordTransformationFactory
java.lang.Object
com.luciad.ogc.csw.record.TLcdCSWRecordTransformationFactory
Creates transformations to convert metadata records.
This can be used to perform the following transformations:
createQueryTransformation(com.luciad.datamodel.ILcdDataObject, com.luciad.ogc.csw.model.TLcdCSWQuery)
: transform a source record to a format compatible with a given query'sfilter constraint
createOutputTransformation(com.luciad.datamodel.ILcdDataObject, com.luciad.ogc.csw.record.TLcdCSWRecordType, com.luciad.ogc.csw.model.TLcdCSWQuery)
: transform a source record to a given output format, optionally restricting its content to a subset
The factory supports transformations between the following metadata record types:
Source types
- CSW (TLcdCSWRecord)
- ISO 19115 (TLcdISO19115Metadata)
Target types
- CSW (TLcdCSWRecord, TLcdCSWBriefRecord, TLcdCSWSummaryRecord)
- ISO 19115 (TLcdISO19115Metadata), including brief and summary subsets
- Atom Feed (TLcdAtomEntry)
- Since:
- 2017.0
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateOutputTransformation
(ILcdDataObject aRecord, TLcdCSWRecordType aOutputFormat, TLcdCSWQuery aQuery) Creates a transformation to the requested output formatcreateQueryTransformation
(ILcdDataObject aRecordToFilter, TLcdCSWQuery aQuery) Creates a transformation that converts the given record to a record compatible with the given query's properties
-
Constructor Details
-
TLcdCSWRecordTransformationFactory
public TLcdCSWRecordTransformationFactory()
-
-
Method Details
-
createOutputTransformation
public ILcdObjectTransformation createOutputTransformation(ILcdDataObject aRecord, TLcdCSWRecordType aOutputFormat, TLcdCSWQuery aQuery) Creates a transformation to the requested output format- Parameters:
aRecord
- the record to transformaOutputFormat
- the request outputaQuery
- the query specifying a subset of the result, if any- Returns:
- a transformation to the requested output format
-
createQueryTransformation
public ILcdObjectTransformation createQueryTransformation(ILcdDataObject aRecordToFilter, TLcdCSWQuery aQuery) Creates a transformation that converts the given record to a record compatible with the given query's properties- Parameters:
aRecordToFilter
- a TLcdCSWRecord or TLcdISO19115Metadata recordaQuery
- the query containing the typename of the used queryables- Returns:
- a transformation to a record that is compatible with the language used in the query
-