gpt4 book ai didi

org.apache.chemistry.opencmis.commons.impl.XMLUtils.write()方法的使用及代码示例

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

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

XMLUtils.write介绍

[英]Writes a Boolean tag.
[中]写入布尔标记。

代码示例

代码示例来源:origin: org.apache.chemistry.opencmis/chemistry-opencmis-android-client

/**
 * Writes a Boolean tag.
 */
public static void write(XmlSerializer writer, String prefix, String namespace, String tag, Boolean value)
    throws IOException {
  assert writer != null;
  if (value == null) {
    return;
  }
  write(writer, prefix, namespace, tag, value ? "true" : "false");
}

代码示例来源:origin: org.apache.chemistry.opencmis/chemistry-opencmis-commons-impl

/**
 * Writes a Boolean tag.
 */
public static void write(XMLStreamWriter writer, String prefix, String namespace, String tag, Boolean value)
    throws XMLStreamException {
  assert writer != null;
  if (value == null) {
    return;
  }
  write(writer, prefix, namespace, tag, value ? "true" : "false");
}

代码示例来源:origin: org.apache.chemistry.opencmis/chemistry-opencmis-commons-impl

/**
 * Writes an Integer tag.
 */
public static void write(XMLStreamWriter writer, String prefix, String namespace, String tag, BigInteger value)
    throws XMLStreamException {
  assert writer != null;
  if (value == null) {
    return;
  }
  write(writer, prefix, namespace, tag, value.toString());
}

代码示例来源:origin: org.apache.chemistry.opencmis/chemistry-opencmis-android-client

/**
 * Writes an Integer tag.
 */
public static void write(XmlSerializer writer, String prefix, String namespace, String tag, BigInteger value)
    throws IOException {
  assert writer != null;
  if (value == null) {
    return;
  }
  write(writer, prefix, namespace, tag, value.toString());
}

代码示例来源:origin: org.apache.chemistry.opencmis/chemistry-opencmis-commons-impl

/**
 * Writes a Decimal tag.
 */
public static void write(XMLStreamWriter writer, String prefix, String namespace, String tag, BigDecimal value)
    throws XMLStreamException {
  assert writer != null;
  if (value == null) {
    return;
  }
  write(writer, prefix, namespace, tag, value.toPlainString());
}

代码示例来源:origin: org.apache.chemistry.opencmis/chemistry-opencmis-android-client

/**
 * Writes a Decimal tag.
 */
public static void write(XmlSerializer writer, String prefix, String namespace, String tag, BigDecimal value)
    throws IOException {
  assert writer != null;
  if (value == null) {
    return;
  }
  write(writer, prefix, namespace, tag, value.toString());
}

代码示例来源:origin: org.apache.chemistry.opencmis/chemistry-opencmis-server-bindings

public void writeUriTemplate(String template, String type, String mediatype) throws XMLStreamException {
    XMLStreamWriter xsw = getWriter();

    xsw.writeStartElement(XMLConstants.PREFIX_RESTATOM, "uritemplate", XMLConstants.NAMESPACE_RESTATOM);
    XMLUtils.write(xsw, XMLConstants.PREFIX_RESTATOM, XMLConstants.NAMESPACE_RESTATOM, "template", template);
    XMLUtils.write(xsw, XMLConstants.PREFIX_RESTATOM, XMLConstants.NAMESPACE_RESTATOM, "type", type);
    XMLUtils.write(xsw, XMLConstants.PREFIX_RESTATOM, XMLConstants.NAMESPACE_RESTATOM, "mediatype", mediatype);
    xsw.writeEndElement();
  }
}

代码示例来源:origin: org.apache.chemistry.opencmis/chemistry-opencmis-server-bindings

/**
 * Writes an Atom updated tag.
 */
public void writeUpdated(GregorianCalendar updated) throws XMLStreamException {
  XMLUtils.write(getWriter(), XMLConstants.PREFIX_APP, XMLConstants.NAMESPACE_APP, "edited", updated);
  XMLUtils.write(getWriter(), XMLConstants.PREFIX_ATOM, XMLConstants.NAMESPACE_ATOM, "updated", updated);
}

代码示例来源:origin: org.apache.chemistry.opencmis/chemistry-opencmis-server-bindings

/**
 * Writes a CMIS relativePathSegment tag.
 */
public void writeRelativePathSegment(String relativePathSegment) throws XMLStreamException {
  XMLUtils.write(getWriter(), XMLConstants.PREFIX_RESTATOM, XMLConstants.NAMESPACE_RESTATOM,
      "relativePathSegment", relativePathSegment);
}

代码示例来源:origin: org.apache.chemistry.opencmis/chemistry-opencmis-server-bindings

/**
 * Writes an Atom id tag.
 */
