24daenzeroramapackage impl.owls.grounding;
24daenzerorama
24daenzeroramaimport impl.owl.WrappedIndividual;
24daenzerorama
24daenzeroramaimport org.mindswap.owl.OWLIndividual;
24daenzeroramaimport org.mindswap.owls.grounding.JavaVariable;
24daenzeroramaimport org.mindswap.owls.process.Parameter;
24daenzeroramaimport org.mindswap.owls.vocabulary.MoreGroundings;
24daenzeroramaimport org.mindswap.owls.vocabulary.OWLS;
24daenzerorama
24daenzeroramapublic class JavaVariableImpl extends WrappedIndividual implements JavaVariable {
24daenzerorama public JavaVariableImpl(OWLIndividual ind) {
24daenzerorama super(ind);
24daenzerorama }
24daenzerorama
24daenzerorama public String getJavaType() {
24daenzerorama return getPropertyAsString(MoreGroundings.javaType);
24daenzerorama }
24daenzerorama
24daenzerorama public Parameter getOWLSParameter() {
25daenzerorama return (Parameter) getPropertyAs(MoreGroundings.owlsParameter, Parameter.class);
24daenzerorama }
24daenzerorama
24daenzerorama public void removeJavaType() {
24daenzerorama if (hasProperty(MoreGroundings.javaType))
24daenzerorama removeProperties(MoreGroundings.javaType);
24daenzerorama }
24daenzerorama
24daenzerorama public void removeOWLSParameter() {
25daenzerorama if (hasProperty(MoreGroundings.owlsParameter))
25daenzerorama removeProperties(MoreGroundings.owlsParameter);
24daenzerorama }
24daenzerorama
24daenzerorama public void setJavaType(String type) {
24daenzerorama setProperty(MoreGroundings.javaType, type);
24daenzerorama }
24daenzerorama
24daenzerorama public void setOWLSParameter(Parameter parameter) {
24daenzerorama setProperty(OWLS.Grounding.owlsParameter, parameter);
24daenzerorama }
24daenzerorama
30daenzerorama public String getTransformator() {
30daenzerorama if (hasProperty(MoreGroundings.transformatorClass))
30daenzerorama return getProperty(MoreGroundings.transformatorClass).getLexicalValue();
30daenzerorama return "";
30daenzerorama }
30daenzerorama
30daenzerorama public void removeTransformator() {
30daenzerorama if (hasProperty(MoreGroundings.transformatorClass))
30daenzerorama removeProperties(MoreGroundings.transformatorClass);
30daenzerorama }
30daenzerorama
30daenzerorama public void setTransformator(String transformator) {
30daenzerorama setProperty(MoreGroundings.transformatorClass, transformator);
30daenzerorama }
30daenzerorama
24daenzerorama}