本文整理匯總了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);
}