From 86e7411b128bd7db440eceff7265533844e577bb Mon Sep 17 00:00:00 2001 From: "LaMont, William(wl2432)" Date: Tue, 14 Apr 2020 14:00:00 -0400 Subject: schema-service processing for v19 Issue-ID: AAI-2864 Change-Id: I41a430ec9c9fd69be75bd9d01693249895e0928b Signed-off-by: LaMont, William(wl2432) --- .../src/main/java/org/onap/aai/annotations/Metadata.java | 1 + .../main/java/org/onap/aai/schema/enums/ObjectMetadata.java | 12 +++++++++--- .../test/java/org/onap/aai/annotations/AnnotationsTest.java | 4 +++- 3 files changed, 13 insertions(+), 4 deletions(-) (limited to 'aai-annotations') diff --git a/aai-annotations/src/main/java/org/onap/aai/annotations/Metadata.java b/aai-annotations/src/main/java/org/onap/aai/annotations/Metadata.java index d9e9f0f..b915ee5 100644 --- a/aai-annotations/src/main/java/org/onap/aai/annotations/Metadata.java +++ b/aai-annotations/src/main/java/org/onap/aai/annotations/Metadata.java @@ -52,5 +52,6 @@ public @interface Metadata { String containsSuggestibleProps() default ""; String suggestionAliases() default ""; String sourceOfTruthType() default ""; + String dslStartNodeProps() default ""; } diff --git a/aai-annotations/src/main/java/org/onap/aai/schema/enums/ObjectMetadata.java b/aai-annotations/src/main/java/org/onap/aai/schema/enums/ObjectMetadata.java index 39cfdec..6b68e1f 100644 --- a/aai-annotations/src/main/java/org/onap/aai/schema/enums/ObjectMetadata.java +++ b/aai-annotations/src/main/java/org/onap/aai/schema/enums/ObjectMetadata.java @@ -117,9 +117,15 @@ public enum ObjectMetadata { /** * a value of true allows this object to be written directly */ - ALLOW_DIRECT_WRITE("allowDirectWrite"); - - private final String name; + ALLOW_DIRECT_WRITE("allowDirectWrite"), + /** + * properties that are allowed to be in start node in a DSL + *
comma separated list + */ + DSL_START_NODE_PROPS("dslStartNodeProps"); + + + private final String name; private ObjectMetadata(String name) { this.name = name; diff --git a/aai-annotations/src/test/java/org/onap/aai/annotations/AnnotationsTest.java b/aai-annotations/src/test/java/org/onap/aai/annotations/AnnotationsTest.java index a518e0c..c6bd03c 100644 --- a/aai-annotations/src/test/java/org/onap/aai/annotations/AnnotationsTest.java +++ b/aai-annotations/src/test/java/org/onap/aai/annotations/AnnotationsTest.java @@ -42,7 +42,9 @@ public class AnnotationsTest { isAbstract = "", alternateKeys1 = "", maximumDepth = "", - crossEntityReference = "") + crossEntityReference = "", + dslStartNodeProps = "") + public void testAnnotation() { } } -- cgit 1.2.3-korg