All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.regnosys.rosetta.translate.ParseHandler Maven / Gradle / Ivy

There is a newer version: 11.25.1
Show newest version
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;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy