Package io.opencaesar.oml.util
Class OmlFactory2
java.lang.Object
io.opencaesar.oml.util.OmlFactory2
The Factory2 for the model. It allows creating OML objects reflectively using their Java type.
This is an alternative to
OmlFactory
which has individual create methods for each object type-
Field Summary
-
Method Summary
-
Field Details
-
INSTANCE
The singleton factory instance
-
-
Method Details
-
create
Creates a new Oml object given a Java type- Parameters:
type
- The Java type of the Oml object- Returns:
- A new object that is an instance of the given type
-