1516N/A/*
941N/A * Created on Dec 30, 2004
941N/A */
941N/Apackage impl.owls.process;
941N/A
941N/Aimport impl.owl.OWLObjectImpl;
941N/Aimport impl.owls.process.binding.InputBindingImpl;
941N/Aimport impl.owls.process.binding.OutputBindingImpl;
941N/A
941N/Aimport org.mindswap.owl.OWLIndividual;
941N/Aimport org.mindswap.owl.OWLValue;
941N/Aimport org.mindswap.owls.process.Binding;
941N/Aimport org.mindswap.owls.process.InputBinding;
941N/Aimport org.mindswap.owls.process.ValueData;
941N/Aimport org.mindswap.owls.vocabulary.OWLS;
941N/A
941N/A/**
941N/A * @author Evren Sirin
941N/A *
941N/A */
941N/Apublic class ValueDataImpl extends OWLObjectImpl implements ValueData {
941N/A private OWLValue value;
2185N/A
941N/A public ValueDataImpl( OWLValue value ) {
941N/A this.value = value;
941N/A }
941N/A
1715N/A public OWLValue getData() {
941N/A return value;
1230N/A }
1230N/A
941N/A public Object getImplementation() {
941N/A return getData().getImplementation();
941N/A }
1230N/A
1230N/A public Binding getEnclosingBinding() {
941N/A Binding binding = null;
1230N/A if (this instanceof OWLIndividual) {
1291N/A OWLIndividual ind = (OWLIndividual) this;
941N/A OWLIndividual uncastedBinding = ind.getIncomingProperty(OWLS.Process.valueSource);
941N/A
941N/A if (uncastedBinding instanceof InputBinding)
941N/A binding = new InputBindingImpl(ind.getIncomingProperty(OWLS.Process.valueSource));
941N/A else
941N/A binding = new OutputBindingImpl(ind.getIncomingProperty(OWLS.Process.valueSource));
1286N/A }
941N/A return binding;
941N/A }
1635N/A}
941N/A