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

com.att.research.xacmlatt.pdp.std.combiners.CombiningAlgorithmBase Maven / Gradle / Ivy

There is a newer version: 4.0.0
Show newest version
/*
 *
 *          Copyright (c) 2013,2019  AT&T Knowledge Ventures
 *                     SPDX-License-Identifier: MIT
 */
package com.att.research.xacmlatt.pdp.std.combiners;

import com.att.research.xacml.api.Identifier;
import com.att.research.xacmlatt.pdp.policy.CombiningAlgorithm;

public abstract class CombiningAlgorithmBase implements CombiningAlgorithm {
	private Identifier id;
	
	public CombiningAlgorithmBase(Identifier identifierIn) {
		this.id	= identifierIn;
	}

	@Override
	public Identifier getId() {
		return this.id;
	}

	@Override
	public String toString() {
		StringBuilder stringBuilder	= new StringBuilder("{");
		
		Object objectToDump;
		if ((objectToDump = this.getId()) != null) {
			stringBuilder.append("id=");
			stringBuilder.append(objectToDump.toString());
		}
		stringBuilder.append('}');
		return stringBuilder.toString();
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy