com.reprezen.rapidml.URI类的使用及代码示例

x33g5p2x  于2022-02-01 转载在 其他  
字(8.5k)|赞(0)|评价(0)|浏览(192)

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

URI介绍

[英]A representation of the model object 'URI'.

The following features are supported:

  • com.reprezen.rapidml.URI#getSegments
  • com.reprezen.rapidml.URI#getUriParameters
    [中]模型对象“URI”的表示形式。
    支持以下功能:
    *com。雷普雷岑。rapidml。URI#getSegments
    *com。雷普雷岑。rapidml。URI#GetUri参数

代码示例

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

private List<MatrixParameter> getMatrixParameters(final ServiceDataResource aResource) {
 List<MatrixParameter> _xifexpression = null;
 com.reprezen.rapidml.URI _uRI = aResource.getURI();
 boolean _tripleNotEquals = (_uRI != null);
 if (_tripleNotEquals) {
  _xifexpression = IterableExtensions.<MatrixParameter>toList(Iterables.<MatrixParameter>filter(aResource.getURI().getUriParameters(), MatrixParameter.class));
 } else {
  _xifexpression = Collections.<MatrixParameter>emptyList();
 }
 return _xifexpression;
}

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

private String _getURISegmentId(final ServiceDataResource aResource, final MatrixParameter param) {
 String _name = aResource.getName();
 String _plus = (_name + ".URI.");
 int _size = aResource.getURI().getSegments().size();
 int _indexOf = this.getMatrixParameters(aResource).indexOf(param);
 int _plus_1 = (_size + _indexOf);
 int _plus_2 = (_plus_1 + 1);
 return (_plus + Integer.valueOf(_plus_2));
}

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

/**
 * This scope is used for template proposals reference variables lookup.
 */
IScope scope_PropertyReference_conceptualFeature(final com.reprezen.rapidml.URI uri, EReference eRef) {
  if (uri.eContainer() instanceof ServiceDataResource) {
    return getScopeForDataResource((ServiceDataResource) uri.eContainer());
  }
  return Scopes.scopeFor(Collections.<EObject>emptyList());
}

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