public void writeId(String id) throws XMLStreamException {
  XMLUtils.write(getWriter(), XMLConstants.PREFIX_ATOM, XMLConstants.NAMESPACE_ATOM, "id", id);
}

代码示例来源:origin: org.apache.chemistry.opencmis/chemistry-opencmis-server-bindings

/**
 * Writes a CMIS pathSegment tag.
 */
public void writePathSegment(String pathSegment) throws XMLStreamException {
  XMLUtils.write(getWriter(), XMLConstants.PREFIX_RESTATOM, XMLConstants.NAMESPACE_RESTATOM, "pathSegment",
      pathSegment);
}

代码示例来源:origin: org.apache.chemistry.opencmis/chemistry-opencmis-server-bindings

/**
 * Writes an Atom author tag.
 */
public void writeAuthor(String author) throws XMLStreamException {
  XMLStreamWriter xsw = getWriter();
  xsw.writeStartElement(XMLConstants.PREFIX_ATOM, "author", XMLConstants.NAMESPACE_ATOM);
  XMLUtils.write(xsw, XMLConstants.PREFIX_ATOM, XMLConstants.NAMESPACE_ATOM, "name", author);
  xsw.writeEndElement();
}

代码示例来源:origin: org.apache.chemistry.opencmis/chemistry-opencmis-android-client

/**
 * Writes a DateTime tag.
 */
public static void write(XmlSerializer writer, String prefix, String namespace, String tag, GregorianCalendar value)
    throws IOException {
  assert writer != null;
  if (value == null) {
    return;
  }
  write(writer, prefix, namespace, tag, DateTimeHelper.formatXmlDateTime(value));
}

代码示例来源:origin: org.apache.chemistry.opencmis/chemistry-opencmis-server-bindings

/**
 * Writes an Atom title tag.
 */
public void writeTitle(String title) throws XMLStreamException {
  XMLUtils.write(getWriter(), XMLConstants.PREFIX_ATOM, XMLConstants.NAMESPACE_ATOM, "title", title);
}

代码示例来源:origin: org.apache.chemistry.opencmis/chemistry-opencmis-server-bindings

/**
 * Writes an Atom published tag.
 */
public void writePublished(GregorianCalendar published) throws XMLStreamException {
  XMLUtils.write(getWriter(), XMLConstants.PREFIX_ATOM, XMLConstants.NAMESPACE_ATOM, "published", published);
}

代码示例来源:origin: org.apache.chemistry.opencmis/chemistry-opencmis-commons-impl

/**
 * Writes a DateTime tag.
 */
public static void write(XMLStreamWriter writer, String prefix, String namespace, String tag,
    GregorianCalendar value) throws XMLStreamException {
  assert writer != null;
  if (value == null) {
    return;
  }
  write(writer, prefix, namespace, tag, DateTimeHelper.formatXmlDateTime(value));
}

代码示例来源:origin: org.apache.chemistry.opencmis/chemistry-opencmis-server-bindings

/**
 * Writes a CMIS numItems tag.
 */
public void writeNumItems(BigInteger numItems) throws XMLStreamException {
  XMLUtils.write(getWriter(), XMLConstants.PREFIX_RESTATOM, XMLConstants.NAMESPACE_RESTATOM, "numItems", numItems);
}

代码示例来源:origin: org.apache.chemistry.opencmis/chemistry-opencmis-server-bindings

public void startWorkspace(String title) throws XMLStreamException {
  XMLStreamWriter xsw = getWriter();
  xsw.writeStartElement(XMLConstants.PREFIX_APP, "workspace", XMLConstants.NAMESPACE_APP);
  XMLUtils.write(xsw, XMLConstants.PREFIX_ATOM, XMLConstants.NAMESPACE_ATOM, "title", title);
}

代码示例来源:origin: org.apache.chemistry.opencmis/chemistry-opencmis-server-bindings

/**
 * Writes an Atom updated tag.
 */
public void writeUpdated(long updated) throws XMLStreamException {
  String updatedStr = DateTimeHelper.formatXmlDateTime(updated);
  XMLUtils.write(getWriter(), XMLConstants.PREFIX_APP, XMLConstants.NAMESPACE_APP, "edited", updatedStr);
  XMLUtils.write(getWriter(), XMLConstants.PREFIX_ATOM, XMLConstants.NAMESPACE_ATOM, "updated", updatedStr);
}

代码示例来源:origin: org.apache.chemistry.opencmis/chemistry-opencmis-server-bindings

/**
 * Writes an Atom published tag.
 */
public void writePublished(long published) throws XMLStreamException {
  XMLUtils.write(getWriter(), XMLConstants.PREFIX_ATOM, XMLConstants.NAMESPACE_ATOM, "published",
      DateTimeHelper.formatXmlDateTime(published));
}

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