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

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

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

URI.getSegments介绍

[英]Returns the value of the 'Segments' containment reference list. The list contents are of type com.reprezen.rapidml.URISegment.

If the meaning of the 'Segments' containment reference list isn't clear, there really should be more of a description here...
[中]返回“Segments”包含引用列表的值。列表内容为com类型。雷普雷岑。rapidml。URISegment。
如果“Segments”包含参考列表的含义不清楚,这里真的应该有更多的描述。。。

代码示例

代码示例来源: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.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 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-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-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-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(",");

相关文章

微信公众号

最新文章

更多