Query based on Public CM Properties
[cps.git] / cps-service / src / main / java / org / onap / cps / spi / model / DataNode.java
index 5ed45ad..43aa06b 100644 (file)
@@ -1,6 +1,8 @@
-/*-
+/*
  * ============LICENSE_START=======================================================
- *  Copyright (C) 2020 Nordix Foundation. All rights reserved.
+ * Copyright (C) 2020-2022 Nordix Foundation.
+ * Modifications Copyright (C) 2021 Bell Canada.
+ * Modifications Copyright (C) 2021 Pantheon.tech
  * ================================================================================
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
 package org.onap.cps.spi.model;
 
 import java.util.Collection;
+import java.util.Collections;
 import java.util.Map;
-import lombok.Builder;
-import lombok.Data;
+import lombok.AccessLevel;
+import lombok.EqualsAndHashCode;
 import lombok.Getter;
-import lombok.NoArgsConstructor;
 import lombok.Setter;
 
-@Data
-@Builder
+@Setter(AccessLevel.PROTECTED)
+@Getter
+@EqualsAndHashCode
 public class DataNode {
 
+    DataNode() {    }
+
     private String dataspace;
-    private String moduleSetName;
-    private ModuleRef moduleRef;
+    private String schemaSetName;
+    private String anchorName;
+    private ModuleReference moduleReference;
     private String xpath;
-    private Map<String, Object> leaves;
+    private Map<String, Object> leaves = Collections.emptyMap();
     private Collection<String> xpathsChildren;
+    private Collection<DataNode> childDataNodes = Collections.emptySet();
 }