7ed711d973b319320da100d3e905ef7b99ed69d6Timo Sirainen * Created on Dec 28, 2004
7ed711d973b319320da100d3e905ef7b99ed69d6Timo Sirainen * @author Evren Sirin
7ed711d973b319320da100d3e905ef7b99ed69d6Timo Sirainenpublic class ClassAtomImpl extends AtomImpl implements ClassAtom {
7ed711d973b319320da100d3e905ef7b99ed69d6Timo Sirainen return (OWLClass) getPropertyAs(SWRL.classPredicate, OWLClass.class);
7ed711d973b319320da100d3e905ef7b99ed69d6Timo Sirainen setProperty(SWRL.classPredicate, (OWLIndividual) c.castTo(OWLIndividual.class));
7ed711d973b319320da100d3e905ef7b99ed69d6Timo Sirainen return (SWRLIndividualObject) getPropertyAs(SWRL.argument1, SWRLIndividualObject.class);
7ed711d973b319320da100d3e905ef7b99ed69d6Timo Sirainen throw new IndexOutOfBoundsException("Illegal argument index: "+index+" for a ClassAtom");
7ed711d973b319320da100d3e905ef7b99ed69d6Timo Sirainen public void setArgument(int index, SWRLObject term) {
7ed711d973b319320da100d3e905ef7b99ed69d6Timo Sirainen throw new IndexOutOfBoundsException("Illegal argument index: "+index+" for a ClassAtom");
2ac5f36aa7c2e7a07ba8815d43a6d7483f62e74cTimo Sirainen throw new IllegalArgumentException("ClassAtom argument should be a SWRLIndividualObject");
09304bdc1e5e416aa343802732a15064f49495ccTimo Sirainen public void setArgument1(SWRLIndividualObject obj) {
7ed711d973b319320da100d3e905ef7b99ed69d6Timo Sirainen OWLClass classPredicate = getClassPredicate();
7ed711d973b319320da100d3e905ef7b99ed69d6Timo Sirainen return "Missing_class_predicate";
7ed711d973b319320da100d3e905ef7b99ed69d6Timo Sirainen return "(" + getArgument1() + " rdf:type " + classPredicate.getQName() + ")";