本文整理了Java中org.apache.axiom.om.OMText.getContentID()
方法的一些代码示例,展示了OMText.getContentID()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。OMText.getContentID()
方法的具体详情如下:
包路径:org.apache.axiom.om.OMText
类名称:OMText
方法名:getContentID
[英]Gets the content id.
[中]获取内容id。
代码示例来源:origin: org.apache.ws.commons.axiom/om-aspects
public String getContentID() {
if (node instanceof OMText) {
return ((OMText)node).getContentID();
} else {
throw new IllegalStateException();
}
}
代码示例来源:origin: org.apache.ws.commons.axiom/axiom-impl
public String getContentID() {
if (node instanceof OMText) {
return ((OMText)node).getContentID();
} else {
throw new IllegalStateException();
}
}
代码示例来源:origin: org.apache.ws.commons.axiom/axiom-common-impl
public String getContentID() {
if (parser != null) {
if (dataHandlerReader != null) {
return dataHandlerReader.getContentID();
} else {
throw new IllegalStateException();
}
} else {
if (lastNode instanceof OMText) {
return ((OMText)lastNode).getContentID();
} else {
throw new IllegalStateException();
}
}
}
代码示例来源:origin: org.apache.ws.commons.axiom/axiom-api
/**
* @deprecated
* Serialization code should use
* {@link XMLStreamWriterUtils#writeDataHandler(XMLStreamWriter, DataHandler, String, boolean)}
* or {@link XMLStreamWriterUtils#writeDataHandler(XMLStreamWriter, DataHandlerProvider, String, boolean)}
* to submit any binary content and let this writer decide whether the content should be
* written as base64 encoded character data or using <tt>xop:Include</tt>. If this is not
* possible, then {@link #prepareDataHandler(DataHandler)} should be used.
*/
public void writeOptimized(OMText node) {
log.debug("Start MTOMXMLStreamWriter.writeOptimized()");
otherParts.add(new Part(node.getContentID(), (DataHandler)node.getDataHandler()));
log.debug("Exit MTOMXMLStreamWriter.writeOptimized()");
}
内容来源于网络,如有侵权,请联系作者删除!