gpt4 book ai didi

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

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

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

XmlWriter.endElement介绍

[英]Ends the current element. No integrity checking is performed.
[中]结束当前元素。未执行完整性检查。

代码示例

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

/**
 * Closes everything that was opened by
 * {@link #generateFeedStart}.
 *
 * @param w
 * @throws IOException
 */
public void generateFeedEnd(XmlWriter w) throws IOException {
 w.endElement(Namespaces.atomNs, "feed");
}

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

/**
 * Closes everything that was opened by
 * {@link #generateFeedStart}.
 *
 * @param w
 * @throws IOException
 */
public void generateFeedEnd(XmlWriter w) throws IOException {
 w.endElement(Namespaces.atomNs, "feed");
}

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

/**
 * Closes everything that was opened by
 * {@link #generateFeedStart}.
 *
 * @param w
 * @throws IOException
 */
public void generateFeedEnd(XmlWriter w) throws IOException {
 w.endElement(Namespaces.atomNs, "feed");
}

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

@Override
 public void endElement(XmlWriter xw, Element e,
   ElementMetadata<?, ?> metadata) throws IOException {
  xw.endElement(Namespaces.rssNs, "channel");
  super.endElement(xw, e, metadata);
 }
});

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

@Override
public void generate(XmlWriter w, ExtensionProfile extProfile)
  throws IOException {
 List<XmlWriter.Attribute> attrs = new ArrayList<XmlWriter.Attribute>();
 if (limit != null) {
  attrs.add(new XmlWriter.Attribute("limit", limit.toString()));
 }
 generateStartElement(w, Namespaces.APPS_NAMESPACE, "quota", attrs, null);
 // Invoke ExtensionPoint.
 generateExtensions(w, extProfile);
 w.endElement(Namespaces.APPS_NAMESPACE, "quota");
}

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

/**
 * Generates the XML corresponding to this GeoPoint.
 */
@Override
public void generate(XmlWriter w, ExtensionProfile extProfile)
  throws IOException {
 generateStartElement(w, Namespaces.W3C_GEO_NAMESPACE, NAME, null, null);
 // Generate the inner extensions (lat, long).
 generateExtensions(w, extProfile);
 w.endElement(Namespaces.W3C_GEO_NAMESPACE, NAME);
}

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

@Override
 public void generate(XmlWriter w, ExtensionProfile p) throws IOException {

  generateStartElement(w, Namespaces.GEO_RSS_NAMESPACE, NAME, null, null);

  generateExtensions(w, p);

  w.endElement(Namespaces.GEO_RSS_NAMESPACE, NAME);
 }
}

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

@Override
public void generate(XmlWriter w, ExtensionProfile extensionProfile)
  throws IOException {
 generateStartElement(
   w, Namespaces.APPS_NAMESPACE, EXTENSION_LOCAL_NAME, null, null);
 // Invoke ExtensionPoint.
 generateExtensions(w, extensionProfile);
 w.endElement(Namespaces.APPS_NAMESPACE, EXTENSION_LOCAL_NAME);
}

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

@Override
public void generate(XmlWriter w, ExtensionProfile extensionProfile)
  throws IOException {
 generateStartElement(
   w, Namespaces.APPS_NAMESPACE, EXTENSION_LOCAL_NAME, null, null);
 // Invoke ExtensionPoint.
 generateExtensions(w, extensionProfile);
 w.endElement(Namespaces.APPS_NAMESPACE, EXTENSION_LOCAL_NAME);
}

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

@Override
 public void generate(XmlWriter w, ExtensionProfile p) throws IOException {

  generateStartElement(w, Namespaces.GEO_RSS_NAMESPACE, NAME, null, null);

  generateExtensions(w, p);

  w.endElement(Namespaces.GEO_RSS_NAMESPACE, NAME);
 }
}

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

@Override
public void generate(XmlWriter w, ExtensionProfile extProfile)
  throws IOException {
 w.startElement(Namespaces.EXIF_NAMESPACE, "tags", null, null);
 Collection<ExifTag> fields = getExifTags();
 for (ExifTag field : fields) {
  field.generate(w, extProfile);
 }
 w.endElement();
}

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

@Override
public void generate(XmlWriter w, ExtensionProfile extProfile)
  throws IOException {
 generateStartElement(w, Namespaces.gNs, "comments", null, null);
 if (feedLink != null) {
  feedLink.generate(w, extProfile);
 }
 // Invoke ExtensionPoint.
 generateExtensions(w, extProfile);
 w.endElement(Namespaces.gNs, "comments");
}

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

/** Generates an element closing tag containing an XML blob. */
 public static void endElement(XmlWriter w,
                XmlNamespace namespace,
                String elementName,
                XmlBlob xml) throws IOException {

  if (xml != null && xml.getBlob() != null) {
   w.innerXml(xml.getBlob());
  }

  w.endElement(namespace, elementName);
 }
}

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

/** Generates an element closing tag containing an XML blob. */
 public static void endElement(XmlWriter w,
                XmlNamespace namespace,
                String elementName,
                XmlBlob xml) throws IOException {

  if (xml != null && xml.getBlob() != null) {
   w.innerXml(xml.getBlob());
  }

  w.endElement(namespace, elementName);
 }
}

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

/** Generates an element closing tag containing an XML blob. */
 public static void endElement(XmlWriter w,
                XmlNamespace namespace,
                String elementName,
                XmlBlob xml) throws IOException {

  if (xml != null && xml.getBlob() != null) {
   w.innerXml(xml.getBlob());
  }

  w.endElement(namespace, elementName);
 }
}

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

@Override
public void generate(XmlWriter w, ExtensionProfile extProfile)
  throws IOException {
 generateStartElement(w, Namespaces.gNs, "comments", null, null);
 if (feedLink != null) {
  feedLink.generate(w, extProfile);
 }
 // Invoke ExtensionPoint.
 generateExtensions(w, extProfile);
 w.endElement(Namespaces.gNs, "comments");
}

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

@Override
public void generate(XmlWriter writer, ExtensionProfile profile)
  throws IOException {
 ExtensionDescription desc;
 
 desc = ExtensionDescription.getDefaultDescription(this.getClass());
 writer.startElement(desc.getNamespace(), desc.getLocalName(), null, null);
 generateExtensions(writer, profile);
 writer.endElement();
}

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

@Override
public void generate(XmlWriter writer, ExtensionProfile profile)
  throws IOException {
 ExtensionDescription desc;
 desc = ExtensionDescription.getDefaultDescription(this.getClass());
 writer.startElement(desc.getNamespace(), desc.getLocalName(), null, null);
 generateExtensions(writer, profile);
 writer.endElement();
}

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

/** Generates the atom representation for this tag. */
public void generateAtom(XmlWriter w, ExtensionProfile extProfile)
  throws IOException {
 w.startElement(Namespaces.getAtomPubNs(), "control", null, null);
 if (isDraft()) {
  w.simpleElement(Namespaces.getAtomPubNs(), "draft", null, "yes");
 }
 generateExtensions(w, extProfile);
 w.endElement();
}

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

/** Generates the atom representation for this tag. */
public void generateAtom(XmlWriter w, ExtensionProfile extProfile)
  throws IOException {
 w.startElement(Namespaces.getAtomPubNs(), "control", null, null);
 if (isDraft()) {
  w.simpleElement(Namespaces.getAtomPubNs(), "draft", null, "yes");
 }
 generateExtensions(w, extProfile);
 w.endElement();
}

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