All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.computate.smartvillage.enus.camel.CamelIntegrationGen Maven / Gradle / Ivy

Go to download

Red Hat Global Social Innovation Program is partnering with Boston University and Smarta Byar in order to collaborate on creating a global and open research platform allowing researchers to study what social sustainability means by using a digital twin of Veberöd, Sweden as the test village, supported by Smarta Byar. The goal of this collaboration is to build the open source technological infrastructure so that researchers can collaborate on this platform effectively to study mobility, public health, sustainability among other study areas to ultimately help define better the link between well being and eco-smart cities.

The newest version!
/*
 * Copyright (c) 2018-2022 Computate Limited Liability Company in Utah, USA,
 * and the Smarta Byar Smart Village FIWARE IHub. 
 *
 * This program and the accompanying materials are made available under the
 * terms of the GNU GENERAL PUBLIC LICENSE Version 3 which is available at
 * 
 * https://www.gnu.org/licenses/gpl-3.0.en.html
 * 
 * You may not propagate or modify a covered work except as expressly provided 
 * under this License. Any attempt otherwise to propagate or modify it is void, 
 * and will automatically terminate your rights under this License (including 
 * any patent licenses granted under the third paragraph of section 11).
 */
package org.computate.smartvillage.enus.camel;

import org.computate.smartvillage.enus.request.SiteRequestEnUS;
import java.lang.Object;
import org.computate.smartvillage.enus.model.base.BaseModel;
import org.computate.vertx.api.ApiRequest;
import org.computate.smartvillage.enus.config.ConfigKeys;
import java.util.Optional;
import java.util.List;
import org.apache.commons.lang3.StringUtils;
import java.util.Objects;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import org.computate.search.serialize.ComputateLocalDateSerializer;
import org.computate.search.serialize.ComputateLocalDateDeserializer;
import org.computate.search.serialize.ComputateZonedDateTimeSerializer;
import org.computate.search.serialize.ComputateZonedDateTimeDeserializer;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import java.math.MathContext;
import org.apache.commons.lang3.math.NumberUtils;
import java.text.NumberFormat;
import java.util.Arrays;
import java.util.ArrayList;
import java.util.HashMap;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import java.math.RoundingMode;
import java.util.Map;
import org.computate.search.wrap.Wrap;
import io.vertx.core.Promise;
import io.vertx.core.Future;
import io.vertx.core.json.JsonArray;

