Codota Logo
SosContentCache.getFeatureOfInterestTypes
Code IndexAdd Codota to your IDE (free)

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

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

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
LocalDateTime l =
  • Codota Iconnew LocalDateTime()
  • Codota IconLocalDateTime.now()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseLocalDateTime(text)
  • Smart code suggestions by Codota
}
origin: 52North/SOS

/**
 * Checks whether the specified featureOfInterest type exists.
 *
 * @param featureOfInterestType the observation type
 *
 * @return {@code true} if it exists
 */
default boolean hasFeatureOfInterestType(String featureOfInterestType) {
  return getFeatureOfInterestTypes().contains(featureOfInterestType);
}
origin: 52North/SOS

private void checkFeatureOfInterestTypes(Set<String> featureOfInterestTypes) throws OwsExceptionReport {
  if (featureOfInterestTypes != null) {
    CompositeOwsException exceptions = new CompositeOwsException();
    Collection<String> validFeatureOfInterestTypes = getCache().getFeatureOfInterestTypes();
    for (String featureOfInterestType : featureOfInterestTypes) {
      if (featureOfInterestType.isEmpty()) {
        exceptions.add(new MissingFeatureOfInterestTypeException());
      } else if (!validFeatureOfInterestTypes.contains(featureOfInterestType)) {
        exceptions.add(new InvalidFeatureOfInterestTypeException(featureOfInterestType));
      }
    }
    exceptions.throwIfNotEmpty();
  }
}
origin: org.n52.sensorweb.sos/admin-controller

public static Map<String, String> getCacheValues() {
  SosContentCache cache = Configurator.getInstance().getCache();
  Map<String, String> values = new TreeMap<>();
  values.put(LAST_UPDATE_TIME, nullSafeToString(cache.getLastUpdateTime()));
  values.put(MIN_PHENOMENON_TIME, nullSafeToString(cache.getMinPhenomenonTime()));
  values.put(MAX_PHENOMENON_TIME, nullSafeToString(cache.getMaxPhenomenonTime()));
  values.put(MIN_RESULT_TIME, nullSafeToString(cache.getMinResultTime()));
  values.put(MAX_RESULT_TIME, nullSafeToString(cache.getMaxResultTime()));
  values.put(GLOBAL_ENVELOPE, nullSafeToString(cache.getGlobalEnvelope()));
  values.put(NUM_OFFERINGS, nullSafeToString(cache.getOfferings()));
  values.put(NUM_PROCEDURES, nullSafeToString(cache.getProcedures()));
  values.put(NUM_OBSERVABLE_PROPERTIES, nullSafeToString(cache.getObservableProperties()));
  values.put(NUM_FEATURES_OF_INTEREST, nullSafeToString(cache.getFeaturesOfInterest()));
  values.put(NUM_FEATURE_OF_INTEREST_TYPES, nullSafeToString(cache.getFeatureOfInterestTypes()));
  values.put(NUM_OBSERVATION_TYPES, nullSafeToString(cache.getObservationTypes()));
  values.put(NUM_RELATED_FEATURES, nullSafeToString(cache.getRelatedFeatures()));
  values.put(NUM_RESULT_TEMPLATES, nullSafeToString(cache.getResultTemplates()));
  values.put(DEFAULT_EPSG, Integer.toString(cache.getDefaultEPSGCode()));
  values.put(NUM_EPSGS, nullSafeToString(cache.getEpsgCodes()));
  return values;
}
origin: 52North/SOS

public static Map<String, String> getCacheValues() {
  SosContentCache cache = Configurator.getInstance().getCache();
  Map<String, String> values = new TreeMap<>();
  values.put(LAST_UPDATE_TIME, nullSafeToString(cache.getLastUpdateTime()));
  values.put(MIN_PHENOMENON_TIME, nullSafeToString(cache.getMinPhenomenonTime()));
  values.put(MAX_PHENOMENON_TIME, nullSafeToString(cache.getMaxPhenomenonTime()));
  values.put(MIN_RESULT_TIME, nullSafeToString(cache.getMinResultTime()));
  values.put(MAX_RESULT_TIME, nullSafeToString(cache.getMaxResultTime()));
  values.put(GLOBAL_ENVELOPE, nullSafeToString(cache.getGlobalEnvelope()));
  values.put(NUM_OFFERINGS, nullSafeToString(cache.getOfferings()));
  values.put(NUM_PROCEDURES, nullSafeToString(cache.getProcedures()));
  values.put(NUM_OBSERVABLE_PROPERTIES, nullSafeToString(cache.getObservableProperties()));
  values.put(NUM_FEATURES_OF_INTEREST, nullSafeToString(cache.getFeaturesOfInterest()));
  values.put(NUM_FEATURE_OF_INTEREST_TYPES, nullSafeToString(cache.getFeatureOfInterestTypes()));
  values.put(NUM_OBSERVATION_TYPES, nullSafeToString(cache.getObservationTypes()));
  values.put(NUM_RELATED_FEATURES, nullSafeToString(cache.getRelatedFeatures()));
  values.put(NUM_RESULT_TEMPLATES, nullSafeToString(cache.getResultTemplates()));
  values.put(DEFAULT_EPSG, Integer.toString(cache.getDefaultEPSGCode()));
  values.put(NUM_EPSGS, nullSafeToString(cache.getEpsgCodes()));
  return values;
}
origin: org.n52.sensorweb.sos/hibernate-handler

