com.reprezen.rapidml.xtext.util.ZenModelHelper.getUsedUserDefinedTypes()方法的使用及代码示例

x33g5p2x  于2022-02-05 转载在 其他  
字(4.0k)|赞(0)|评价(0)|浏览(74)

本文整理了Java中com.reprezen.rapidml.xtext.util.ZenModelHelper.getUsedUserDefinedTypes()方法的一些代码示例,展示了ZenModelHelper.getUsedUserDefinedTypes()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。ZenModelHelper.getUsedUserDefinedTypes()方法的具体详情如下:
包路径:com.reprezen.rapidml.xtext.util.ZenModelHelper
类名称:ZenModelHelper
方法名:getUsedUserDefinedTypes

ZenModelHelper.getUsedUserDefinedTypes介绍

暂无

代码示例

代码示例来源:origin: com.reprezen.genflow/genflow-api

public static List<SingleValueType> getUsedSimpleTypes(ZenModel zenModel) {
  List<SingleValueType> types = new LinkedList<>();
  ZenModelHelper helper = new ZenModelHelper();
  Iterables.addAll(types, helper.getUsedEnums(zenModel));
  Iterables.addAll(types, helper.getUsedUserDefinedTypes(zenModel));
  return types;
}

代码示例来源:origin: com.reprezen.genflow/genflow-api

public static List<SingleValueType> getUsedSimpleTypes(ResourceAPI resourceAPI) {
  List<SingleValueType> types = new LinkedList<>();
  ZenModelHelper helper = new ZenModelHelper();
  types.addAll(helper.getUsedEnums(resourceAPI));
  types.addAll(helper.getUsedUserDefinedTypes(resourceAPI));
  return types;
}

代码示例来源:origin: com.reprezen.rapidml/com.reprezen.rapidml

protected Collection<UserDefinedType> _getUsedUserDefinedTypes(final ResourceAPI resourceAPI) {
 final Function1<ServiceDataResource, Collection<UserDefinedType>> _function = (ServiceDataResource dataInterface) -> {
  return this.getUsedUserDefinedTypes(dataInterface);
 };
 return IterableExtensions.<UserDefinedType>toSet(Iterables.<UserDefinedType>concat(IterableExtensions.<ServiceDataResource, Collection<UserDefinedType>>map(Iterables.<ServiceDataResource>filter(resourceAPI.getOwnedResourceDefinitions(), ServiceDataResource.class), _function)));
}

代码示例来源:origin: com.reprezen.rapidml/com.reprezen.rapidml

protected Collection<UserDefinedType> _getUsedUserDefinedTypes(final ReferenceTreatment ref) {
 final Function1<Object, Collection<UserDefinedType>> _function = (Object it) -> {
  return this.getUsedUserDefinedTypes(it);
 };
 return IterableExtensions.<UserDefinedType>toSet(Iterables.<UserDefinedType>concat(ListExtensions.map(this.getReferenceTreatmentIncludedProperties(ref), _function)));
}

代码示例来源:origin: com.reprezen.rapidml/com.reprezen.rapidml

protected Collection<UserDefinedType> _getUsedUserDefinedTypes(final ZenModel model) {
 final Function1<ResourceAPI, Collection<UserDefinedType>> _function = (ResourceAPI it) -> {
  return this.getUsedUserDefinedTypes(it);
 };
 return IterableExtensions.<UserDefinedType>toSet(Iterables.<UserDefinedType>concat(ListExtensions.<ResourceAPI, Collection<UserDefinedType>>map(model.getResourceAPIs(), _function)));
}

代码示例来源:origin: com.reprezen.rapidml/com.reprezen.rapidml

protected Collection<UserDefinedType> _getUsedUserDefinedTypes(final ServiceDataResource resource) {
 final Function1<PropertyRealization, Boolean> _function = (PropertyRealization e) -> {
  boolean _hasReferenceTreatment = this.hasReferenceTreatment(resource, e.getBaseProperty());
  return Boolean.valueOf((!_hasReferenceTreatment));
 };
 final Function1<PropertyRealization, Collection<UserDefinedType>> _function_1 = (PropertyRealization it) -> {
  return this.getUsedUserDefinedTypes(it.getBaseProperty());
 };
 Iterable<UserDefinedType> _flatten = Iterables.<UserDefinedType>concat(IterableExtensions.<PropertyRealization, Collection<UserDefinedType>>map(IterableExtensions.<PropertyRealization>filter(resource.getIncludedProperties(), _function), _function_1));
 final Function1<ReferenceEmbed, Collection<UserDefinedType>> _function_2 = (ReferenceEmbed it) -> {
  return this.getUsedUserDefinedTypes(it);
 };
 Iterable<UserDefinedType> _flatten_1 = Iterables.<UserDefinedType>concat(IterableExtensions.<ReferenceEmbed, Collection<UserDefinedType>>map(Iterables.<ReferenceEmbed>filter(resource.getReferenceTreatments(), ReferenceEmbed.class), _function_2));
 return IterableExtensions.<UserDefinedType>toSet(Iterables.<UserDefinedType>concat(_flatten, _flatten_1));
}

相关文章