本文整理汇总了Java中org.dom4j.DocumentHelper.makeElement方法的典型用法代码示例。如果您正苦于以下问题:Java DocumentHelper.makeElement方法的具体用法?Java DocumentHelper.makeElement怎么用?Java DocumentHelper.makeElement使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.dom4j.DocumentHelper
的用法示例。
在下文中一共展示了DocumentHelper.makeElement方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setMetadataProviderHandle
import org.dom4j.DocumentHelper; //导入方法依赖的package包/类
/**
* Sets the metadataProviderHandle attribute of the CollectionConfigReader
* object
*
* @param handle The new metadataProviderHandle value
*/
public void setMetadataProviderHandle(String handle) {
// prtln("setMetadataProviderHandle() handle: \"" + handle + "\"");
Node node =
DocumentHelper.makeElement(this.getDocument(), metadataProviderHandlePath);
node.setText(handle);
}
示例2: setNdrInfoValue
import org.dom4j.DocumentHelper; //导入方法依赖的package包/类
/**
* Sets the ndrInfoValue attribute of the DcsDataRecord object
*
* @param childName The new ndrInfoValue value
* @param value The new ndrInfoValue value
*/
private void setNdrInfoValue(String childName, String value) {
Element ndrInfo = DocumentHelper.makeElement(this.doc, ndrInfoPath);
Element child = DocumentHelper.makeElement(this.doc, ndrInfoPath + "/" + childName);
child.setText(value);
}
示例3: setAggregatorHandle
import org.dom4j.DocumentHelper; //导入方法依赖的package包/类
/**
* Sets the aggregatorHandle attribute of the CollectionConfigReader object
*
* @param pid The new aggregatorHandle value
*/
public void setAggregatorHandle(String pid) {
Node node = DocumentHelper.makeElement(this.getDocument(), aggregatorHandlePath);
node.setText(pid);
}
示例4: setAgentHandle
import org.dom4j.DocumentHelper; //导入方法依赖的package包/类
/**
* Sets the agentHandle attribute of the CollectionConfigReader object
*
* @param pid The new agentHandle value
*/
public void setAgentHandle(String pid) {
Node node = DocumentHelper.makeElement(this.getDocument(), agentHandlePath);
node.setText(pid);
}
示例5: setNdrOaiLink
import org.dom4j.DocumentHelper; //导入方法依赖的package包/类
/**
* Sets the ndrOaiLink attribute of the CollectionConfigReader object
*
* @param link The new ndrOaiLink value
*/
public void setNdrOaiLink(String link) {
Node node = DocumentHelper.makeElement(this.getDocument(), ndrOaiLinkPath);
node.setText(link);
}
示例6: setNdrServer
import org.dom4j.DocumentHelper; //导入方法依赖的package包/类
/**
* Sets the ndrServer attribute of the CollectionConfigReader object
*
* @param link The new ndrServer value
*/
public void setNdrServer(String server) {
Node node = DocumentHelper.makeElement(this.getDocument(), ndrServerPath);
node.setText(server);
}