Package org.jdom

Examples of org.jdom.Element.addContent()


    // <CoverageOfferingBrief>/name [1]
    // <CoverageOfferingBrief>/label [1]
    if ( covDescription != null && covDescription.length() != 0)
      briefElem.addContent( new Element( "description", wcsNS ).addContent( covDescription ) );
    briefElem.addContent( new Element( "name", wcsNS ).addContent( covName ) );
    briefElem.addContent( new Element( "label", wcsNS ).addContent( covLabel ) );

    // <CoverageOfferingBrief>/lonLatEnvelope [1]
    briefElem.addContent( genLonLatEnvelope( gridCoordSys ) );

    // ToDo Add keywords capabilities.
View Full Code Here


      briefElem.addContent( new Element( "description", wcsNS ).addContent( covDescription ) );
    briefElem.addContent( new Element( "name", wcsNS ).addContent( covName ) );
    briefElem.addContent( new Element( "label", wcsNS ).addContent( covLabel ) );

    // <CoverageOfferingBrief>/lonLatEnvelope [1]
    briefElem.addContent( genLonLatEnvelope( gridCoordSys ) );

    // ToDo Add keywords capabilities.
    // <CoverageOfferingBrief>/keywords [0..*]  /keywords [1..*] and /type [0..1]

    return briefElem;
View Full Code Here

        firstPosition += " " + sizeIndexValue;
        secondPosition += " " + zeroIndexValue;
      }
    }
   
    lonLatEnvelopeElem.addContent(
            new Element( "pos", gmlNS ).addContent( firstPosition ) );
    lonLatEnvelopeElem.addContent(
            new Element( "pos", gmlNS ).addContent( secondPosition ) );

    // <CoverageOfferingBrief>/lonLatEnvelope/gml:timePostion [2]
View Full Code Here

      }
    }
   
    lonLatEnvelopeElem.addContent(
            new Element( "pos", gmlNS ).addContent( firstPosition ) );
    lonLatEnvelopeElem.addContent(
            new Element( "pos", gmlNS ).addContent( secondPosition ) );

    // <CoverageOfferingBrief>/lonLatEnvelope/gml:timePostion [2]
    if ( gcs.hasTimeAxis() )
    {
View Full Code Here

            new Element( "pos", gmlNS ).addContent( secondPosition ) );

    // <CoverageOfferingBrief>/lonLatEnvelope/gml:timePostion [2]
    if ( gcs.hasTimeAxis() )
    {
      lonLatEnvelopeElem.addContent(
              new Element( "timePosition", gmlNS).addContent(
                      gcs.getDateRange().getStart().toDateTimeStringISO()) );
      lonLatEnvelopeElem.addContent(
              new Element( "timePosition", gmlNS).addContent(
                      gcs.getDateRange().getEnd().toDateTimeStringISO()) );
View Full Code Here

    if ( gcs.hasTimeAxis() )
    {
      lonLatEnvelopeElem.addContent(
              new Element( "timePosition", gmlNS).addContent(
                      gcs.getDateRange().getStart().toDateTimeStringISO()) );
      lonLatEnvelopeElem.addContent(
              new Element( "timePosition", gmlNS).addContent(
                      gcs.getDateRange().getEnd().toDateTimeStringISO()) );
    }

    return lonLatEnvelopeElem;
View Full Code Here

    if ( section.equals( Section.All))
    {
      rootElem = new Element( "WCS_Capabilities", wcsNS );

      rootElem.addContent( generateServiceSection( this.serviceInfo ) );
      rootElem.addContent( generateCapabilitySection() );
      rootElem.addContent( generateContentMetadataSection() );
    }
    else if ( section.equals( Section.Service))
    {
View Full Code Here

    if ( section.equals( Section.All))
    {
      rootElem = new Element( "WCS_Capabilities", wcsNS );

      rootElem.addContent( generateServiceSection( this.serviceInfo ) );
      rootElem.addContent( generateCapabilitySection() );
      rootElem.addContent( generateContentMetadataSection() );
    }
    else if ( section.equals( Section.Service))
    {
      rootElem = generateServiceSection( this.serviceInfo );
View Full Code Here

    {
      rootElem = new Element( "WCS_Capabilities", wcsNS );

      rootElem.addContent( generateServiceSection( this.serviceInfo ) );
      rootElem.addContent( generateCapabilitySection() );
      rootElem.addContent( generateContentMetadataSection() );
    }
    else if ( section.equals( Section.Service))
    {
      rootElem = generateServiceSection( this.serviceInfo );
    }
View Full Code Here

      // WCS_Capabilities/Service/gml:description [0..1]
      // WCS_Capabilities/Service/gml:name [0..*]
      // WCS_Capabilities/Service/metadataLink [0..*]
      // WCS_Capabilities/Service/description [0..1]
      if ( serviceInfo.getDescription() != null )
        serviceElem.addContent( new Element( "description", wcsNS ).addContent( serviceInfo.getDescription() ) );

      // WCS_Capabilities/Service/name
      if ( serviceInfo.getName() != null )
        serviceElem.addContent( new Element( "name", wcsNS ).addContent( serviceInfo.getName() ) );

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.