本文整理匯總了Java中danta.api.DOMProcessor類的典型用法代碼示例。如果您正苦於以下問題:Java DOMProcessor類的具體用法?Java DOMProcessor怎麽用?Java DOMProcessor使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
DOMProcessor類屬於danta.api包,在下文中一共展示了DOMProcessor類的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: execute
import danta.api.DOMProcessor; //導入依賴的package包/類
@Override
public List<String> execute(ExecutionContext executionContext, Document document)
throws Exception {
List<String> currentDomProcessorChain = new ArrayList<>();
for (DOMProcessor processor : domProcessors) {
processor.process(executionContext, document);
currentDomProcessorChain.add(processor.getClass().getName());
}
return currentDomProcessorChain;
}
示例2: bindDOMProcessor
import danta.api.DOMProcessor; //導入依賴的package包/類
private void bindDOMProcessor(DOMProcessor domProcessor) {
domProcessors.add(domProcessor);
Collections.sort(domProcessors, PRIORITY_COMPARATOR);
}
示例3: unbindDOMProcessor
import danta.api.DOMProcessor; //導入依賴的package包/類
private void unbindDOMProcessor(DOMProcessor domProcessor) {
domProcessors.remove(domProcessor);
}