BindingImpl.java revision 10
/*
* Created on Aug 30, 2004
*/
/**
* @author Evren Sirin
*/
super(ind);
}
public ParameterValue getValue() {
// Parameter param = getParameter();
// OWLType paramType = (param == null) ? null : param.getParamType();
// OWLValue owlValue = null;
// if((paramType == null) || paramType.isDataType())
// owlValue = dataValue;
// else {
// String literalValue = dataValue.getLexicalValue().trim();
// String rdf = literalValue.indexOf("rdf:RDF") == -1
// ? RDFUtils.addRDFTag( literalValue )
// : literalValue;
// owlValue = getOntology().parseLiteral( rdf );
// }
//
// return getKB().createValueData(owlValue);
}
}
}
// if(value == null)
// value = (ParameterValue) getProperty(OWLS.Process.valueForm);
//
// if(value == null)
// value = (ParameterValue) getPropertyAs(OWLS.Process.valueType, ParameterValue.class);
//
// if(value == null)
// value = (ParameterValue) getPropertyAs(OWLS.Process.valueSpecifier, ValueOf.class);
//
// if(value == null)
// value = (ParameterValue) getPropertyAs(OWLS.Process.valueFunction, ValueFunction.class);
return value;
}
/* (non-Javadoc)
* @see org.mindswap.owls.process.Binding#setValue(org.mindswap.owls.process.ParameterValue)
*/
if(paramValue instanceof ValueOf)
else if (paramValue instanceof ValueData) {
if( value.isDataValue() )
else {
// String str = ((OWLIndividual) value).toRDF(true);
// setProperty(OWLS.Process.valueData, EntityFactory.createDataValue( str, RDF.XMLLiteral ) );
}
}
else
throw new NotImplementedException("Only ValueOf parameter values are implemented!");
}
public Parameter getParameter() {
}
}