Package ucar.nc2.ogc
Class MarshallingUtil
java.lang.Object
ucar.nc2.ogc.MarshallingUtil
Created by cwardgar on 2014/04/29.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic ucar.nc2.time.CalendarDatestatic ucar.nc2.time.CalendarDate -
Method Summary
Modifier and TypeMethodDescriptionstatic StringcreateIdForType(Class<?> clazz) static voidmarshalPointDataset(ucar.nc2.ft.FeatureDatasetPoint fdPoint, OutputStream outputStream) static voidmarshalPointDataset(ucar.nc2.ft.FeatureDatasetPoint fdPoint, List<ucar.nc2.VariableSimpleIF> dataVars, OutputStream outputStream) static voidresetIds()static voidvalidate(org.apache.xmlbeans.XmlObject doc, boolean strict) Validates an xml doc.static voidwriteObject(org.apache.xmlbeans.XmlObject doc, OutputStream out, boolean validate)
-
Field Details
-
fixedGenerationDate
public static ucar.nc2.time.CalendarDate fixedGenerationDate -
fixedResultTime
public static ucar.nc2.time.CalendarDate fixedResultTime
-
-
Method Details
-
createIdForType
-
resetIds
public static void resetIds() -
marshalPointDataset
public static void marshalPointDataset(ucar.nc2.ft.FeatureDatasetPoint fdPoint, OutputStream outputStream) throws IOException, org.apache.xmlbeans.XmlException - Throws:
IOExceptionorg.apache.xmlbeans.XmlException
-
marshalPointDataset
public static void marshalPointDataset(ucar.nc2.ft.FeatureDatasetPoint fdPoint, List<ucar.nc2.VariableSimpleIF> dataVars, OutputStream outputStream) throws IOException, org.apache.xmlbeans.XmlException - Throws:
IOExceptionorg.apache.xmlbeans.XmlException
-
writeObject
public static void writeObject(org.apache.xmlbeans.XmlObject doc, OutputStream out, boolean validate) throws IOException, org.apache.xmlbeans.XmlException - Throws:
IOExceptionorg.apache.xmlbeans.XmlException
-
validate
public static void validate(org.apache.xmlbeans.XmlObject doc, boolean strict) throws org.apache.xmlbeans.XmlException Validates an xml doc. If the validation fails, the exception contains a detailed list of errors.- Parameters:
doc- the document to validate- Throws:
org.apache.xmlbeans.XmlException- thrown if the XML is incorrect
-