summaryrefslogtreecommitdiffstats
path: root/dcaedt_validator/checker/src/main/java/org/onap/sdc/dcae/checker/Facet.java
diff options
context:
space:
mode:
Diffstat (limited to 'dcaedt_validator/checker/src/main/java/org/onap/sdc/dcae/checker/Facet.java')
-rw-r--r--dcaedt_validator/checker/src/main/java/org/onap/sdc/dcae/checker/Facet.java37
1 files changed, 37 insertions, 0 deletions
diff --git a/dcaedt_validator/checker/src/main/java/org/onap/sdc/dcae/checker/Facet.java b/dcaedt_validator/checker/src/main/java/org/onap/sdc/dcae/checker/Facet.java
new file mode 100644
index 0000000..3dfd140
--- /dev/null
+++ b/dcaedt_validator/checker/src/main/java/org/onap/sdc/dcae/checker/Facet.java
@@ -0,0 +1,37 @@
+package org.onap.sdc.dcae.checker;
+
+/*
+ * Oddballs:
+ * - requirements (a requirement does not have a type - i.e. is not based
+ * on a Construct) and can target a node, a capability or both .. When present
+ * as a facet of another Construct it is also the only one represented as a
+ * sequence so it will need special handling anyway.
+ */
+public enum Facet {
+
+ inputs(Construct.Data),
+ outputs(Construct.Data),
+ properties(Construct.Data),
+ attributes(Construct.Data),
+ capabilities(Construct.Capability),
+ //requirements(Construct.Capability),//??
+ artifacts(Construct.Artifact),
+ interfaces(Construct.Interface);
+ /*
+ Node
+ Relationship
+ they can be considered as facets of the topology template ...
+ */
+
+ private Construct construct;
+
+ private Facet(Construct theConstruct) {
+ this.construct = theConstruct;
+ }
+
+ public Construct construct() {
+ return this.construct;
+ }
+}
+
+