congrats Icon
New! Announcing Tabnine Chat Beta
Learn More
Tabnine Logo
Element.getKey
Code IndexAdd Tabnine to your IDE (free)

How to use
getKey
method
in
org.wso2.siddhi.query.api.annotation.Element

Best Java code snippets using org.wso2.siddhi.query.api.annotation.Element.getKey (Showing top 11 results out of 315)

origin: wso2/siddhi

public String getElement(String key) {
  for (Element element : elements) {
    if (element.getKey() != null && element.getKey().equalsIgnoreCase(key)) {
      return element.getValue();
    }
  }
  return null;
}
origin: wso2/siddhi

for (Element aElement : annotation.getElements()) {
  if (elementName == null) {
    if (aElement.getKey() == null) {
    if (elementName.equalsIgnoreCase(aElement.getKey())) {
origin: org.wso2.siddhi/siddhi-query-api

public String getElement(String key) {
  for (Element element : elements) {
    if (element.getKey() != null && element.getKey().equalsIgnoreCase(key)) {
      return element.getValue();
    }
  }
  return null;
}
origin: org.wso2.carbon.analytics/org.wso2.carbon.siddhi.editor.core

/**
 * Generates a PayloadOrAttributeElement object from the given Siddhi Element object
 * @param element       Siddhi Element object
 * @return              PayloadOrAttributeElement object
 */
private PayloadOrAttributeElement generatePayloadOrAttributesElement(Element element) {
  PayloadOrAttributeElement payloadOrAttributeElement = new PayloadOrAttributeElement();
  payloadOrAttributeElement.key = element.getKey();
  payloadOrAttributeElement.value = element.getValue();
  return payloadOrAttributeElement;
}
origin: org.wso2.carbon.analytics/org.wso2.carbon.siddhi.editor.core

  public StoreConfig generateStoreConfig(Annotation storeAnnotation) throws DesignGenerationException {
    String type = null;
    Map<String, String> options = new HashMap<>();
    for (Element element : storeAnnotation.getElements()) {
      if (element.getKey().equalsIgnoreCase("TYPE")) {
        type = element.getValue();
      } else {
        options.put(element.getKey(), element.getValue());
      }
    }
    if (type == null) {
      throw new DesignGenerationException("Can not find type for the Store");
    }
    StoreConfig storeConfig = new StoreConfig(type, options);
    preserveAndBindCodeSegment(storeAnnotation, storeConfig);

    return storeConfig;
  }
}
origin: org.wso2.carbon.analytics/org.wso2.carbon.sp.jobmanager.core

if (annotation.getName().equalsIgnoreCase(Constants.KAFKA_SOURCE)) {
  for (Element sourceElement : annotation.getElements()) {
    if (sourceElement.getKey().equalsIgnoreCase(Constants.KAFKA_SOURCE_TOPIC_LIST)) {
      sourceList.add(sourceElement.getValue());
    if (sinkElement.getKey().equalsIgnoreCase(Constants.KAFKA_SINK_TOPIC)) {
      sinkList.add(sinkElement.getValue());
origin: org.wso2.carbon.analytics/org.wso2.carbon.siddhi.editor.core

List<String> options = new ArrayList<>();
for (Element element : sourceOrSinkAndConnectedElement.getKey().getElements()) {
  if (element.getKey().equalsIgnoreCase(TYPE)) {
    type = element.getValue();
  } else {
    options.add(element.toString());
  if (element.getKey().equalsIgnoreCase(SINK_ID) || element.getKey().equalsIgnoreCase(SOURCE_ID)) {
    correlationId = element.getValue();
origin: org.wso2.extension.siddhi.map.text/siddhi-map-text

this.isCustomMappingEnabled = true;
for (Element el : streamDefinition.getAnnotations().get(0).getAnnotations().get(0).getElements()) {
  if (el.getKey().contains(REGULAR_EXPRESSION_GROUP)) {
    regexGroupMap.put(el.getKey()
        .replaceFirst(REGULAR_EXPRESSION_GROUP, EMPTY_STRING), el.getValue());
origin: org.wso2.carbon.analytics/org.wso2.carbon.siddhi.editor.core

/**
 * Generates config for a Mapper
 * @param mapAnnotation                     Siddhi annotation that contains details of a Siddhi Mapper
 * @return                                  MapperConfig object
 * @throws DesignGenerationException        Error while generating MapperConfig
 */
private MapperConfig generateMapperConfig(Annotation mapAnnotation) throws DesignGenerationException {
  String type = null;
  List<String> options = new ArrayList<>();
  for (Element element : mapAnnotation.getElements()) {
    if (element.getKey().equalsIgnoreCase(TYPE)) {
      type = element.getValue();
    } else {
      options.add(element.toString());
    }
  }
  if (type == null) {
    throw new DesignGenerationException("Unable to find 'type' of the mapper");
  }
  MapperPayloadOrAttribute payloadOrAttribute = null;
  if (!mapAnnotation.getAnnotations().isEmpty()) {
    payloadOrAttribute = generateMapperPayloadOrAttributes(mapAnnotation.getAnnotations().get(0));
  }
  MapperConfig mapperConfig = new MapperConfig(type, options, payloadOrAttribute);
  preserveAndBindCodeSegment(mapAnnotation, mapperConfig);
  return mapperConfig;
}
origin: org.wso2.siddhi/siddhi-query-api

for (Element aElement : annotation.getElements()) {
  if (elementName == null) {
    if (aElement.getKey() == null) {
    if (elementName.equalsIgnoreCase(aElement.getKey())) {
origin: org.wso2.siddhi/siddhi-extension-event-table

String elementKey = element.getKey();
try {
  if ("maxIdle".equalsIgnoreCase(elementKey)) {
org.wso2.siddhi.query.api.annotationElementgetKey

Popular methods of Element

  • getValue
  • <init>
  • toString
  • getQueryContextEndIndex
  • getQueryContextStartIndex

Popular in Java

  • Creating JSON documents from java classes using gson
  • startActivity (Activity)
  • onCreateOptionsMenu (Activity)
  • getApplicationContext (Context)
  • BufferedWriter (java.io)
    Wraps an existing Writer and buffers the output. Expensive interaction with the underlying reader is
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • List (java.util)
    An ordered collection (also known as a sequence). The user of this interface has precise control ove
  • Pattern (java.util.regex)
    Patterns are compiled regular expressions. In many cases, convenience methods such as String#matches
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • HttpServletRequest (javax.servlet.http)
    Extends the javax.servlet.ServletRequest interface to provide request information for HTTP servlets.
  • Best plugins for Eclipse
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