PceConstraints ResourcePair parameters declared as public
instead of private + accessors
Signed-off-by: guillaume.lambert <guillaume.lambert@orange.com>
Change-Id: I742bed7656ea3a4d368cad437f0ddc082d6964d8
- public ResourceType type = ResourceType.NODE;
+ private ResourceType type = ResourceType.NODE;
+
+ private String name = "";
+
+ public ResourceType getType() {
+ return type;
+ }
+
+ public String getName() {
+ return name;
+ }
- public String name = "";
}
public List<ResourcePair> getListToInclude() {
}
public List<ResourcePair> getListToInclude() {
// validation: check each type for each element
for (ResourcePair next : listToInclude) {
int indx = -1;
// validation: check each type for each element
for (ResourcePair next : listToInclude) {
int indx = -1;
+ switch (next.getType()) {
- if (listOfElementsSubNode.contains(next.name)) {
- indx = listOfElementsSubNode.indexOf(next.name);
+ if (listOfElementsSubNode.contains(next.getName())) {
+ indx = listOfElementsSubNode.indexOf(next.getName());
- if (listOfElementsSRLG.contains(next.name)) {
- indx = listOfElementsSRLG.indexOf(next.name);
+ if (listOfElementsSRLG.contains(next.getName())) {
+ indx = listOfElementsSRLG.indexOf(next.getName());
- if (listOfElementsCLLI.contains(next.name)) {
- indx = listOfElementsCLLI.indexOf(next.name);
+ if (listOfElementsCLLI.contains(next.getName())) {
+ indx = listOfElementsCLLI.indexOf(next.getName());
- LOG.warn(" in checkInclude vertex list unsupported resource type: [{}]", next.type);
+ LOG.warn(" in checkInclude vertex list unsupported resource type: [{}]", next.getType());
- LOG.debug(" in checkInclude stopped : {} ", next.name);
+ LOG.debug(" in checkInclude stopped : {} ", next.getName());
- LOG.debug(" in checkInclude next found {} in {}", next.name, partialPath.getVertexList());
+ LOG.debug(" in checkInclude next found {} in {}", next.getName(), partialPath.getVertexList());
listOfElementsSubNode.subList(0, indx).clear();
listOfElementsCLLI.subList(0, indx).clear();
listOfElementsSubNode.subList(0, indx).clear();
listOfElementsCLLI.subList(0, indx).clear();