if (_tripleNotEquals) {
  EList<URISegment> _segments = aResource.getURI().getSegments();
  boolean _hasElements = false;
  for(final URISegment segment : _segments) {
 _builder.append("            ");
  if (((!aResource.getURI().getSegments().isEmpty()) && (!matrixParams.isEmpty()))) {
   _builder.append(",");
 _builder.append("            ");
  if ((((!this.getMatrixParameters(aResource).isEmpty()) || (!aResource.getURI().getSegments().isEmpty())) && 
   (!params.isEmpty()))) {
   _builder.append(",");
if (_tripleNotEquals_1) {
  EList<URIParameter> _uriParameters = aResource.getURI().getUriParameters();
  boolean _hasElements_1 = false;
  for(final URIParameter aParameter : _uriParameters) {
 _builder.append("     ");
  if (((!aResource.getURI().getUriParameters().isEmpty()) && (!parameters.isEmpty()))) {
   _builder.append(", ");

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

public static List<PrimitiveProperty> getMandatoryProperties(ObjectRealization includedProperties) {
  List<PrimitiveProperty> result = new ArrayList<>();
  RealizationContainer realizationContainer = includedProperties.getRealizationContainer();
  if (realizationContainer instanceof ResourceDefinition) {
    ResourceDefinition resource = (ResourceDefinition) realizationContainer;
    if (resource.getURI() != null) {
      for (URIParameter param : resource.getURI().getUriParameters()) {
        if (param.getSourceReference() instanceof PropertyReference) {
          PropertyReference property = (PropertyReference) param.getSourceReference();
          result.add(property.getConceptualFeature());
        }
      }
    }
  }
  // TODO : for TypedMessage
  return Collections.unmodifiableList(result);
}

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

private String _getURISegmentId(final ServiceDataResource aResource, final CollectionParameter param) {
 String _name = aResource.getName();
 String _plus = (_name + ".URI.");
 int _size = aResource.getURI().getSegments().size();
 int _size_1 = this.getMatrixParameters(aResource).size();
 int _plus_1 = (_size + _size_1);
 int _indexOf = this.getCollectionParameters(aResource).indexOf(param);
 int _plus_2 = (_plus_1 + _indexOf);
 int _plus_3 = (_plus_2 + 1);
 return (_plus + Integer.valueOf(_plus_3));
}

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

public static ResourceDefinition getContainingResourceDefinition(SourceReference sourceReference) {
  Parameter containingParameter = sourceReference.getContainingParameter();
  if (containingParameter instanceof URIParameter) {
    return (ResourceDefinition) ((URIParameter) containingParameter).getContainingURI().eContainer();
  }
  if (containingParameter instanceof CollectionParameter) {
    return ((CollectionParameter) containingParameter).getContainingResourceDefinition();
  }
  if (containingParameter instanceof MessageParameter) {
    MessageParameter messageParemeter = (MessageParameter) containingParameter;
    return ((Method) messageParemeter.getContainingMessage().eContainer()).getContainingResourceDefinition();
  } // current metamodel doesn't support other kinds of containers
  return null;
}

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

EList<URIParameter> _uriParameters = method.getContainingResourceDefinition().getURI().getUriParameters();
if (_uriParameters != null) {
 _elvis = _uriParameters;

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

public static String getStringValue(Object object, StringBuffer result) {
  if (object instanceof HasStringValue) {
    if (object instanceof URI) {
      List<String> segments = new ArrayList<String>(((URI) object).getSegments().size());
      for (URISegment segment : ((URI) object).getSegments()) {
        segments.add(segment.toString());
      }
      return Joiner.on("/").join(segments); //$NON-NLS-1$
    } else if (object instanceof URISegmentWithParameter) {
      return "{" + ((URISegmentWithParameter) object).getName() + "}"; //$NON-NLS-1$//$NON-NLS-2$
    } else if (object instanceof URISegment) {
      return ((URISegment) object).getName();
    } else if (object instanceof PrimitiveProperty) {
      PrimitiveProperty prop = (PrimitiveProperty) object;
      result.append(" (name: "); //$NON-NLS-1$
      result.append(prop.getName());
      result.append(", cardinality: "); //$NON-NLS-1$
      result.append(prop.getCardinality());
      result.append(", type: "); //$NON-NLS-1$
      result.append(prop.getType());
      result.append(')');
      return result.toString();
    } else {
      return null;
    }
  }
  return object.toString();
}

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

StringConcatenation _builder = new StringConcatenation();
 Iterable<TemplateParameter> _filter = Iterables.<TemplateParameter>filter(resourceDef.getURI().getUriParameters(), TemplateParameter.class);
 for(final TemplateParameter param : _filter) {
  _builder.append("<param id=\"");
 Iterable<MatrixParameter> _filter_1 = Iterables.<MatrixParameter>filter(resourceDef.getURI().getUriParameters(), MatrixParameter.class);
 for(final MatrixParameter param_1 : _filter_1) {
  _builder.append("<param id=\"");

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

private String _getURISegmentId(final ServiceDataResource aResource, final URISegment segment) {
 String _name = aResource.getName();
 String _plus = (_name + ".URI.");
 int _indexOf = aResource.getURI().getSegments().indexOf(segment);
 int _plus_1 = (_indexOf + 1);
 return (_plus + Integer.valueOf(_plus_1));
}

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

return Boolean.valueOf((_sourceReference instanceof PropertyReference));
};
Iterable<URIParameter> _filter = IterableExtensions.<URIParameter>filter(link.getTargetResource().getURI().getUriParameters(), _function);
boolean _hasElements = false;
for(final URIParameter param : _filter) {

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

attrs.add(methodAttr);
final String uri = IterableExtensions.join(method.getContainingResourceDefinition().getURI().getSegments(), "/");
StringConcatenation _builder = new StringConcatenation();
_builder.append("Route(\"");

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

EList<URIParameter> _uriParameters = method.getContainingResourceDefinition().getURI().getUriParameters();
if (_uriParameters != null) {
 _elvis = _uriParameters;

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

EList<URIParameter> _uriParameters = null;
if (_uRI!=null) {
 _uriParameters=_uRI.getUriParameters();

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

((ServiceDataResource) res).getURI().getUriParameters().forEach(_function);

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

_builder.newLine();
 if (((resource.getURI() != null) && (!resource.getURI().getUriParameters().isEmpty()))) {
  _builder.append("  ");
  _builder.append("<h4>Parameters</h4>");
  _builder.newLine();
  _builder.append("  ");
  CharSequence _generateParams = this.generateParams(resource.getURI().getUriParameters());
  _builder.append(_generateParams, "  ");
  _builder.newLineIfNotEmpty();

相关文章