Tabnine Logo
SosContentCache.getObservablePropertiesForProcedure
Code IndexAdd Tabnine to your IDE (free)

How to use
getObservablePropertiesForProcedure
method
in
org.n52.sos.cache.SosContentCache

Best Java code snippets using org.n52.sos.cache.SosContentCache.getObservablePropertiesForProcedure (Showing top 4 results out of 315)

origin: 52North/SOS

  @VisibleForTesting
  String[] getObservablePropertiesForProcedure(String identifier) {
    SortedSet<String> props = new TreeSet<>();
    Set<String> obsProps = getCache().getObservablePropertiesForProcedure(identifier);
    for (String obsProp : obsProps) {
      if (getCache().getPublishedObservableProperties().contains(obsProp)) {
        props.add(obsProp);
      }
    }
    return props.toArray(new String[props.size()]);
  }
}
origin: org.n52.sensorweb.sos/hibernate-common

  @VisibleForTesting
  String[] getObservablePropertiesForProcedure(String identifier) {
    SortedSet<String> props = new TreeSet<>();
    Set<String> obsProps = getCache().getObservablePropertiesForProcedure(identifier);
    for (String obsProp : obsProps) {
      if (getCache().getPublishedObservableProperties().contains(obsProp)) {
        props.add(obsProp);
      }
    }
    return props.toArray(new String[props.size()]);
  }
}
origin: 52North/SOS

private void addObservableProperties(Set<String> keywords) {
  for (String obsProp : getCache()
      .getObservablePropertiesForProcedure(getIdentifier())) {
    if (getCache().getPublishedObservableProperties().contains(obsProp)) {
      keywords.add(obsProp);
    }
  }
}
origin: 52North/SOS

@Override
public void enrich()
    throws OwsExceptionReport {
  if (isSetLocale()) {
    I18NDAO<I18NObservablePropertyMetadata> dao =
        getProcedureCreationContext().getI18nr().getDAO(I18NObservablePropertyMetadata.class);
    if (dao != null) {
      Set<String> ids = getCache().getObservablePropertiesForProcedure(getIdentifier());
      Collection<I18NObservablePropertyMetadata> metadata = dao.getMetadata(checkForPublished(ids));
      for (I18NObservablePropertyMetadata i18n : metadata) {
        OmObservableProperty observableProperty = new OmObservableProperty(i18n.getIdentifier());
        Optional<LocalizedString> name = i18n.getName().getLocalizationOrDefault(getLocale(),
            getProcedureCreationContext().getDefaultLocale());
        if (name.isPresent()) {
          observableProperty.addName(new CodeType(name.get()));
        }
        getDescription().addPhenomenon(observableProperty);
      }
    }
  }
}
org.n52.sos.cacheSosContentCachegetObservablePropertiesForProcedure

Javadoc

Get the observable properties associated with the specified procedure.

Popular methods of SosContentCache

  • getOfferings
  • getObservableProperties
  • getFeatureOfInterestTypes
  • getObservationTypes
  • getProceduresForOffering
  • hasObservableProperty
  • hasOffering
  • getAllowedObservationTypesForOffering
  • getChildProcedures
  • getEpsgCodes
  • getOfferingsForProcedure
  • getProcedures
  • getOfferingsForProcedure,
  • getProcedures,
  • getPublishedObservableProperties,
  • getPublishedOfferings,
  • hasResultTemplate,
  • getAllObservationTypesForOffering,
  • getCompositePhenomenonsForOffering,
  • getEnvelopeForOffering,
  • getFeaturesOfInterest,
  • getFeaturesOfInterestForOffering

Popular in Java

  • Parsing JSON documents to java classes using gson
  • onCreateOptionsMenu (Activity)
  • getContentResolver (Context)
  • setScale (BigDecimal)
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • LinkedList (java.util)
    Doubly-linked list implementation of the List and Dequeinterfaces. Implements all optional list oper
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • JTable (javax.swing)
  • Top Vim plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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