public class GetRecordsResponseConverter extends Object implements com.thoughtworks.xstream.converters.Converter
CswRecordCollection
into a
GetRecordsResponseType
with CSW recordsConstructor and Description |
---|
GetRecordsResponseConverter(com.thoughtworks.xstream.converters.Converter transformProvider)
Creates a new GetRecordsResponseConverter Object
|
Modifier and Type | Method and Description |
---|---|
boolean |
canConvert(Class type) |
void |
marshal(Object source,
com.thoughtworks.xstream.io.HierarchicalStreamWriter writer,
com.thoughtworks.xstream.converters.MarshallingContext context) |
Object |
unmarshal(com.thoughtworks.xstream.io.HierarchicalStreamReader reader,
com.thoughtworks.xstream.converters.UnmarshallingContext context)
Parses GetRecordsResponse XML of this form:
|
public GetRecordsResponseConverter(com.thoughtworks.xstream.converters.Converter transformProvider)
transformProvider
- The converter which will transform a Metacard
to a the
appropriate XML format and vice versa.public boolean canConvert(Class type)
canConvert
in interface com.thoughtworks.xstream.converters.ConverterMatcher
public void marshal(Object source, com.thoughtworks.xstream.io.HierarchicalStreamWriter writer, com.thoughtworks.xstream.converters.MarshallingContext context)
marshal
in interface com.thoughtworks.xstream.converters.Converter
public Object unmarshal(com.thoughtworks.xstream.io.HierarchicalStreamReader reader, com.thoughtworks.xstream.converters.UnmarshallingContext context)
<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>
unmarshal
in interface com.thoughtworks.xstream.converters.Converter
This work is licensed under a Creative Commons Attribution 4.0 International License.