Search in sources :

Example 1 with ComponentNameFunction

use of com.sun.xml.xsom.util.ComponentNameFunction in project atlasmap by atlasmap.

the class SCDDriver method main.

public static void main(String[] args) throws Exception {
    XSOMParser p = new XSOMParser();
    for (int i = 1; i < args.length; i++) p.parse(args[i]);
    XSSchemaSet r = p.getResult();
    SCD scd = SCD.create(args[0], new DummyNSContext());
    Collection<XSComponent> result = scd.select(r);
    for (XSComponent c : result) {
        System.out.println(c.apply(new ComponentNameFunction()));
        print(c.getLocator());
        System.out.println();
    }
    System.out.printf("%1d match(s)\n", result.size());
}
Also used : XSOMParser(com.sun.xml.xsom.parser.XSOMParser) ComponentNameFunction(com.sun.xml.xsom.util.ComponentNameFunction)

Aggregations

XSOMParser (com.sun.xml.xsom.parser.XSOMParser)1 ComponentNameFunction (com.sun.xml.xsom.util.ComponentNameFunction)1