gpt4 book ai didi

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

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

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

XmlNamespace.getUri介绍

[英]Returns the fully qualified URI for the namespace.
[中]返回命名空间的完全限定URI。

代码示例

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

/**
 * Defines a natural ordering for ExtensionDescription based upon
 * the qualified name of the mapped XML element.  Elements with no
 * namespace are considered to precede all others.
 */
public int compareTo(ExtensionDescription desc) {
 String ns1 = namespace.getUri();
 if (ns1 == null) {
  ns1 = "";
 }
 String ns2 = desc.namespace.getUri();
 if (ns2 == null) {
  ns2 = "";
 }
 int nscomp = ns1.compareTo(ns2);
 if (nscomp != 0) {
  return nscomp;
 }
 return localName.compareTo(desc.localName);
}

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

@Override
 public XmlParser.ElementHandler getChildHandler(String namespace,
   String localName, Attributes attrs)
   throws ParseException, IOException {
  if (namespace.equals(atomPubNs.getUri())) {
   if (localName.equals("draft")) {
    return new DraftHandler();
   }
  } else {
   return super.getChildHandler(namespace, localName, attrs);
  }
  return null;
 }
}

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

@Override
 public XmlParser.ElementHandler getChildHandler(String namespace,
   String localName, Attributes attrs)
   throws ParseException, IOException {
  if (namespace.equals(atomPubNs.getUri())) {
   if (localName.equals("draft")) {
    return new DraftHandler();
   }
  } else {
   return super.getChildHandler(namespace, localName, attrs);
  }
  return null;
 }
}

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

@Override
 public XmlParser.ElementHandler getChildHandler(String namespace,
   String localName, Attributes attrs)
   throws ParseException, IOException {
  if (namespace.equals(atomPubNs.getUri())) {
   if (localName.equals("draft")) {
    return new DraftHandler();
   }
  } else {
   return super.getChildHandler(namespace, localName, attrs);
  }
  return null;
 }
}

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

/**
 * Parses a Categories element using data read from the specified parser
 * instance.
 * 
 * @param extProfile Extension profile.
 * @param parser XML input parse.
 */
public void parseAtom(ExtensionProfile extProfile,
           XmlParser parser) throws IOException,
                      ParseException {
 Handler handler = new Handler(extProfile, null);
 parser.parse(handler, atomPubNs.getUri(), "categories");
}

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

@Override
 public XmlParser.ElementHandler getChildHandler(String namespace,
                         String localName,
                         Attributes attrs)
   throws ParseException, IOException {
  if (namespace.equals(atomPubNs.getUri())) {
   if (localName.equals("workspace")) {
    Workspace workspace = new Workspace();
    workspaces.add(workspace);
    return workspace.new Handler(extProfile, attrs);
   }
  } 
  return super.getChildHandler(namespace, localName, attrs);
 }
}

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

@Override
 public XmlParser.ElementHandler getChildHandler(String namespace,
                         String localName,
                         Attributes attrs)
   throws ParseException, IOException {
  if (namespace.equals(atomPubNs.getUri())) {
   if (localName.equals("workspace")) {
    Workspace workspace = new Workspace();
    workspaces.add(workspace);
    return workspace.new Handler(extProfile, attrs);
   }
  } 
  return super.getChildHandler(namespace, localName, attrs);
 }
}

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

/**
 * Parses a Categories element using data read from the specified parser
 * instance.
 * 
 * @param extProfile Extension profile.
 * @param parser XML input parse.
 */
public void parseAtom(ExtensionProfile extProfile,
           XmlParser parser) throws IOException,
                      ParseException {
 Handler handler = new Handler(extProfile, null);
 parser.parse(handler, atomPubNs.getUri(), "categories");
}

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

@Override
 public XmlParser.ElementHandler getChildHandler(String namespace,
                         String localName,
                         Attributes attrs)
   throws ParseException, IOException {
  if (namespace.equals(atomPubNs.getUri())) {
   if (localName.equals("workspace")) {
    Workspace workspace = new Workspace();
    workspaces.add(workspace);
    return workspace.new Handler(extProfile, attrs);
   }
  } 
  return super.getChildHandler(namespace, localName, attrs);
 }
}

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

