Class GetRecordsResponseConverter
java.lang.Object
org.codice.ddf.spatial.ogc.csw.catalog.converter.GetRecordsResponseConverter
- All Implemented Interfaces:
com.thoughtworks.xstream.converters.Converter,com.thoughtworks.xstream.converters.ConverterMatcher
public class GetRecordsResponseConverter
extends Object
implements com.thoughtworks.xstream.converters.Converter
Converts a
CswRecordCollection into a
GetRecordsResponseType with CSW records-
Constructor Summary
ConstructorsConstructorDescriptionGetRecordsResponseConverter(com.thoughtworks.xstream.converters.Converter transformProvider) Creates a new GetRecordsResponseConverter Object -
Method Summary
Modifier and TypeMethodDescriptionbooleancanConvert(Class type) voidmarshal(Object source, com.thoughtworks.xstream.io.HierarchicalStreamWriter writer, com.thoughtworks.xstream.converters.MarshallingContext context) unmarshal(com.thoughtworks.xstream.io.HierarchicalStreamReader reader, com.thoughtworks.xstream.converters.UnmarshallingContext context) Parses GetRecordsResponse XML of this form:
-
Constructor Details
-
GetRecordsResponseConverter
public GetRecordsResponseConverter(com.thoughtworks.xstream.converters.Converter transformProvider) Creates a new GetRecordsResponseConverter Object- Parameters:
transformProvider- The converter which will transform aMetacardto a the appropriate XML format and vice versa.
-
-
Method Details
-
canConvert
- Specified by:
canConvertin interfacecom.thoughtworks.xstream.converters.ConverterMatcher
-
marshal
public void marshal(Object source, com.thoughtworks.xstream.io.HierarchicalStreamWriter writer, com.thoughtworks.xstream.converters.MarshallingContext context) - Specified by:
marshalin interfacecom.thoughtworks.xstream.converters.Converter
-
unmarshal
public Object unmarshal(com.thoughtworks.xstream.io.HierarchicalStreamReader reader, com.thoughtworks.xstream.converters.UnmarshallingContext context) Parses GetRecordsResponse XML of this form:<csw:GetRecordsResponse xmlns:csw="http://www.opengis.net/cat/csw"> <csw:SearchStatus status="subset" timestamp="2013-05-01T02:13:36+0200"/> <csw:SearchResults elementSet="full" nextRecord="11" numberOfRecordsMatched="479" numberOfRecordsReturned="10" recordSchema="csw:Record"> <csw:Record xmlns:csw="http://www.opengis.net/cat/csw"> ... </csw:Record> <csw:Record xmlns:csw="http://www.opengis.net/cat/csw"> ... </csw:Record>- Specified by:
unmarshalin interfacecom.thoughtworks.xstream.converters.Converter
-