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 Details

    • fixedGenerationDate

      public static ucar.nc2.time.CalendarDate fixedGenerationDate
    • fixedResultTime

      public static ucar.nc2.time.CalendarDate fixedResultTime
  • Method Details

    • createIdForType

      public static String createIdForType(Class<?> clazz)
    • resetIds

      public static void resetIds()
    • marshalPointDataset

      public static void marshalPointDataset(ucar.nc2.ft.FeatureDatasetPoint fdPoint, OutputStream outputStream) throws IOException, org.apache.xmlbeans.XmlException
      Throws:
      IOException
      org.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:
      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