Package com.rosetta.model.lib.process
Interface Processor
public interface Processor
- Author:
- TomForwood Class defining a processor that runs on a RosettaModelObject instances of this class are designed to be used with the RosettaModelObject process method to perform visitor pattern processing on the object tree. They can return an accumulated result in the report object
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescription<T> voidprocessBasic(RosettaPath path, Class<? extends T> rosettaType, Collection<? extends T> instance, RosettaModelObject parent, AttributeMeta... metas) <T> voidprocessBasic(RosettaPath path, Class<? extends T> rosettaType, T instance, RosettaModelObject parent, AttributeMeta... metas) process a rosetta primitive type<R extends RosettaModelObject>
booleanprocessRosetta(RosettaPath path, Class<? extends R> rosettaType, List<? extends R> instance, RosettaModelObject parent, AttributeMeta... metas) <R extends RosettaModelObject>
booleanprocessRosetta(RosettaPath path, Class<? extends R> rosettaType, R instance, RosettaModelObject parent, AttributeMeta... metas) Process a rosetta objectreport()
-
Field Details
-
identitySet
-
-
Method Details
-
processRosetta
<R extends RosettaModelObject> boolean processRosetta(RosettaPath path, Class<? extends R> rosettaType, R instance, RosettaModelObject parent, AttributeMeta... metas) Process a rosetta object- Parameters:
path- the RosettaPath taken to the objectrosettaType- the Type of the objectinstance- a RosettaModelObject representing the objectparent- the RosettaModelObject which contains this object as an attributemetas- Flags indicating meta information about the attribute- Returns:
-
processRosetta
<R extends RosettaModelObject> boolean processRosetta(RosettaPath path, Class<? extends R> rosettaType, List<? extends R> instance, RosettaModelObject parent, AttributeMeta... metas) -
processBasic
<T> void processBasic(RosettaPath path, Class<? extends T> rosettaType, T instance, RosettaModelObject parent, AttributeMeta... metas) process a rosetta primitive type- Parameters:
path- the RosettaPath taken to the objectsrosettaType- the Type of the objectsinstance- the primitive value to be processedparent- the RosettaModelObject which contains these object as an attributemetas- Flags indicating meta information about the attribute
-
processBasic
<T> void processBasic(RosettaPath path, Class<? extends T> rosettaType, Collection<? extends T> instance, RosettaModelObject parent, AttributeMeta... metas) -
report
Processor.Report report()- Returns:
- a report representing the result of this processor
-