@Override
public OwsCapabilitiesExtension getExtension() {
  SosContentCache cache = getCache();
  SosInsertionCapabilities insertionCapabilities = new SosInsertionCapabilities();
  insertionCapabilities.addFeatureOfInterestTypes(cache.getFeatureOfInterestTypes());
  insertionCapabilities.addObservationTypes(cache.getObservationTypes());
  insertionCapabilities.addProcedureDescriptionFormats(this.procedureDescriptionFormatRepository
      .getSupportedProcedureDescriptionFormats(SosConstants.SOS, Sos2Constants.SERVICEVERSION));
  return insertionCapabilities;
}
origin: 52North/SOS

@Override
public OwsCapabilitiesExtension getExtension() {
  SosContentCache cache = getCache();
  SosInsertionCapabilities insertionCapabilities = new SosInsertionCapabilities();
  insertionCapabilities.addFeatureOfInterestTypes(cache.getFeatureOfInterestTypes());
  insertionCapabilities.addObservationTypes(cache.getObservationTypes());
  insertionCapabilities.addProcedureDescriptionFormats(this.procedureDescriptionFormatRepository
      .getSupportedProcedureDescriptionFormats(SosConstants.SOS, Sos2Constants.SERVICEVERSION));
  return insertionCapabilities;
}
origin: 52North/SOS

@Override
public OwsCapabilitiesExtension getExtension() {
  SosInsertionCapabilities insertionCapabilities = new SosInsertionCapabilities();
  SosContentCache cache = getCache();
  insertionCapabilities.addFeatureOfInterestTypes(cache.getFeatureOfInterestTypes());
  insertionCapabilities.addObservationTypes(cache.getObservationTypes());
  insertionCapabilities.addProcedureDescriptionFormats(procedureDescriptionFormatRepository
          .getSupportedProcedureDescriptionFormats(SosConstants.SOS, Sos2Constants.SERVICEVERSION));
  // TODO dynamic
  insertionCapabilities.addSupportedEncoding(SweConstants.ENCODING_TEXT);
  return insertionCapabilities;
}
origin: org.n52.sensorweb.sos/hibernate-handler

@Override
public OwsCapabilitiesExtension getExtension() {
  SosInsertionCapabilities insertionCapabilities = new SosInsertionCapabilities();
  SosContentCache cache = getCache();
  insertionCapabilities.addFeatureOfInterestTypes(cache.getFeatureOfInterestTypes());
  insertionCapabilities.addObservationTypes(cache.getObservationTypes());
  insertionCapabilities.addProcedureDescriptionFormats(procedureDescriptionFormatRepository
          .getSupportedProcedureDescriptionFormats(SosConstants.SOS, Sos2Constants.SERVICEVERSION));
  // TODO dynamic
  insertionCapabilities.addSupportedEncoding(SweConstants.ENCODING_TEXT);
  return insertionCapabilities;
}
origin: org.n52.sensorweb.sos/hibernate-handler

@Override
public OwsCapabilitiesExtension getExtension() {
  SosInsertionCapabilities insertionCapabilities = new SosInsertionCapabilities();
  SosContentCache cache = getCache();
  insertionCapabilities.addFeatureOfInterestTypes(cache.getFeatureOfInterestTypes());
  insertionCapabilities.addObservationTypes(cache.getObservationTypes());
  insertionCapabilities.addProcedureDescriptionFormats(procedureDescriptionFormatRepository
      .getSupportedProcedureDescriptionFormats(SosConstants.SOS, Sos2Constants.SERVICEVERSION));
  // TODO dynamic
  insertionCapabilities.addSupportedEncoding(SweConstants.ENCODING_TEXT);
  return insertionCapabilities;
}
origin: 52North/SOS

@Override
public OwsCapabilitiesExtension getExtension() {
  SosInsertionCapabilities insertionCapabilities = new SosInsertionCapabilities();
  SosContentCache cache = getCache();
  insertionCapabilities.addFeatureOfInterestTypes(cache.getFeatureOfInterestTypes());
  insertionCapabilities.addObservationTypes(cache.getObservationTypes());
  insertionCapabilities.addProcedureDescriptionFormats(procedureDescriptionFormatRepository
      .getSupportedProcedureDescriptionFormats(SosConstants.SOS, Sos2Constants.SERVICEVERSION));
  // TODO dynamic
  insertionCapabilities.addSupportedEncoding(SweConstants.ENCODING_TEXT);
  return insertionCapabilities;
}
org.n52.sos.cacheSosContentCachegetFeatureOfInterestTypes

Popular methods of SosContentCache

  • getOfferings
  • getObservableProperties
  • getObservationTypes
  • getProceduresForOffering
  • hasObservableProperty
  • hasOffering
  • getAllowedObservationTypesForOffering
  • getChildProcedures
    Returns collection containing child procedures for the passed procedures, optionally navigating the
  • getEpsgCodes
  • getOfferingsForProcedure
  • getProcedures
  • getPublishedObservableProperties
  • getProcedures,
  • getPublishedObservableProperties,
  • getPublishedOfferings,
  • hasResultTemplate,
  • getAllObservationTypesForOffering,
  • getCompositePhenomenonsForOffering,
  • getEnvelopeForOffering,
  • getFeaturesOfInterest,
  • getFeaturesOfInterestForOffering

Popular in Java

  • Parsing JSON documents to java classes using gson
  • compareTo (BigDecimal)
  • getSharedPreferences (Context)
  • addToBackStack (FragmentTransaction)
  • FlowLayout (java.awt)
    A flow layout arranges components in a left-to-right flow, much like lines of text in a paragraph. F
  • Kernel (java.awt.image)
  • IOException (java.io)
    Signals that an I/O exception of some sort has occurred. This class is the general class of exceptio
  • ServerSocket (java.net)
    This class represents a server-side socket that waits for incoming client connections. A ServerSocke
  • JFrame (javax.swing)
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now