/**
 * Parses a Categories element using data read from the specified parser
 * instance.
 * 
 * @param extProfile Extension profile.
 * @param parser XML input parse.
 */
public void parseAtom(ExtensionProfile extProfile,
           XmlParser parser) throws IOException,
                      ParseException {
 Handler handler = new Handler(extProfile, null);
 parser.parse(handler, atomPubNs.getUri(), "categories");
}

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

@Override
public int hashCode() {
 if (getNs() == null) {
  return getLocalName().hashCode();
 }
 return getNs().getUri().hashCode() * 13 + getLocalName().hashCode();
}

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

@Override
public int hashCode() {
 if (getNs() == null) {
  return getLocalName().hashCode();
 }
 return getNs().getUri().hashCode() * 13 + getLocalName().hashCode();
}

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

@Override
public int hashCode() {
 if (getNs() == null) {
  return getLocalName().hashCode();
 }
 return getNs().getUri().hashCode() * 13 + getLocalName().hashCode();
}

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

/**
 * Parses XML from an InputStream.
 *
 * @param   extProfile
 *            extension profile
 *
 * @param   inputStream
 *            XML input stream
 *
 * @throws   IOException
 *
 * @throws   ParseException
 */
public void parse(ExtensionProfile extProfile, InputStream inputStream)
  throws IOException, ParseException {
 new XmlParser().parse(inputStream, new Handler(extProfile),
            atomPubNs.getUri(), "service");
}

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

@Override
public boolean equals(Object other) {
 if (!(other instanceof QName)) {
  return false;
 }
 QName otherQName = (QName) other;
 if (this.getNs() == null && otherQName.getNs() == null) {
  return getLocalName().equals(otherQName.getLocalName());
 }
 if (this.getNs() != null && otherQName.getNs() != null) {
  return this.getNs().getUri().equals(otherQName.getNs().getUri())
      && getLocalName().equals(otherQName.getLocalName());
 }
 return false;
}

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

@Override
public boolean equals(Object other) {
 if (!(other instanceof QName)) {
  return false;
 }
 QName otherQName = (QName) other;
 if (this.getNs() == null && otherQName.getNs() == null) {
  return getLocalName().equals(otherQName.getLocalName());
 }
 if (this.getNs() != null && otherQName.getNs() != null) {
  return this.getNs().getUri().equals(otherQName.getNs().getUri())
      && getLocalName().equals(otherQName.getLocalName());
 }
 return false;
}

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

@Override
public boolean equals(Object other) {
 if (!(other instanceof QName)) {
  return false;
 }
 QName otherQName = (QName) other;
 if (this.getNs() == null && otherQName.getNs() == null) {
  return getLocalName().equals(otherQName.getLocalName());
 }
 if (this.getNs() != null && otherQName.getNs() != null) {
  return this.getNs().getUri().equals(otherQName.getNs().getUri())
      && getLocalName().equals(otherQName.getLocalName());
 }
 return false;
}

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

/**
 * Parses XML from an InputStream.
 *
 * @param   extProfile
 *            extension profile
 *
 * @param   inputStream
 *            XML input stream
 *
 * @throws   IOException
 *
 * @throws   ParseException
 */
public void parse(ExtensionProfile extProfile, InputStream inputStream)
  throws IOException, ParseException {
 new XmlParser().parse(inputStream, new Handler(extProfile),
            atomPubNs.getUri(), "service");
}

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

/**
 * Parses XML from a Reader.
 *
 * @param   extProfile
 *            extension profile
 *
 * @param   reader
 *            XML reader
 *
 * @throws   IOException
 *
 * @throws   ParseException
 */
public void parse(ExtensionProfile extProfile, Reader reader)
  throws IOException, ParseException {
 new XmlParser().parse(reader, new Handler(extProfile),
            atomPubNs.getUri(), "service");
}

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

/**
 * Parses XML from an InputStream.
 *
 * @param   extProfile
 *            extension profile
 *
 * @param   inputStream
 *            XML input stream
 *
 * @throws   IOException
 *
 * @throws   ParseException
 */
public void parse(ExtensionProfile extProfile, InputStream inputStream)
  throws IOException, ParseException {
 new XmlParser().parse(inputStream, new Handler(extProfile),
            atomPubNs.getUri(), "service");
}

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