public static Object navigateOne(Object moveobj, String path, SAXalizerMappingContext mappingcontext) { if (path == null || path.equals("")) { return moveobj; } if (moveobj == null) { throw UniversalRuntimeException.accumulate( new IllegalArgumentException(), "Null value encounted in bean path at component " + path); } else { PropertyAccessor pa = MethodAnalyser.getPropertyAccessor(moveobj, mappingcontext); if (pa.canGet(path)) { return pa.getProperty(moveobj, path); } else return UNREADABLE_PROPERTY; } }
public void run() { Object convert = dar.data; if (convert == DataAlterationRequest.INAPPLICABLE_VALUE) return; while (convert instanceof ObjectFactory) { convert = ((ObjectFactory) convert).getObject(); } Class leaftype = pa.getPropertyType(moveobj, tail); DARApplyEnvironment daraenv = new DARApplyEnvironment(dar, darenv, moveobj, convert, tail, pa, leaftype); if (dar.type.equals(DataAlterationRequest.ADD)) { impl.processAddition(daraenv); } else if (dar.type.equals(DataAlterationRequest.DELETE)) { impl.processDeletion(daraenv); } } });
if (d.pa.isMultiple(d.moveobj, d.tail) || d.convert != null && EnumerationConverter.isEnumerable(d.convert.getClass()) && !isleaf) { Object lastobj = d.pa.getProperty(d.moveobj, d.tail); d.pa.setProperty(d.moveobj, d.tail, lastobj); d.pa.setProperty(d.moveobj, d.tail, d.convert);
LexUtil.skipWhite(lr); LexUtil.expect(lr, ":"); Class type = pa.getPropertyType(base, key); if (type == Object.class) { type = HashMap.class; Object object = pa.getProperty(base, key); if (object != null) { type = object.getClass(); pa.setProperty(base, key, newobject);
removetarget = d.pa.getProperty(d.moveobj, d.tail); d.pa.setProperty(removetarget, (String) d.convert, null);
pa.setProperty(beingparsed.objectpeer, beingparsed.mapkey, beingparsed.object);