/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package data;

import java.util.List;

/**
 *
 * @author pokotyamu
 */
public class PSPLabel {
    private String label;
    private List<String> types;

    public PSPLabel(String label, List<String> types) {
        this.label = label;
        this.types = types;
    }

    public String getLabel() {
        return label;
    }

    public List<String> getTypes() {
        return types;
    }
    
    public boolean existType(String type){
        return types.indexOf(type) > -1;
    }
}

@@ -292,21 +292,20 @@
  String 
-label
+name
 ;%0A    pr
@@ -358,21 +358,20 @@
 (String 
-label
+name
 , List%3CS
@@ -403,21 +403,19 @@
 his.
-label = label
+name = name
 ;%0A  
@@ -468,21 +468,20 @@
 ring get
-Label
+Name
 () %7B%0A   
@@ -496,13 +496,12 @@
 urn 
-label
+name
 ;%0A  
@@ -665,10 +665,295 @@
 ;%0A    %7D%0A
+%0A%0A    public boolean equals(PSPLabel label) %7B%0A        boolean flag1 = this.name.equals(label.getName());%0A        boolean flag2 = true;%0A        for (String type : label.getTypes()) %7B%0A            flag2 = flag2 && this.types.contains(type);%0A        %7D%0A        return flag1 && flag2;%0A    %7D%0A
 %7D%0A

change PSPLabel format