Package org.jdom

Examples of org.jdom.Element.addContent()


      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() ) );

      // WCS_Capabilities/Service/label (string)
      if ( serviceInfo.getLabel() != null )
        serviceElem.addContent( new Element( "label", wcsNS ).addContent( serviceInfo.getLabel() ) );
View Full Code Here


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

      // WCS_Capabilities/Service/label (string)
      if ( serviceInfo.getLabel() != null )
        serviceElem.addContent( new Element( "label", wcsNS ).addContent( serviceInfo.getLabel() ) );

      // WCS_Capabilities/Service/keywords [0..*](string)
      // WCS_Capabilities/Service/keywords/keyword [1..*](string)
      // WCS_Capabilities/Service/keywords/type [0..1](string)
      // WCS_Capabilities/Service/keywords/type@codeSpace [0..1](URI)
View Full Code Here

           serviceInfo.getKeywords().size() > 0 )
      {
        Element keywordsElem = new Element( "keywords", wcsNS );
        for ( String curKey : serviceInfo.getKeywords() )
        {
          keywordsElem.addContent( new Element( "keyword", wcsNS ).addContent( curKey ) );
        }
        serviceElem.addContent( keywordsElem );
      }

      ResponsibleParty respParty = serviceInfo.getResponsibleParty();
View Full Code Here

        // WCS_Capabilities/Service/responsibleParty/individualName [1](string)
        //   AND/OR
        // WCS_Capabilities/Service/responsibleParty/organisationName [1](string)
        //-----
        if (respParty.getIndividualName() != null )
          respPartyElem.addContent( new Element( "individualName", wcsNS).addContent( respParty.getIndividualName()));
        if (respParty.getOrganizationName() != null )
          respPartyElem.addContent( new Element( "organisationName", wcsNS).addContent( respParty.getOrganizationName()));

        // WCS_Capabilities/Service/responsibleParty/positionName [0..1](string)
        if (respParty.getPositionName() != null )
View Full Code Here

        // WCS_Capabilities/Service/responsibleParty/organisationName [1](string)
        //-----
        if (respParty.getIndividualName() != null )
          respPartyElem.addContent( new Element( "individualName", wcsNS).addContent( respParty.getIndividualName()));
        if (respParty.getOrganizationName() != null )
          respPartyElem.addContent( new Element( "organisationName", wcsNS).addContent( respParty.getOrganizationName()));

        // WCS_Capabilities/Service/responsibleParty/positionName [0..1](string)
        if (respParty.getPositionName() != null )
          respPartyElem.addContent( new Element( "positionName", wcsNS).addContent( respParty.getPositionName()));
View Full Code Here

        if (respParty.getOrganizationName() != null )
          respPartyElem.addContent( new Element( "organisationName", wcsNS).addContent( respParty.getOrganizationName()));

        // WCS_Capabilities/Service/responsibleParty/positionName [0..1](string)
        if (respParty.getPositionName() != null )
          respPartyElem.addContent( new Element( "positionName", wcsNS).addContent( respParty.getPositionName()));

        // WCS_Capabilities/Service/responsibleParty/contactInfo [0..1]
        if ( respParty.getContact() != null )
        {
          Element contactElem = new Element( "contactInfo", wcsNS);
View Full Code Here

          // WCS_Capabilities/Service/responsibleParty/contactInfo/phone/{voice|facsimile} [0..1] (string)
          Element phoneElem = new Element( "phone", wcsNS );
          if ( respParty.getContact().getVoicePhone() != null )
            for ( String curVoicePhone : respParty.getContact().getVoicePhone() )
              phoneElem.addContent( new Element( "voice", wcsNS ).addContent( curVoicePhone ) );
          if ( respParty.getContact().getFaxPhone() != null )
            for ( String curFaxPhone : respParty.getContact().getFaxPhone() )
              phoneElem.addContent( new Element( "facsimile", wcsNS ).addContent( curFaxPhone ) );

          if ( phoneElem.getContentSize() > 0 )
View Full Code Here

          if ( respParty.getContact().getVoicePhone() != null )
            for ( String curVoicePhone : respParty.getContact().getVoicePhone() )
              phoneElem.addContent( new Element( "voice", wcsNS ).addContent( curVoicePhone ) );
          if ( respParty.getContact().getFaxPhone() != null )
            for ( String curFaxPhone : respParty.getContact().getFaxPhone() )
              phoneElem.addContent( new Element( "facsimile", wcsNS ).addContent( curFaxPhone ) );

          if ( phoneElem.getContentSize() > 0 )
            contactElem.addContent( phoneElem);

          // WCS_Capabilities/Service/responsibleParty/contactInfo/address [0..1]
View Full Code Here

            if ( contactAddress.getDeliveryPoint() != null )
            {
              for ( String curDP : contactAddress.getDeliveryPoint() )
              {
                // WCS_Capabilities/Service/responsibleParty/contactInfo/address/deliveryPoint [0..*]
                addressElem.addContent( new Element( "deliveryPoint", wcsNS ).addContent( curDP ) );
              }
            }
            if ( contactAddress.getCity() != null )
            {
              // WCS_Capabilities/Service/responsibleParty/contactInfo/address/city [0..1]
View Full Code Here

              }
            }
            if ( contactAddress.getCity() != null )
            {
              // WCS_Capabilities/Service/responsibleParty/contactInfo/address/city [0..1]
              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 )
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.