/** * Get the default Java reader. * @return The Java reader. */ public static TypeInfoPathManager getPathManager() { if(pathmanager==null) { synchronized(JavaReader.class) { if(pathmanager==null) { pathmanager = new TypeInfoPathManager(typeinfos); } } } return pathmanager; }
/** * Get the default Java reader. * @return The Java reader. */ public static TypeInfoPathManager getPathManager() { if(pathmanager==null) { synchronized(JavaReader.class) { if(pathmanager==null) { pathmanager = new TypeInfoPathManager(getTypeInfos()); } } } return pathmanager; }
public void read(File file) throws Exception { FileInputStream is = new FileInputStream(file); AReader reader = XMLReaderFactory.getInstance().createReader(false, false, null); Set types = getXMLMapping(); reader.read(new TypeInfoPathManager(types), new BeanObjectReaderHandler(types) { public void handleAttributeValue(Object object, QName xmlattrname, List attrpath, String attrval, Object attrinfo, AReadContext context) throws Exception { if (attrinfo != null) { super.handleAttributeValue(object, xmlattrname, attrpath, attrval, attrinfo, context); } } }, is, BpmnModelReader.class.getClassLoader(), new BpmnReadContext()); }
manager = new TypeInfoPathManager(mappings); handler = new BeanObjectReaderHandler(mappings);
manager = new TypeInfoPathManager(mappings); handler = new BeanObjectReaderHandler(mappings);
typeinfosread.add(ti_ocp); return new Tuple2<TypeInfoPathManager, IObjectReaderHandler>(new TypeInfoPathManager(typeinfosread), new BeanObjectReaderHandler(typeinfosread));
typeinfosread.add(ti_ocp); return new Tuple2<TypeInfoPathManager, IObjectReaderHandler>(new TypeInfoPathManager(typeinfosread), new BeanObjectReaderHandler(typeinfosread));
typeinfosread.add(ti_ocp); return new Tuple2<TypeInfoPathManager, IObjectReaderHandler>(new TypeInfoPathManager(typeinfosread), new BeanObjectReaderHandler(typeinfosread));