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

com.reprezen.genflow.common.xtend.ExtensionsHelper Maven / Gradle / Ivy

/**
 * Copyright © 2013, 2017 Modelsolv, Inc.
 * All Rights Reserved.
 * 
 * NOTICE: All information contained herein is, and remains the property
 * of ModelSolv, Inc. See the file license.html in the root directory of
 * this project for further information.
 */
package com.reprezen.genflow.common.xtend;

import com.reprezen.rapidml.Extensible;
import com.reprezen.rapidml.Extension;
import org.eclipse.xtext.xbase.lib.Functions.Function1;
import org.eclipse.xtext.xbase.lib.IterableExtensions;

@SuppressWarnings("all")
public class ExtensionsHelper {
  public Iterable getRapidExtensions(final Extensible rapidElement) {
    final Function1 _function = (Extension it) -> {
      return Boolean.valueOf(it.getName().startsWith("x-"));
    };
    return IterableExtensions.filter(rapidElement.getExtensions(), _function);
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy