com.regnosys.rosetta.translate.ParseHandler Maven / Gradle / Ivy
package com.regnosys.rosetta.translate;
import java.util.Collection;
import java.util.HashSet;
import java.util.Set;
import com.regnosys.rosetta.common.translation.Path;
public abstract class ParseHandler {
protected final Set xmlPathsToHere;
protected Path rosettaPath;//TODO this should be final and in a constructor
public ParseHandler() {
xmlPathsToHere = new HashSet<>();
}
protected int sizeOf(Collection> col) {
if (col == null) return 0;
return col.size();
}
public Set getXmlPathsToHere() {
return xmlPathsToHere;
}
public void addXmlPath(Path path) {
xmlPathsToHere.add(path);
}
public Path getRosettaPath() {
return rosettaPath;
}
public void setRosettaPath(Path rosettaPath) {
this.rosettaPath = rosettaPath;
}
}