org.eclipse.emf.common.util.URI.query()方法的使用及代码示例

x33g5p2x  于2022-01-31 转载在 其他  
字(5.0k)|赞(0)|评价(0)|浏览(71)

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

URI.query介绍

[英]If this is a hierarchical URI with a query component, returns it; null otherwise.
[中]如果这是带有查询组件的分层URI,则返回它;null否则。

代码示例

代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.eclipse.emf.common

@Override
public String query()
{
 return uri.query();
}

代码示例来源:origin: fr.inria.atlanmod.neoemf/neoemf-core

@Override
public String query() {
  return internalUri.query();
}

代码示例来源:origin: atlanmod/NeoEMF

@Override
public String query() {
  return base.query();
}

代码示例来源:origin: at.bestsolution.efxclipse.rt/org.eclipse.fx.ui.workbench.fx

@Override
public @Nullable String query() {
  return this.uri.query();
}

代码示例来源:origin: org.geoserver/gs-wfs

@Override
public boolean canHandle(URI uri) {
  if (DISABLED) return false;
  // check if this uri is a reflective one
  if (uriIsReflective(uri)) {
    // it is, check the query string to determine if it is a DescribeFeatureType request
    String q = uri.query();
    if (q != null && !"".equals(q.trim())) {
      KvpMap kv = parseQueryString(q);
      if ("DescribeFeatureType".equalsIgnoreCase((String) kv.get("REQUEST"))
          || (uri.path().endsWith("DescribeFeatureType"))) {
        return true;
      }
    }
  }
  return false;
}

代码示例来源:origin: fr.inria.atlanmod.neoemf/neoemf-core

/**
 * Creates a new {@code PersistenceURI} from the given {@code uri} by checking the referenced file exists on the
 * file system.
 *
 * @param uri    the base {@link URI}
 * @param scheme the scheme to identify the {@link PersistenceBackendFactory} to use
 *
 * @return the created {@link URI}
 *
 * @throws NullPointerException if the {@code uri} is {@code null}
 */
@Nonnull
public static URI createFileURI(@Nonnull URI uri, @Nullable String scheme) {
  checkNotNull(uri);
  if (isNull(scheme)) {
    return createURI(uri);
  }
  else {
    return createURI(createHierarchicalURI(scheme, uri.authority(), uri.device(), uri.segments(), uri.query(), uri.fragment()));
  }
}

代码示例来源:origin: org.eclipse/org.eclipse.jem.util

protected URI normalizePluginURI(URI uri, String fragment) {
  if (uri.segmentCount() < 2)
    return uri; // Invalid, just let it go on.
  // See if already normalized.
  int u_scoreNdx = uri.segment(1).lastIndexOf('_');
  if (u_scoreNdx != -1) {
    // Not normalized. Remove the version to make it normalized.
    String[] segments = uri.segments();
    segments[1] = segments[1].substring(0, u_scoreNdx);
    return URI.createHierarchicalURI(uri.scheme(), uri.authority(), uri.device(), segments, uri.query(), fragment);
  } else
    return uri;
}

代码示例来源:origin: gov.nasa.jpl.imce/gov.nasa.jpl.magicdraw.projectUsageIntegrityChecker

String query = rURI.query();
if ("resource=com.nomagic.magicdraw.uml_model.shared_umodel".equals(query)) {
  for (EObject content : contents) {

代码示例来源:origin: com.b2international.snowowl/org.eclipse.emf.cdo

resourcePath = path.removeFirstSegments(1);
String query = uri.query();
if (query != null && query.length() != 0)

代码示例来源:origin: atlanmod/NeoEMF

@Nonnull
@Override
public URI createLocalUri(File file) {
  checkNotNull(file, "file");
  final URI fileUri = URI.createFileURI(file.getAbsolutePath());
  final URI uri = URI.createHierarchicalURI(scheme(),
      fileUri.authority(),
      fileUri.device(),
      fileUri.segments(),
      fileUri.query(),
      fileUri.fragment());
  return createLocalUri(uri);
}

代码示例来源:origin: fr.inria.atlanmod.neoemf/neoemf-core

@Override
public String toFileString() {
  URI uri = URI.createHierarchicalURI(
      FILE_SCHEME,
      internalUri.authority(),
      internalUri.device(),
      internalUri.segments(),
      internalUri.query(),
      internalUri.fragment());
  return uri.toFileString();
}

代码示例来源:origin: atlanmod/NeoEMF

@Override
public String toFileString() {
  return URI.createHierarchicalURI(
      SCHEME,
      base.authority(),
      base.device(),
      base.segments(),
      base.query(),
      base.fragment()
  ).toFileString();
}

代码示例来源:origin: org.eclipse.xtext/org.eclipse.xtext.util

/**
  * converts the file URIs with an absent authority to one with an empty
  */
 public URI withEmptyAuthority(final URI uri) {
  URI _xifexpression = null;
  if ((uri.isFile() && (uri.authority() == null))) {
   _xifexpression = URI.createHierarchicalURI(uri.scheme(), "", uri.device(), uri.segments(), uri.query(), uri.fragment());
  } else {
   _xifexpression = uri;
  }
  return _xifexpression;
 }
}

代码示例来源:origin: org.eclipse.emf/org.eclipse.emf.ecore

String query = uri.query();
URI trimmedURI = uri.trimFragment().trimQuery();
URI result = getInternalURIMap().getURI(trimmedURI);

代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.eclipse.emf.ecore

String query = uri.query();
URI trimmedURI = uri.trimFragment().trimQuery();
URI result = getInternalURIMap().getURI(trimmedURI);

代码示例来源:origin: org.eclipse.emf/org.eclipse.emf.ecore

String calendarType = formatURI.query();
if (calendarType == null)

代码示例来源:origin: com.b2international.snowowl/org.eclipse.emf.cdo

String query = getURI().query();
if (query != null && query.length() != 0)

代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.eclipse.emf.common

newQuery = base.query();

代码示例来源:origin: org.geoserver/gs-wfs

Catalog catalog = geoServer.getCatalog();
try {
  KvpMap kv = parseQueryString(uri.query());

代码示例来源:origin: at.bestsolution.efxclipse.eclipse/org.eclipse.emf.common

else if (hasPath == baseHasPath && segmentsEqual(base) && query == base.query())

相关文章

微信公众号

最新文章

更多