diff options
Diffstat (limited to 'context/context-management/src/main/java/org/onap/policy/apex/context/SchemaHelper.java')
-rw-r--r-- | context/context-management/src/main/java/org/onap/policy/apex/context/SchemaHelper.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/context/context-management/src/main/java/org/onap/policy/apex/context/SchemaHelper.java b/context/context-management/src/main/java/org/onap/policy/apex/context/SchemaHelper.java index 44ec06c6d..b6d21a20d 100644 --- a/context/context-management/src/main/java/org/onap/policy/apex/context/SchemaHelper.java +++ b/context/context-management/src/main/java/org/onap/policy/apex/context/SchemaHelper.java @@ -92,6 +92,14 @@ public interface SchemaHelper { Object createNewInstance(Object incomingObject); /** + * Create an object of a sub type of this object. + * + * @param subType the sub type definition of this type + * @return a new object of the sub type + */ + Object createNewSubInstance(String subType); + + /** * Unmarshal an object in schema format into a Java object. * * @param object the object as a Java object |