gpt4 book ai didi

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

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

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

XmlWriter.simpleElement介绍

[英]Emits a simple element (without child elements).
[中]发射一个简单元素(没有子元素)。

代码示例

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

/** Generates a gm:status tag if the status name is set. */
public void generate(XmlWriter w, ExtensionProfile extProfile)
  throws IOException {
 w.simpleElement(GoogleBaseNamespaces.GM, "disapproved", null, null);
}

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

/** Generates a gm:status tag if the status name is set. */
public void generate(XmlWriter w, ExtensionProfile extProfile)
  throws IOException {
 w.simpleElement(GoogleBaseNamespaces.GM, "disapproved", null, null);
}

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

/**
 * Emits a simple element (without child elements).
 *
 * @param name element name.
 * @param value element value. Can be {@code null}.
 * @throws  IOException thrown by the underlying writer.
 */
public void simpleElement(String name, String value) throws IOException {
 simpleElement(null, name, null, value);
}

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

/**
 * Emits a simple element (without child elements).
 *
 * @param name element name.
 * @param value element value. Can be {@code null}.
 * @throws  IOException thrown by the underlying writer.
 */
public void simpleElement(String name, String value) throws IOException {
 simpleElement(null, name, null, value);
}

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

public void generate(XmlWriter w, ExtensionProfile extProfile)
  throws IOException {
 w.simpleElement(Namespaces.gNs, "recurrence", null, value);
}

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

public void generate(XmlWriter w, ExtensionProfile extProfile)
  throws IOException {
 w.simpleElement(Namespaces.gNs, "recurrence", null, value);
}

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

/**
 * Writes this cell as XML, omitting any unspecified fields.
 */
public void generate(XmlWriter w, ExtensionProfile extProfile)
  throws IOException {
 w.simpleElement(Namespaces.gSpreadNs, TAG_NAME, null,
   String.valueOf(count));
}

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

/**
 * Writes this cell as XML, omitting any unspecified fields.
 */
public void generate(XmlWriter w, ExtensionProfile extProfile)
  throws IOException {
 w.simpleElement(Namespaces.gSpreadNs, TAG_NAME, null,
   String.valueOf(count));
}

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

/**
 * Writes this cell as XML, omitting any unspecified fields.
 */
public void generate(XmlWriter w, ExtensionProfile extProfile)
  throws IOException {
 w.simpleElement(Namespaces.gSpreadNs, TAG_NAME, null,
   String.valueOf(count));
}

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

/**
 * Writes this cell as XML, omitting any unspecified fields.
 */
public void generate(XmlWriter w, ExtensionProfile extProfile)
  throws IOException {
 w.simpleElement(Namespaces.gSpreadNs, TAG_NAME, null,
   String.valueOf(count));
}

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

@Override
public void generate(XmlWriter w, ExtensionProfile extProfile)
  throws IOException {
 ArrayList<XmlWriter.Attribute> attributes =
  new ArrayList<XmlWriter.Attribute>();
 if (this.name != null) {
  attributes.add(new XmlWriter.Attribute(ATTRIBUTE_NAME,
                      this.name));
 }
 w.simpleElement(Namespaces.gCSNs, EXTENSION_FILE,
         attributes, "");
}

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

public void generate(XmlWriter w, ExtensionProfile extProfile)
  throws IOException {
 w.simpleElement(GoogleBaseNamespaces.GM, ATTRIBUTE_NAME, 
   null, value.getTextValue());
}

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

@Override
public void generate(XmlWriter w, ExtensionProfile extProfile)
  throws IOException {
 ArrayList<XmlWriter.Attribute> attributes =
  new ArrayList<XmlWriter.Attribute>();
 if (this.name != null) {
  attributes.add(new XmlWriter.Attribute(ATTRIBUTE_NAME,
                      this.name));
 }
 w.simpleElement(Namespaces.gCSNs, EXTENSION_FILE,
         attributes, "");
}

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

public void generate(XmlWriter w, ExtensionProfile extProfile)
  throws IOException {
 w.simpleElement(GoogleBaseNamespaces.GM, ATTRIBUTE_NAME, 
   null, value.getTextValue());
}

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

/**
  * Generates a batch:operation element. 
  * 
  * @param w
  * @throws IOException
  */
 public void generateAtom(XmlWriter w) throws IOException {
  List<XmlWriter.Attribute> attrs = Collections
    .singletonList(new XmlWriter.Attribute("type", getName()));
  w.simpleElement(Namespaces.batchNs, "operation", attrs, null);
 }
}

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

/**
  * Generates a batch:operation element. 
  * 
  * @param w
  * @throws IOException
  */
 public void generateAtom(XmlWriter w) throws IOException {
  List<XmlWriter.Attribute> attrs = Collections
    .singletonList(new XmlWriter.Attribute("type", getName()));
  w.simpleElement(Namespaces.batchNs, "operation", attrs, null);
 }
}

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

/**
  * Generates a batch:operation element. 
  * 
  * @param w
  * @throws IOException
  */
 public void generateAtom(XmlWriter w) throws IOException {
  List<XmlWriter.Attribute> attrs = Collections
    .singletonList(new XmlWriter.Attribute("type", getName()));
  w.simpleElement(Namespaces.batchNs, "operation", attrs, null);
 }
}

代码示例来源: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();
}

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

/** 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();
}

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