JavaVariableImpl.java revision 25
bcb4e51a409d94ae670de96afb8483a4f7855294Stephan Boschpackage impl.owls.grounding;
1ac7c8e9040e0d0b7e9f849e45b94bfe919595a9Timo Sirainen
1ac7c8e9040e0d0b7e9f849e45b94bfe919595a9Timo Sirainenimport impl.owl.WrappedIndividual;
1ac7c8e9040e0d0b7e9f849e45b94bfe919595a9Timo Sirainen
1ac7c8e9040e0d0b7e9f849e45b94bfe919595a9Timo Sirainenimport org.mindswap.owl.OWLIndividual;
1ac7c8e9040e0d0b7e9f849e45b94bfe919595a9Timo Sirainenimport org.mindswap.owls.grounding.JavaVariable;
1ac7c8e9040e0d0b7e9f849e45b94bfe919595a9Timo Sirainenimport org.mindswap.owls.process.Parameter;
1ac7c8e9040e0d0b7e9f849e45b94bfe919595a9Timo Sirainenimport org.mindswap.owls.vocabulary.MoreGroundings;
1ac7c8e9040e0d0b7e9f849e45b94bfe919595a9Timo Sirainenimport org.mindswap.owls.vocabulary.OWLS;
c68f28e2cf5f9621511bece0414335e551dc82c6Timo Sirainen
b9f564d00b7a115f465ffd6840341c7b8f9bfc8aTimo Sirainenpublic class JavaVariableImpl extends WrappedIndividual implements JavaVariable {
1ac7c8e9040e0d0b7e9f849e45b94bfe919595a9Timo Sirainen public JavaVariableImpl(OWLIndividual ind) {
1ac7c8e9040e0d0b7e9f849e45b94bfe919595a9Timo Sirainen super(ind);
1ac7c8e9040e0d0b7e9f849e45b94bfe919595a9Timo Sirainen }
1ac7c8e9040e0d0b7e9f849e45b94bfe919595a9Timo Sirainen
1ac7c8e9040e0d0b7e9f849e45b94bfe919595a9Timo Sirainen public String getJavaType() {
99695d99930b35c2bac85d52e976b44cf8485d83Timo Sirainen return getPropertyAsString(MoreGroundings.javaType);
1ac7c8e9040e0d0b7e9f849e45b94bfe919595a9Timo Sirainen }
1ac7c8e9040e0d0b7e9f849e45b94bfe919595a9Timo Sirainen
e42e27fcc497c7b4a5cc0b6ff304abca5ccfcb4fTimo Sirainen public Parameter getOWLSParameter() {
e42e27fcc497c7b4a5cc0b6ff304abca5ccfcb4fTimo Sirainen return (Parameter) getPropertyAs(MoreGroundings.owlsParameter, Parameter.class);
e42e27fcc497c7b4a5cc0b6ff304abca5ccfcb4fTimo Sirainen }
e42e27fcc497c7b4a5cc0b6ff304abca5ccfcb4fTimo Sirainen
e42e27fcc497c7b4a5cc0b6ff304abca5ccfcb4fTimo Sirainen public void removeJavaType() {
99695d99930b35c2bac85d52e976b44cf8485d83Timo Sirainen if (hasProperty(MoreGroundings.javaType))
1ac7c8e9040e0d0b7e9f849e45b94bfe919595a9Timo Sirainen removeProperties(MoreGroundings.javaType);
1ac7c8e9040e0d0b7e9f849e45b94bfe919595a9Timo Sirainen }
99695d99930b35c2bac85d52e976b44cf8485d83Timo Sirainen
1ac7c8e9040e0d0b7e9f849e45b94bfe919595a9Timo Sirainen public void removeOWLSParameter() {
99695d99930b35c2bac85d52e976b44cf8485d83Timo Sirainen if (hasProperty(MoreGroundings.owlsParameter))
1ac7c8e9040e0d0b7e9f849e45b94bfe919595a9Timo Sirainen removeProperties(MoreGroundings.owlsParameter);
99695d99930b35c2bac85d52e976b44cf8485d83Timo Sirainen }
1ac7c8e9040e0d0b7e9f849e45b94bfe919595a9Timo Sirainen
99695d99930b35c2bac85d52e976b44cf8485d83Timo Sirainen public void setJavaType(String type) {
1ac7c8e9040e0d0b7e9f849e45b94bfe919595a9Timo Sirainen setProperty(MoreGroundings.javaType, type);
1ac7c8e9040e0d0b7e9f849e45b94bfe919595a9Timo Sirainen }
1ac7c8e9040e0d0b7e9f849e45b94bfe919595a9Timo Sirainen
1ac7c8e9040e0d0b7e9f849e45b94bfe919595a9Timo Sirainen public void setOWLSParameter(Parameter parameter) {
1ac7c8e9040e0d0b7e9f849e45b94bfe919595a9Timo Sirainen setProperty(OWLS.Grounding.owlsParameter, parameter);
1ac7c8e9040e0d0b7e9f849e45b94bfe919595a9Timo Sirainen }
b9f564d00b7a115f465ffd6840341c7b8f9bfc8aTimo Sirainen
804fa3f03bd9170272168a5ad214053bbe3160c7Josef 'Jeff' Sipek}
1ac7c8e9040e0d0b7e9f849e45b94bfe919595a9Timo Sirainen