congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
SectionsType
Code IndexAdd Tabnine to your IDE (free)

How to use
SectionsType
in
net.opengis.ows.x11

Best Java code snippets using net.opengis.ows.x11.SectionsType (Showing top 8 results out of 315)

origin: org.n52.svalbard/svalbard-xmlbeans

/**
 * parses the XmlBean representing the getCapabilities request and creates a
 * SosGetCapabilities request
 *
 * @param getCapsDoc
 *            XmlBean created from the incoming request stream
 * @return Returns SosGetCapabilitiesRequest representing the request
 *
 */
private OwsServiceRequest parseGetCapabilities(GetCapabilitiesDocument getCapsDoc) {
  GetCapabilities getCaps = getCapsDoc.getGetCapabilities();
  GetCapabilitiesRequest request = new GetCapabilitiesRequest(getCaps.getService());
  if (getCaps.getAcceptFormats() != null && getCaps.getAcceptFormats().sizeOfOutputFormatArray() != 0) {
    request.setAcceptFormats(Arrays.asList(getCaps.getAcceptFormats().getOutputFormatArray()));
  }
  if (getCaps.getAcceptVersions() != null && getCaps.getAcceptVersions().sizeOfVersionArray() != 0) {
    request.setAcceptVersions(Arrays.asList(getCaps.getAcceptVersions().getVersionArray()));
  }
  if (getCaps.getSections() != null && getCaps.getSections().getSectionArray().length != 0) {
    request.setSections(Arrays.asList(getCaps.getSections().getSectionArray()));
  }
  return request;
}
origin: org.n52.svalbard/svalbard-xmlbeans

private void addSections(GetCapabilitiesDocument.GetCapabilities gc, GetCapabilitiesRequest request)
    throws EncodingException {
  if (request.isSetSections()) {
    gc.addNewSections().set(encodeOws(new OwsSections().setSections(request.getSections())));
  }
}
origin: org.n52.sensorweb/oxf-sos-adapter

final String[] selectedSections = sectionParamShell.getSpecifiedTypedValueArray(String[].class);
for (final String selectedSection : selectedSections) {
  sections.addSection(selectedSection);
sections.addSection((String) sectionParamShell.getSpecifiedValue());
origin: org.n52.sensorweb/oxf-sos-adapter

final String[] selectedSections = sectionParamShell.getSpecifiedTypedValueArray(String[].class);
for (final String selectedSection : selectedSections) {
  sections.addSection(selectedSection);
sections.addSection((String) sectionParamShell.getSpecifiedValue());
origin: org.n52.svalbard/svalbard-xmlbeans

private void addSections(GetCapabilitiesType gct, GetCapabilitiesRequest request) throws EncodingException {
  if (request.isSetSections()) {
    gct.addNewSections().set(encodeOws(new OwsSections().setSections(request.getSections())));
  }
}
origin: org.n52.sensorweb.sos/coding-sos-v100

/**
 * parses the XmlBean representing the getCapabilities request and creates a
 * SosGetCapabilities request
 * 
 * @param getCapsDoc
 *            XmlBean created from the incoming request stream
 * @return Returns SosGetCapabilitiesRequest representing the request
 * 
 * 
 * @throws OwsExceptionReport
 *             * If parsing the XmlBean failed
 */
private AbstractServiceRequest<?> parseGetCapabilities(GetCapabilitiesDocument getCapsDoc) throws OwsExceptionReport {
  GetCapabilitiesRequest request = new GetCapabilitiesRequest();
  GetCapabilities getCaps = getCapsDoc.getGetCapabilities();
  request.setService(getCaps.getService());
  if (getCaps.getAcceptFormats() != null && getCaps.getAcceptFormats().sizeOfOutputFormatArray() != 0) {
    request.setAcceptFormats(Arrays.asList(getCaps.getAcceptFormats().getOutputFormatArray()));
  }
  if (getCaps.getAcceptVersions() != null && getCaps.getAcceptVersions().sizeOfVersionArray() != 0) {
    request.setAcceptVersions(Arrays.asList(getCaps.getAcceptVersions().getVersionArray()));
  }
  if (getCaps.getSections() != null && getCaps.getSections().getSectionArray().length != 0) {
    request.setSections(Arrays.asList(getCaps.getSections().getSectionArray()));
  }
  return request;
}
origin: org.n52.sensorweb/52n-xml-ows-v110

/**
 * Sets the "Sections" element
 */
public void setSections(net.opengis.ows.x11.SectionsType sections)
{
  synchronized (monitor())
  {
    check_orphaned();
    net.opengis.ows.x11.SectionsType target = null;
    target = (net.opengis.ows.x11.SectionsType)get_store().find_element_user(SECTIONS$2, 0);
    if (target == null)
    {
      target = (net.opengis.ows.x11.SectionsType)get_store().add_element_user(SECTIONS$2);
    }
    target.set(sections);
  }
}

origin: org.n52.svalbard/svalbard-xmlbeans

/**
 * parses the XmlBean representing the getCapabilities request and creates a
 * SosGetCapabilities request
 *
 * @param getCapsDoc
 *            XmlBean created from the incoming request stream
 * @return Returns SosGetCapabilitiesRequest representing the request
 *
 *
 * @throws DecodingException
 *             * If parsing the XmlBean failed
 */
private OwsServiceRequest parseGetCapabilities(final GetCapabilitiesDocument getCapsDoc)
    throws DecodingException {
  final GetCapabilitiesType getCapsType = getCapsDoc.getGetCapabilities2();
  final GetCapabilitiesRequest request = new GetCapabilitiesRequest(getCapsType.getService());
  if (getCapsType.getAcceptFormats() != null && getCapsType.getAcceptFormats().sizeOfOutputFormatArray() != 0) {
    request.setAcceptFormats(Arrays.asList(getCapsType.getAcceptFormats().getOutputFormatArray()));
  }
  if (getCapsType.getAcceptVersions() != null && getCapsType.getAcceptVersions().sizeOfVersionArray() != 0) {
    request.setAcceptVersions(Arrays.asList(getCapsType.getAcceptVersions().getVersionArray()));
  }
  if (getCapsType.getSections() != null && getCapsType.getSections().getSectionArray().length != 0) {
    request.setSections(Arrays.asList(getCapsType.getSections().getSectionArray()));
  }
  if (getCapsType.getExtensionArray() != null && getCapsType.getExtensionArray().length > 0) {
    request.setExtensions(parseExtensibleRequestExtension(getCapsType.getExtensionArray()));
  }
  return request;
}
net.opengis.ows.x11SectionsType

Javadoc

An XML SectionsType(@http://www.opengis.net/ows/1.1). This is a complex type.

Most used methods

  • getSectionArray
    Gets ith "Section" element
  • set
  • addSection
    Appends the value as the last "Section" element

Popular in Java

  • Running tasks concurrently on multiple threads
  • getSupportFragmentManager (FragmentActivity)
  • getSharedPreferences (Context)
  • setScale (BigDecimal)
  • Menu (java.awt)
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • Stack (java.util)
    Stack is a Last-In/First-Out(LIFO) data structure which represents a stack of objects. It enables u
  • TimeZone (java.util)
    TimeZone represents a time zone offset, and also figures out daylight savings. Typically, you get a
  • JarFile (java.util.jar)
    JarFile is used to read jar entries and their associated data from jar files.
  • SAXParseException (org.xml.sax)
    Encapsulate an XML parse error or warning.> This module, both source code and documentation, is in t
  • Sublime Text for Python
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now