?? test.java
字號:
//// Test.java//// john.mettraux@openwfe.org//// generated with // jtmpl 1.1.01 2004/05/19 (john.mettraux@openwfe.org)//package openwfe.org.query._test;import openwfe.org.ApplicationContext;import openwfe.org.query.*;import openwfe.org.query.sets.*;import openwfe.org.query.item.*;import openwfe.org.query.impl.*;/** * no comment * * <p><font size=2>CVS Info : * <br>$Author: jmettraux $ * <br>$Id: Test.java,v 1.4 2005/05/17 16:40:56 jmettraux Exp $ </font> * * @author john.mettraux@openwfe.org */public class Test{ private final static org.apache.log4j.Logger log = org.apache.log4j.Logger .getLogger(Test.class.getName()); public static void main (String[] args) throws Exception { // // init query map //ApplicationContext con = new ApplicationContext(); java.util.Map params = new java.util.HashMap(); params.put ("queryConfigurationFile", "tst/query-config.xml"); XmlQueryMap queryMap = new XmlQueryMap(); queryMap.init("queryMap", null, params); QueryItem qi = queryMap.lookupQuery("tst/query-map.xml#Store.querystore#charly"); //log.debug("qi.class is "+qi.getClass().getName()); org.jdom.Element elt = new org.jdom.Element("toto"); elt.setAttribute("participantName", "role-bravo"); log.debug("validate returns "+qi.validate(elt)); }}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -