Package org.semanticweb.owl.model

Examples of org.semanticweb.owl.model.OWLAnnotation


    }

    public boolean equals(Object obj) {
        if(super.equals(obj)) {
            if(obj instanceof OWLAnnotation) {
               OWLAnnotation other = (OWLAnnotation) obj;
               return other.getAnnotationURI().equals(uri) && other.getAnnotationValue().equals(object);
            }
        }
        return false;
    }
View Full Code Here


        }
        return false;
    }

    protected int compareObjectOfSameType(OWLObject object) {
        OWLAnnotation other = (OWLAnnotation) object;
        int diff = getAnnotationURI().compareTo(other.getAnnotationURI());
        if(diff != 0) {
            return diff;
        }
        else {
            return getAnnotationValue().compareTo(other.getAnnotationValue());
        }
    }
View Full Code Here

TOP

Related Classes of org.semanticweb.owl.model.OWLAnnotation

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.