Object toInspect = mPropertyStyle.traverse( metawidget.getToInspect(), typeAndNames.getType(), false, typeAndNames.getNamesAsArray() ).getValue();
Object toInspect = mPropertyStyle.traverse( metawidget.getToInspect(), typeAndNames.getType(), false, typeAndNames.getNamesAsArray() ).getValue();
Object sourceValue = mPropertyStyle.traverse( metawidget.getToInspect(), typeAndNames.getType(), false, typeAndNames.getNamesAsArray() ).getValue();
protected Element inspect() { TypeAndNames typeAndNames = PathUtils.parsePath( mPath, StringUtils.SEPARATOR_DOT_CHAR ); String type = typeAndNames.getType(); // Inspect using the 'raw' type (eg. contactForm) Element inspectionResult = mPipeline.inspectAsDom( null, type, typeAndNames.getNamesAsArray() ); // (pageContext may be null in unit tests) if ( pageContext != null ) { // Try to locate the runtime bean. This allows some Inspectors // to act on it polymorphically. Object obj = pageContext.findAttribute( type ); if ( obj != null ) { Element additionalInspectionResult = mPipeline.inspectAsDom( obj, obj.getClass().getName(), typeAndNames.getNamesAsArray() ); // Combine the subtrees // // Note the top-level types attribute will be different, because one is the 'raw' // type (eg. contactForm) and one the runtime bean (eg. // org.metawidget.example.struts.addressbook.form.BusinessContactForm) if ( inspectionResult == null ) { inspectionResult = additionalInspectionResult; } else if ( additionalInspectionResult != null ) { Element inspectionResultEntity = XmlUtils.getFirstChildElement( inspectionResult ); Element additionalInspectionResultEntity = XmlUtils.getFirstChildElement( additionalInspectionResult ); XmlUtils.combineElements( inspectionResultEntity, additionalInspectionResultEntity, NAME, null ); } } } return inspectionResult; }
private Element inspect() { if ( mPath == null ) { return null; } TypeAndNames typeAndNames = PathUtils.parsePath( mPath ); return mPipeline.inspectAsDom( mToInspect, typeAndNames.getType(), typeAndNames.getNamesAsArray() ); }
protected Element inspect() { if ( mPath == null ) { return null; } TypeAndNames typeAndNames = PathUtils.parsePath( mPath, StringUtils.SEPARATOR_FORWARD_SLASH_CHAR ); String type = typeAndNames.getType(); return mPipeline.inspectAsDom( null, type, typeAndNames.getNamesAsArray() ); }
private Element inspect() { if ( mPath == null ) { return null; } TypeAndNames typeAndNames = PathUtils.parsePath( mPath ); return mPipeline.inspectAsDom( mToInspect, typeAndNames.getType(), typeAndNames.getNamesAsArray() ); }
public String getNames() { if ( mParsedNames == null ) { getType(); } return mParsedNames; }
private Element inspect() { if ( mPath == null ) { return null; } TypeAndNames typeAndNames = PathUtils.parsePath( mPath ); return mPipeline.inspectAsDom( mToInspect, typeAndNames.getType(), typeAndNames.getNamesAsArray() ); }
protected Element inspect() { if ( mPath == null ) { return null; } TypeAndNames typeAndNames = PathUtils.parsePath( mPath, StringUtils.SEPARATOR_FORWARD_SLASH_CHAR ); String type = typeAndNames.getType(); return mPipeline.inspectAsDom( null, type, typeAndNames.getNamesAsArray() ); }
public String getNames() { if ( mParsedNames == null ) { getType(); } return mParsedNames; }
private Element inspect() { if ( mPath == null ) { return null; } TypeAndNames typeAndNames = PathUtils.parsePath( mPath ); return mPipeline.inspectAsDom( mToInspect, typeAndNames.getType(), typeAndNames.getNamesAsArray() ); }
private Element inspect() { if ( mPath == null ) { return null; } TypeAndNames typeAndNames = PathUtils.parsePath( mPath ); return mPipeline.inspectAsDom( mToInspect, typeAndNames.getType(), typeAndNames.getNamesAsArray() ); }