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

com.regnosys.rosetta.translate.synonymmap.SynonymRosettaPathTest Maven / Gradle / Ivy

There is a newer version: 11.25.1
Show newest version
package com.regnosys.rosetta.translate.synonymmap;

import com.regnosys.rosetta.rosetta.RosettaAttributeReference;
import com.regnosys.rosetta.rosetta.RosettaMapRosettaPath;

import java.util.Collections;
import java.util.List;

public class SynonymRosettaPathTest implements SynonymTest {

	private final RosettaAttributeReference path;
	
	public SynonymRosettaPathTest(RosettaMapRosettaPath exp) {
		path = (RosettaAttributeReference) exp.getPath();
	}

    @Override
    public TestPriority priority() {
        return TestPriority.Last;
    }
	
	@Override
	public List getPaths() {
		return Collections.emptyList();
	}
	
	public RosettaAttributeReference getPath() {
		return path;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((path == null) ? 0 : path.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		SynonymRosettaPathTest other = (SynonymRosettaPathTest) obj;
		if (path == null) {
			if (other.path != null)
				return false;
		} else if (!path.equals(other.path))
			return false;
		return true;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy