Package org.jdom

Examples of org.jdom.Element.addContent()


              addressElem.addContent( new Element( "city", wcsNS ).addContent( contactAddress.getCity() ) );
            }
            if ( contactAddress.getAdminArea() != null )
            {
              // WCS_Capabilities/Service/responsibleParty/contactInfo/address/administrativeArea [0..1]
              addressElem.addContent( new Element( "administrativeArea", wcsNS )
                      .addContent( contactAddress.getAdminArea() ) );
            }
            if ( contactAddress.getPostalCode() != null )
            {
              // WCS_Capabilities/Service/responsibleParty/contactInfo/address/postalCode [0..1]
View Full Code Here


                      .addContent( contactAddress.getAdminArea() ) );
            }
            if ( contactAddress.getPostalCode() != null )
            {
              // WCS_Capabilities/Service/responsibleParty/contactInfo/address/postalCode [0..1]
              addressElem.addContent( new Element( "postalCode", wcsNS )
                      .addContent( contactAddress.getPostalCode() ) );
            }
            if ( contactAddress.getCountry() != null )
            {
              // WCS_Capabilities/Service/responsibleParty/contactInfo/address/country [0..1]
View Full Code Here

                      .addContent( contactAddress.getPostalCode() ) );
            }
            if ( contactAddress.getCountry() != null )
            {
              // WCS_Capabilities/Service/responsibleParty/contactInfo/address/country [0..1]
              addressElem.addContent( new Element( "country", wcsNS )
                      .addContent( contactAddress.getCountry() ) );
            }
            if ( contactAddress.getEmail() != null )
            {
              for ( String curEmail : contactAddress.getEmail() )
View Full Code Here

            if ( contactAddress.getEmail() != null )
            {
              for ( String curEmail : contactAddress.getEmail() )
              {
                // WCS_Capabilities/Service/responsibleParty/contactInfo/address/electronicMailAddress [0..*]
                addressElem.addContent( new Element( "electronicMailAddress", wcsNS )
                        .addContent( curEmail ) );
              }
            }

            contactElem.addContent( addressElem );
View Full Code Here

    // attributes
    Iterator atts = v.getAttributes().iterator();
    while (atts.hasNext()) {
      ucar.nc2.Attribute att = (ucar.nc2.Attribute) atts.next();
      varElem.addContent(ucar.nc2.ncml.NcMLWriter.writeAttribute(att, "attribute", null));
    }

    return varElem;
  }
View Full Code Here

      for (int j = 0; j < ensTypes.length; j++) {
        if (j > 0) sbuff.append(" ");
        sbuff.append(Integer.toString(ensTypes[j]));

      }
      ecElem.addContent(sbuff.toString());
    }

    // list all the vertical coordinaates
    Collections.sort(vertTimeCoords);
    for (VertTimeCoord vtc : vertTimeCoords) {
View Full Code Here

        if (values2 != null) {
          sbuff.append(",");
          sbuff.append(Double.toString(values2[j]));
        }
      }
      vcElem.addContent(sbuff.toString());
    }

    // list all the offset hours
    Collections.sort(timeCoords);
    for (ForecastModelRunInventory.TimeCoord tc : timeCoords) {
View Full Code Here

      double[] offset = tc.getOffsetHours();
      for (int j = 0; j < offset.length; j++) {
        if (j > 0) sbuff.append(" ");
        sbuff.append(Double.toString(offset[j]));
      }
      offsetElem.addContent(sbuff.toString());
    }

    // list all the time sequences, containing variables
    for (RunSeq runSeq : runSequences) {
      Element seqElem = new Element("runSequence");
View Full Code Here

    Element capElem = new Element( "Capability", wcsNS );

    // WCS_Capabilities/Capability/
    Element requestElem = new Element( "Request", wcsNS );

    requestElem.addContent( genCapabilityOperationElem( Operation.GetCapabilities.toString() ));
    requestElem.addContent( genCapabilityOperationElem( Operation.DescribeCoverage.toString() ));
    requestElem.addContent( genCapabilityOperationElem( Operation.GetCoverage.toString() ));

    capElem.addContent( requestElem);
View Full Code Here

    // WCS_Capabilities/Capability/
    Element requestElem = new Element( "Request", wcsNS );

    requestElem.addContent( genCapabilityOperationElem( Operation.GetCapabilities.toString() ));
    requestElem.addContent( genCapabilityOperationElem( Operation.DescribeCoverage.toString() ));
    requestElem.addContent( genCapabilityOperationElem( Operation.GetCoverage.toString() ));

    capElem.addContent( requestElem);

    capElem.addContent(
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.