Package ucar.nc2.ogc

Class MarshallingUtil


  • public class MarshallingUtil
    extends Object
    Created by cwardgar on 2014/04/29.
    • Field Detail

      • fixedGenerationDate

        public static CalendarDate fixedGenerationDate
      • fixedResultTime

        public static CalendarDate fixedResultTime
    • Method Detail

      • createIdForType

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

        public static void resetIds()
      • 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