// Path: situation-model/src/main/java/br/ufes/inf/lprm/situation/model/Situation.java
// public interface Situation {
// 
//     public long getUID();
//     public SituationEvent getActivation();
//     public SituationEvent getDeactivation();
//     public void setDeactivation(SituationEvent deactivation);
//     public boolean isActive();
//     public List<? extends Participation> getParticipations();
//     public SituationType getType();
// }


import  br.ufes.inf.lprm.situation.model.Situation;
import  java.lang.reflect.Field;
package br.ufes.inf.lprm.scene.model;


public class Part implements br.ufes.inf.lprm.situation.model.bindings.Part {

    private String label;
    private Field field;
    private boolean isKey;

    public Part(String label, Field field, boolean isKey) {
        this.label = label;
        this.field = field;
        this.isKey = isKey;
    }

    @Override
    public String getLabel() {
        return label;
    }

    @Override
    public boolean isKey() {
        return isKey;
    }

    public Field getField() {
        return field;
    }

// Path: situation-model/src/main/java/br/ufes/inf/lprm/situation/model/Situation.java
// public interface Situation {
// 
//     public long getUID();
//     public SituationEvent getActivation();
//     public SituationEvent getDeactivation();
//     public void setDeactivation(SituationEvent deactivation);
//     public boolean isActive();
//     public List<? extends Participation> getParticipations();
//     public SituationType getType();
// }


// Path: scene-core/src/main/java/br/ufes/inf/lprm/scene/model/Part.java
import  br.ufes.inf.lprm.situation.model.Situation;
import  java.lang.reflect.Field;

package br.ufes.inf.lprm.scene.model;


public class Part implements br.ufes.inf.lprm.situation.model.bindings.Part {

    private String label;
    private Field field;
    private boolean isKey;

    public Part(String label, Field field, boolean isKey) {
        this.label = label;
        this.field = field;
        this.isKey = isKey;
    }

    @Override
    public String getLabel() {
        return label;
    }

    @Override
    public boolean isKey() {
        return isKey;
    }

    public Field getField() {
        return field;
    }

    public void set(Situation situation, Object participant) throws IllegalAccessException {