/**
 * 

    Suggestions that can generate more code for you:

    *
*
  • You can add a class comment "Api: true" if you wish to GET, POST, PATCH or PUT these CamelIntegration objects in a RESTful API. *
  • *

    About the CamelIntegration class and it's generated class CamelIntegrationGen<Object>:

    extends CamelIntegrationGen *

    * This Java class extends a generated Java class CamelIntegrationGen built by the https://github.com/computate-org/computate project. * Whenever this Java class is modified or touched, the watch service installed as described in the README, indexes all the information about this Java class in a local Apache Solr Search Engine. * If you are running the service, you can see the indexed data about this Java Class here: *

    *

    Find the class CamelIntegration in Solr.

    *

    * The extended class ending with "Gen" did not exist at first, but was automatically created by the same watch service based on the data retrieved from the local Apache Server search engine. * The extended class contains many generated fields, getters, setters, initialization code, and helper methods to help build a website and API fast, reactive, and scalable. *

    * extends CamelIntegrationGen *

    This class CamelIntegration extends CamelIntegrationGen<Object>, which means it extends a newly generated CamelIntegrationGen. * The generated class CamelIntegrationGen extends Object which means that CamelIntegration extends CamelIntegrationGen which extends Object. * This generated inheritance is a powerful feature that allows a lot of boiler plate code to be created for you automatically while still preserving inheritance through the power of Java Generic classes. *

    *

    Api: true

    *

    ApiTag.enUS: true

    *

    ApiUri.enUS: null

    *

    Color: null

    *

    IconGroup: null

    *

    IconName: null

    *

    Indexed: true

    *

    {@inheritDoc}

    *

    By adding a class comment "{@inheritDoc}", the CamelIntegration class will inherit the helpful inherited class comments from the super class CamelIntegrationGen. *

    *

    Rows: null

    *

    Model: true

    *

    Page: true

    *

    SuperPage.enUS: null

    *

    Promise: true

    *

    AName.enUS: null

    *

    * Delete the class CamelIntegration in Solr: * curl -k 'https://solr-solr.apps-crc.testing/solr/computate/update?commitWithin=1000&overwrite=true&wt=json' -X POST -H 'Content-type: text/xml' --data-raw '<add><delete><query>classeNomCanonique_enUS_indexed_string:org.computate.smartvillage.enus.camel.CamelIntegration</query></delete></add>' *

    *

    * Delete the package org.computate.smartvillage.enus.camel in Solr: * curl -k 'https://solr-solr.apps-crc.testing/solr/computate/update?commitWithin=1000&overwrite=true&wt=json' -X POST -H 'Content-type: text/xml' --data-raw '<add><delete><query>classeNomEnsemble_enUS_indexed_string:org.computate.smartvillage.enus.camel</query></delete></add>' *

    *

    * Delete the project smartabyar-smartvillage in Solr: * curl -k 'https://solr-solr.apps-crc.testing/solr/computate/update?commitWithin=1000&overwrite=true&wt=json' -X POST -H 'Content-type: text/xml' --data-raw '<add><delete><query>siteNom_indexed_string:smartabyar\-smartvillage</query></delete></add>' *

    * Generated: true **/ public abstract class CamelIntegrationGen extends Object { protected static final Logger LOG = LoggerFactory.getLogger(CamelIntegration.class); public static final String configureCamelFail1 = "The Camel Component was not configured properly. "; public static final String configureCamelFail = configureCamelFail1; public static final String configureCamelComplete1 = "The Camel Component was configured properly. "; public static final String configureCamelComplete = configureCamelComplete1; ////////////// // initDeep // ////////////// public CamelIntegration initDeepCamelIntegration(SiteRequestEnUS siteRequest_) { initDeepCamelIntegration(); return (CamelIntegration)this; } public void initDeepCamelIntegration() { initCamelIntegration(); } public void initCamelIntegration() { } public void initDeepForClass(SiteRequestEnUS siteRequest_) { initDeepCamelIntegration(siteRequest_); } ///////////// // obtain // ///////////// public Object obtainForClass(String var) { String[] vars = StringUtils.split(var, "."); Object o = null; for(String v : vars) { if(o == null) o = obtainCamelIntegration(v); else if(o instanceof BaseModel) { BaseModel baseModel = (BaseModel)o; o = baseModel.obtainForClass(v); } else if(o instanceof Map) { Map map = (Map)o; o = map.get(v); } } return o; } public Object obtainCamelIntegration(String var) { CamelIntegration oCamelIntegration = (CamelIntegration)this; switch(var) { default: return null; } } /////////////// // relate // /////////////// public boolean relateForClass(String var, Object val) { String[] vars = StringUtils.split(var, "."); Object o = null; for(String v : vars) { if(o == null) o = relateCamelIntegration(v, val); else if(o instanceof BaseModel) { BaseModel baseModel = (BaseModel)o; o = baseModel.relateForClass(v, val); } } return o != null; } public Object relateCamelIntegration(String var, Object val) { CamelIntegration oCamelIntegration = (CamelIntegration)this; switch(var) { default: return null; } } /////////////// // staticSet // /////////////// public static Object staticSetForClass(String entityVar, SiteRequestEnUS siteRequest_, String o) { return staticSetCamelIntegration(entityVar, siteRequest_, o); } public static Object staticSetCamelIntegration(String entityVar, SiteRequestEnUS siteRequest_, String o) { switch(entityVar) { default: return null; } } //////////////// // staticSearch // //////////////// public static Object staticSearchForClass(String entityVar, SiteRequestEnUS siteRequest_, Object o) { return staticSearchCamelIntegration(entityVar, siteRequest_, o); } public static Object staticSearchCamelIntegration(String entityVar, SiteRequestEnUS siteRequest_, Object o) { switch(entityVar) { default: return null; } } /////////////////// // staticSearchStr // /////////////////// public static String staticSearchStrForClass(String entityVar, SiteRequestEnUS siteRequest_, Object o) { return staticSearchStrCamelIntegration(entityVar, siteRequest_, o); } public static String staticSearchStrCamelIntegration(String entityVar, SiteRequestEnUS siteRequest_, Object o) { switch(entityVar) { default: return null; } } ////////////////// // staticSearchFq // ////////////////// public static String staticSearchFqForClass(String entityVar, SiteRequestEnUS siteRequest_, String o) { return staticSearchFqCamelIntegration(entityVar, siteRequest_, o); } public static String staticSearchFqCamelIntegration(String entityVar, SiteRequestEnUS siteRequest_, String o) { switch(entityVar) { default: return null; } } ////////////// // toString // ////////////// @Override public String toString() { StringBuilder sb = new StringBuilder(); return sb.toString(); } public static final String[] CamelIntegrationVals = new String[] { configureCamelFail1, configureCamelComplete1 }; public static final String CLASS_SIMPLE_NAME = "CamelIntegration"; public static String displayNameForClass(String var) { return CamelIntegration.displayNameCamelIntegration(var); } public static String displayNameCamelIntegration(String var) { switch(var) { default: return null; } } }