public class InspectionResultProcessor extends Object
InspectionResultProcessor of Metawidget since it
subverts the Metawidget pipeline.
This processor enhances the inspection results with HTML form labels for the inspected properties. It canonicalizes
all numerical types to the HTML5 'number' form input type.
It also prompts the user to choose a field to be displayed in the HTML form select fields. Form select fields may
display Ids, but this may not be intuitive, especially when other properties would be better suited visually.| Constructor and Description |
|---|
InspectionResultProcessor(org.jboss.forge.addon.projects.Project project,
org.jboss.forge.addon.scaffold.metawidget.MetawidgetInspectorFacade metawidgetInspectorFacade) |
| Modifier and Type | Method and Description |
|---|---|
List<Map<String,String>> |
enhanceResults(org.jboss.forge.roaster.model.source.JavaClassSource entity,
List<Map<String,String>> inspectionResults) |
String |
fetchEntityId(org.jboss.forge.roaster.model.JavaClass<?> entity,
List<Map<String,String>> inspectionResults)
Provides the Id of the JPA entity as obtained during inspection by Metawidget.
|
@Inject
public InspectionResultProcessor(org.jboss.forge.addon.projects.Project project,
org.jboss.forge.addon.scaffold.metawidget.MetawidgetInspectorFacade metawidgetInspectorFacade)
public List<Map<String,String>> enhanceResults(org.jboss.forge.roaster.model.source.JavaClassSource entity, List<Map<String,String>> inspectionResults)
public String fetchEntityId(org.jboss.forge.roaster.model.JavaClass<?> entity, List<Map<String,String>> inspectionResults)
entity - The JavaClass representing the JPA entity.inspectionResults - A list representing the inspection results for each property of the entityId aka the
primary key.Copyright © 2014 JBoss by Red Hat. All rights reserved.