Package ucar.nc2.ogc
Class MarshallingUtil
- java.lang.Object
-
- ucar.nc2.ogc.MarshallingUtil
-
public class MarshallingUtil extends Object
Created by cwardgar on 2014/04/29.
-
-
Field Summary
Fields Modifier and Type Field Description static CalendarDate
fixedGenerationDate
static CalendarDate
fixedResultTime
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
createIdForType(Class<?> clazz)
static void
marshalPointDataset(FeatureDatasetPoint fdPoint, OutputStream outputStream)
static void
marshalPointDataset(FeatureDatasetPoint fdPoint, List<VariableSimpleIF> dataVars, OutputStream outputStream)
static void
resetIds()
static void
validate(org.apache.xmlbeans.XmlObject doc, boolean strict)
Validates an xml doc.static void
writeObject(org.apache.xmlbeans.XmlObject doc, OutputStream out, boolean validate)
-
-
-
Field Detail
-
fixedGenerationDate
public static CalendarDate fixedGenerationDate
-
fixedResultTime
public static CalendarDate fixedResultTime
-
-
Method Detail
-
resetIds
public static void resetIds()
-
marshalPointDataset
public static void marshalPointDataset(FeatureDatasetPoint fdPoint, OutputStream outputStream) throws IOException, org.apache.xmlbeans.XmlException
- Throws:
IOException
org.apache.xmlbeans.XmlException
-
marshalPointDataset
public static void marshalPointDataset(FeatureDatasetPoint fdPoint, List<VariableSimpleIF> dataVars, OutputStream outputStream) throws IOException, org.apache.xmlbeans.XmlException
- Throws:
IOException
org.apache.xmlbeans.XmlException
-
writeObject
public static void writeObject(org.apache.xmlbeans.XmlObject doc, OutputStream out, boolean validate) throws IOException, org.apache.xmlbeans.XmlException
- Throws:
IOException
org.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
-
-