public void visit(SWRLBuiltInAtom atom) { throw new IllegalArgumentException("Error: A rule uses built-in atoms ("+atom+"), but built-in atoms are not supported yet. "); }
public void visit(SWRLBuiltInAtom at) { throw new IllegalArgumentException("A SWRL rule uses a built-in atom, but built-in atoms are not supported yet."); }
public Atom visit(SWRLBuiltInAtom node) { throw new UnsupportedOperationException("Rules with SWRL built-in atoms are not yet supported. "); }
@Override public O visit(SWRLBuiltInAtom node) { return doDefault(node); }
@Override public void visit(SWRLBuiltInAtom node) { handleDefault(node); }
@Override public void visit(SWRLBuiltInAtom node) { type = RULE_OBJECT_TYPE_INDEX_BASE + 5; }
@Override public void visit(SWRLBuiltInAtom node) { for (SWRLObject o : node.getArguments()) { o.accept(this); } }
@Override public void visit(SWRLBuiltInAtom node) { hashCode = primes[66]; hashCode = hashCode * MULT + node.getAllArguments().hashCode(); hashCode = hashCode * MULT + node.getPredicate().hashCode(); }
@Override public SWRLBuiltInAtom visit(SWRLBuiltInAtom node) { return node; }
@Override public void visit(@Nonnull SWRLBuiltInAtom node) { for (SWRLArgument obj : node.getAllArguments()) { obj.accept(this); } }
@Override protected void writeObject(SWRLBuiltInAtom object, BinaryOWLOutputStream outputStream) throws IOException { outputStream.writeIRI(object.getPredicate()); outputStream.writeOWLObjectList(object.getArguments()); }
@Override protected SWRLBuiltInAtom readObject(BinaryOWLInputStream inputStream) throws IOException, BinaryOWLParseException { IRI predicate = inputStream.readIRI(); List<SWRLDArgument> arguments = inputStream.readOWLObjectList(); return inputStream.getDataFactory().getSWRLBuiltInAtom(predicate, arguments); }