package de.dhbwstuttgart.strucTypes3;

import de.dhbwstuttgart.syntaxtree.type.RefTypeOrTPHOrWildcardOrGeneric;


public class FieldConstraint extends ConstraintAbstract {
	
	private RefTypeOrTPHOrWildcardOrGeneric reveiver; 
	private String name_of_field; 
	private RefTypeOrTPHOrWildcardOrGeneric attribut;
	
	public FieldConstraint(RefTypeOrTPHOrWildcardOrGeneric receiver, String name_of_field,
			RefTypeOrTPHOrWildcardOrGeneric attribut) {
		super();
		this.reveiver = receiver;
		this.name_of_field = name_of_field;
		this.attribut = attribut;
	}
	
	public String toString() {
		return String.format("FieldConstraint(%s , %s , %s)" , reveiver, name_of_field, attribut ); 
	}

	public RefTypeOrTPHOrWildcardOrGeneric getReveiver() {
		return reveiver;
	}

	public void setReveiver(RefTypeOrTPHOrWildcardOrGeneric reveiver) {
		this.reveiver = reveiver;
	}

	public String getName_of_field() {
		return name_of_field;
	}

	public void setName_of_field(String name_of_field) {
		this.name_of_field = name_of_field;
	}

	public RefTypeOrTPHOrWildcardOrGeneric getAttribut() {
		return attribut;
	}

	public void setAttribut(RefTypeOrTPHOrWildcardOrGeneric attribut) {
		this.attribut = attribut;
	} 
	

}