public class CswUnmarshallHelper extends Object
| Constructor and Description |
|---|
CswUnmarshallHelper() |
| Modifier and Type | Method and Description |
|---|---|
static Serializable |
convertRecordPropertyToMetacardAttribute(AttributeType.AttributeFormat attributeFormat,
com.thoughtworks.xstream.io.HierarchicalStreamReader reader,
CswAxisOrder cswAxisOrder)
Converts the CSW record property
reader is currently at to the specified Metacard
attribute format. |
static Serializable |
convertStringValueToMetacardValue(AttributeType.AttributeFormat attributeFormat,
String value)
Converts properties in CSW records that overlap with same name as a basic Metacard attribute,
e.g., title.
|
static String |
convertToCswField(String name) |
static Date |
convertToDate(String value) |
static MetacardImpl |
createMetacardFromCswRecord(MetacardType metacardType,
com.thoughtworks.xstream.io.HierarchicalStreamReader hreader,
CswAxisOrder cswAxisOrder,
Map<String,String> namespaceMap) |
static Attribute |
getMetacardAttributeFromCswAttribute(MetacardType metacardType,
String cswAttributeName,
Serializable cswAttributeValue,
String metacardAttributeName)
|
static void |
removeExistingAttributes(Map<String,String> cswAttrMap,
Map<String,String> mappingObj) |
public static void removeExistingAttributes(Map<String,String> cswAttrMap, Map<String,String> mappingObj)
public static MetacardImpl createMetacardFromCswRecord(MetacardType metacardType, com.thoughtworks.xstream.io.HierarchicalStreamReader hreader, CswAxisOrder cswAxisOrder, Map<String,String> namespaceMap)
public static Attribute getMetacardAttributeFromCswAttribute(MetacardType metacardType, String cswAttributeName, Serializable cswAttributeValue, String metacardAttributeName)
Attribute whose value is
cswAttributeValue converted to the type of the attribute metacardAttributeName
in a Metacard.cswAttributeName - the name of the CSW attributecswAttributeValue - the value of the CSW attributemetacardAttributeName - the name of the Metacard attribute whose type cswAttributeValue will be converted toAttribute with the name metacardAttributeName and the value cswAttributeValue converted to the type of the attribute metacardAttributeName in
a Metacard.public static Serializable convertStringValueToMetacardValue(AttributeType.AttributeFormat attributeFormat, String value)
attributeFormat - the format of the attribute to be convertedvalue - the value to be convertedreader and is of the type described by attributeFormatpublic static Serializable convertRecordPropertyToMetacardAttribute(AttributeType.AttributeFormat attributeFormat, com.thoughtworks.xstream.io.HierarchicalStreamReader reader, CswAxisOrder cswAxisOrder)
reader is currently at to the specified Metacard
attribute format.reader - the reader at the element whose value you want to convertcswAxisOrder - the order of the coordinates in the XML being read by readerreader and is of the type described by attributeFormatThis work is licensed under a Creative Commons Attribution 4.0 International License.