Package org.apache.oodt.opendapps.config

Examples of org.apache.oodt.opendapps.config.ProcessingInstructions


        AttributeTable at = das.getAttributeTable(attName);
        Enumeration<String> e = at.getNames();
       
        // NetCDF global attributes
        // store attribute name, all values for ALL attributes (strings and numerics)
        ProcessingInstructions processingInstructions = config.getProcessingInstructions();
        if (attName.equals(NC_GLOBAL)) {
          while (e.hasMoreElements()) {
            String key = e.nextElement();
            Attribute att = at.getAttribute(key);
            // convert all DAS attribute names to lower case
            String lkey = key.toLowerCase();
           
            // look for global attribute name in date/time configuration specification
            String dateTimeFormatKey = OpendapConfigMetKeys.DATETIME_FORMAT_ATTR + ":" + lkey;
            String dateTimeFormatValue = processingInstructions.getInstructionValue(dateTimeFormatKey);
            // add this attribute as properly formatted date/time
            if (StringUtils.hasText(dateTimeFormatValue)) {
              DateFormat inFormat = new SimpleDateFormat(dateTimeFormatValue);
              Enumeration<String> edt = att.getValues();
              while (edt.hasMoreElements()) {
View Full Code Here

TOP

Related Classes of org.apache.oodt.opendapps.config.ProcessingInstructions

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.