gpt4 book ai didi

com.reprezen.rapidml.ZenModel.getSecuritySchemesLibrary()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-15 02:54:49 28 4
gpt4 key购买 nike

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

ZenModel.getSecuritySchemesLibrary介绍

[英]Returns the value of the 'Security Schemes Library' containment reference.

If the meaning of the 'Security Schemes Library' containment reference isn't clear, there really should be more of a description here...
[中]返回“Security Schemes Library”包含引用的值。
如果“Security Schemes Library”包含引用的含义不清楚,那么这里真的应该有更多的描述。。。

代码示例

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

public boolean hasSecuritySchemes(final ZenModel model) {
  boolean _xblockexpression = false;
  {
   final SecuritySchemeLibrary library = model.getSecuritySchemesLibrary();
   boolean _xifexpression = false;
   if ((library != null)) {
    boolean _isEmpty = library.getSecuritySchemes().isEmpty();
    _xifexpression = (!_isEmpty);
   } else {
    _xifexpression = false;
   }
   _xblockexpression = _xifexpression;
  }
  return _xblockexpression;
 }
}

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

public ArrayList<SecurityScheme> getAllUsedSecuritySchemes(final ZenModel model) {
 final ArrayList<SecurityScheme> result = Lists.<SecurityScheme>newArrayList();
 SecuritySchemeLibrary _securitySchemesLibrary = model.getSecuritySchemesLibrary();
 boolean _tripleNotEquals = (_securitySchemesLibrary != null);
 if (_tripleNotEquals) {
  result.addAll(model.getSecuritySchemesLibrary().getSecuritySchemes());
 }
 final Function1<HasSecurityValue, EList<AuthenticationMethod>> _function = (HasSecurityValue it) -> {
  return it.getSecuredBy();
 };
 final Consumer<AuthenticationMethod> _function_1 = (AuthenticationMethod it) -> {
  result.add(it.getScheme());
 };
 Iterables.<AuthenticationMethod>concat(ListExtensions.<HasSecurityValue, EList<AuthenticationMethod>>map(IteratorExtensions.<HasSecurityValue>toList(Iterators.<HasSecurityValue>filter(model.eAllContents(), HasSecurityValue.class)), _function)).forEach(_function_1);
 return result;
}

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

/**
 * @param importDeclaration
 *            import declaration
 * @return list of namespaces that available from imported model
 */
public static List<String> getImportedNamespaces(ImportDeclaration importDeclaration) {
  ZenModel zenModel = importDeclaration.getImportedModel();
  List<String> result = new ArrayList<>();
  if (zenModel != null) {
    String namespace = ((zenModel.getNamespace() != null) ? zenModel.getNamespace() + "." : "")//
        + zenModel.getName();
 
    result.addAll(zenModel.getResourceAPIs().stream()//
        .map(rapi -> namespace + "." + rapi.getName()).collect(Collectors.toList()));
    result.addAll(zenModel.getDataModels().stream()//
        .map(dm -> namespace + "." + dm.getName()).collect(Collectors.toList()));
    Optional.ofNullable(zenModel.getSecuritySchemesLibrary())//
        .filter(it -> !it.getSecuritySchemes().isEmpty())//
        .ifPresent(it -> result.add(namespace + "." + it.getName()));
  }
  return Collections.unmodifiableList(result);
}

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

&& (context instanceof HasSecurityValue)) {
ZenModel model = context instanceof ZenModel ? (ZenModel) context : RapidmlModelUtils.getZenModel(context);
SecuritySchemeLibrary securitySchemeLibrary = model.getSecuritySchemesLibrary();
if (securitySchemeLibrary != null && securitySchemeLibrary.getName() != null && model.getName() != null) {
  QualifiedName importedNamespace = QualifiedName.create(model.getName(),

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

public String generateSecuritySchemes(final ZenModel model) {
 StringConcatenation _builder = new StringConcatenation();
  SecuritySchemeLibrary _securitySchemesLibrary = model.getSecuritySchemesLibrary();
  boolean _tripleNotEquals = (_securitySchemesLibrary != null);
  if (_tripleNotEquals) {
   _builder.append("\t\t\t");
   _builder.append("<h3 class=\"panel-title\">");
   String _name = model.getSecuritySchemesLibrary().getName();
   _builder.append(_name, "\t\t\t");
   _builder.append("</h3>");
   _builder.newLine();
    EList<SecurityScheme> _securitySchemes = model.getSecuritySchemesLibrary().getSecuritySchemes();
    for(final SecurityScheme securityScheme : _securitySchemes) {
     _builder.append("\t  ");

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com