com.clarkparsia.pellint.model
Class LintFixer

java.lang.Object
  extended by com.clarkparsia.pellint.model.LintFixer

public class LintFixer
extends java.lang.Object

Title: Lint Fixer

Description: Contains a set of OWLAxiom's to remove and a set of OWLAxiom's to add in order to fix a lint.

Copyright: Copyright (c) 2008

Company: Clark & Parsia, LLC.

Author:
Harris Lin

Constructor Summary
LintFixer(org.semanticweb.owl.model.OWLAxiom axiomToRemove, org.semanticweb.owl.model.OWLAxiom axiomToAdd)
           
LintFixer(java.util.Set<? extends org.semanticweb.owl.model.OWLAxiom> axiomsToRemove, java.util.Set<? extends org.semanticweb.owl.model.OWLAxiom> axiomsToAdd)
           
 
Method Summary
 boolean apply(org.semanticweb.owl.model.OWLOntologyManager manager, org.semanticweb.owl.model.OWLOntology ontology)
          Replace the detected OWLAxioms with a new set of OWLAxioms, and apply the change to the given OWLOntology using the given OWLOntologyManager.
 java.util.Set<? extends org.semanticweb.owl.model.OWLAxiom> getAxiomsToAdd()
           
 java.util.Set<? extends org.semanticweb.owl.model.OWLAxiom> getAxiomsToRemove()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LintFixer

public LintFixer(java.util.Set<? extends org.semanticweb.owl.model.OWLAxiom> axiomsToRemove,
                 java.util.Set<? extends org.semanticweb.owl.model.OWLAxiom> axiomsToAdd)

LintFixer

public LintFixer(org.semanticweb.owl.model.OWLAxiom axiomToRemove,
                 org.semanticweb.owl.model.OWLAxiom axiomToAdd)
Method Detail

getAxiomsToRemove

public java.util.Set<? extends org.semanticweb.owl.model.OWLAxiom> getAxiomsToRemove()

getAxiomsToAdd

public java.util.Set<? extends org.semanticweb.owl.model.OWLAxiom> getAxiomsToAdd()

apply

public boolean apply(org.semanticweb.owl.model.OWLOntologyManager manager,
                     org.semanticweb.owl.model.OWLOntology ontology)
              throws org.semanticweb.owl.model.OWLOntologyChangeException
Replace the detected OWLAxioms with a new set of OWLAxioms, and apply the change to the given OWLOntology using the given OWLOntologyManager.

Returns:
true if:
1. All the OWLAxioms that are about to be removed, do exist in the given OWLOntology; and
2. All the changes were successfully applied.
Otherwise returns false.
Throws:
org.semanticweb.owl.model.OWLOntologyChangeException


Copyright © 2004 Evren Sirin. All Rights Reserved.