gpt4 book ai didi

com.google.gdata.util.common.xml.XmlNamespace.equals()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-19 18:44:40 27 4
gpt4 key购买 nike

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

XmlNamespace.equals介绍

[英]Returns true if the target object is a Namespace instance that has a matching namespace URI and prefix (if specified).
[中]如果目标对象是具有匹配命名空间URI和前缀(如果指定)的命名空间实例,则返回true。

代码示例

代码示例来源:origin: com.mulesoft.google/google-api-gdata

/**
 * Returns {@code true} if this qname has a namespace value that will match
 * any namespace.
 *
 * @see ANY_NAMESPACE
 */
public boolean matchesAnyNamespace() {
 return ANY_NAMESPACE.equals(namespace);
}

代码示例来源:origin: com.google.gdata/gdata-java-client

/**
 * Returns {@code true} if this qname has a namespace value that will match
 * any namespace.
 *
 * @see ANY_NAMESPACE
 */
public boolean matchesAnyNamespace() {
 return ANY_NAMESPACE.equals(namespace);
}

代码示例来源:origin: com.google.gdata/gdata-core-1.0

/**
 * Returns {@code true} if this qname has a namespace value that will match
 * any namespace.
 *
 * @see ANY_NAMESPACE
 */
public boolean matchesAnyNamespace() {
 return ANY_NAMESPACE.equals(namespace);
}

代码示例来源:origin: com.google.gdata/gdata-core-1.0

public int compareTo(QName o) {

  if (getNs() == null) {
   if (o.getNs() != null) {
    return -1;
   }
  } else {
   if (o.getNs() == null) {
    return 1;
   }
   int result = getNs().getUri().compareTo(o.getNs().getUri());
   if (result != 0) {
    if (ANY_NAMESPACE.equals(o.getNs())) {
     return -1;
    }
    return result;
   }
  }
  String localName = getLocalName();
  int compare = localName.compareTo(o.getLocalName());
  if (compare != 0 && ANY_LOCALNAME.equals(localName)) {
   return -1;
  }
  return compare;
 }
}

代码示例来源:origin: com.google.gdata/gdata-java-client

public int compareTo(QName o) {

  if (getNs() == null) {
   if (o.getNs() != null) {
    return -1;
   }
  } else {
   if (o.getNs() == null) {
    return 1;
   }
   int result = getNs().getUri().compareTo(o.getNs().getUri());
   if (result != 0) {
    if (ANY_NAMESPACE.equals(o.getNs())) {
     return -1;
    }
    return result;
   }
  }
  String localName = getLocalName();
  int compare = localName.compareTo(o.getLocalName());
  if (compare != 0 && ANY_LOCALNAME.equals(localName)) {
   return -1;
  }
  return compare;
 }
}

代码示例来源:origin: com.mulesoft.google/google-api-gdata

public int compareTo(QName o) {

  if (getNs() == null) {
   if (o.getNs() != null) {
    return -1;
   }
  } else {
   if (o.getNs() == null) {
    return 1;
   }
   int result = getNs().getUri().compareTo(o.getNs().getUri());
   if (result != 0) {
    if (ANY_NAMESPACE.equals(o.getNs())) {
     return -1;
    }
    return result;
   }
  }
  String localName = getLocalName();
  int compare = localName.compareTo(o.getLocalName());
  if (compare != 0 && ANY_LOCALNAME.equals(localName)) {
   return -1;
  }
  return compare;
 }
}

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