DCAE-D be initial commit
[sdc/dcae-d/dt-be-main.git] / dcaedt_validator / checker / src / main / java / org / onap / sdc / dcae / checker / Facet.java
1 package org.onap.sdc.dcae.checker;
2
3 /*
4  * Oddballs:
5  *  - requirements (a requirement does not have a type - i.e. is not based
6  *  on a Construct) and can target a node, a capability or both .. When present 
7  *  as a facet of another Construct it is also the only one represented as a
8  *  sequence so it will need special handling anyway.
9  */
10 public enum Facet {
11     
12         inputs(Construct.Data),
13         outputs(Construct.Data),
14         properties(Construct.Data),
15         attributes(Construct.Data),
16         capabilities(Construct.Capability),
17         //requirements(Construct.Capability),//??
18         artifacts(Construct.Artifact),
19         interfaces(Construct.Interface);
20         /*
21   Node
22         Relationship
23         they can be considered as facets of the topology template ...
24         */
25     
26         private Construct construct;
27
28         private Facet(Construct theConstruct) {
29                 this.construct  = theConstruct;
30         }
31
32         public Construct construct() {
33                 return this.construct;
34         }
35 }
36
37