⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 defaulttestpolicy.java

📁 Sematic Assessment System: Java GUI application that store all data in an Ontology in protege.
💻 JAVA
字号:
package DAO.impl;

import edu.stanford.smi.protege.model.FrameID;
import edu.stanford.smi.protegex.owl.model.*;
import edu.stanford.smi.protegex.owl.model.impl.*;
import DAO.TestPolicy;
import DAO.*;

/**
 * Generated by Protege-OWL  (http://protege.stanford.edu/plugins/owl).
 * Source OWL Class: http://www.jinnah.edu.pk/sas.owl#TestPolicy
 *
 * @version generated on Tue Sep 16 22:25:21 BDT 2008
 */
public class DefaultTestPolicy extends DefaultRDFIndividual
         implements TestPolicy {

    public DefaultTestPolicy(OWLModel owlModel, FrameID id) {
        super(owlModel, id);
    }


    public DefaultTestPolicy() {
    }



    // Property http://www.jinnah.edu.pk/sas.owl#hasEachQuestionScore

    public int getHasEachQuestionScore() {
        return getPropertyValueLiteral(getHasEachQuestionScoreProperty()).getInt();
    }


    public RDFProperty getHasEachQuestionScoreProperty() {
        final String uri = "http://www.jinnah.edu.pk/sas.owl#hasEachQuestionScore";
        final String name = getOWLModel().getResourceNameForURI(uri);
        return getOWLModel().getRDFProperty(name);
    }


    public boolean hasHasEachQuestionScore() {
        return getPropertyValueCount(getHasEachQuestionScoreProperty()) > 0;
    }


    public void setHasEachQuestionScore(int newHasEachQuestionScore) {
        setPropertyValue(getHasEachQuestionScoreProperty(), new java.lang.Integer(newHasEachQuestionScore));
    }



    // Property http://www.jinnah.edu.pk/sas.owl#hasEachQuestionTime

    public Object getHasEachQuestionTime() {
        return (Object) getPropertyValue(getHasEachQuestionTimeProperty());
    }


    public RDFProperty getHasEachQuestionTimeProperty() {
        final String uri = "http://www.jinnah.edu.pk/sas.owl#hasEachQuestionTime";
        final String name = getOWLModel().getResourceNameForURI(uri);
        return getOWLModel().getRDFProperty(name);
    }


    public boolean hasHasEachQuestionTime() {
        return getPropertyValueCount(getHasEachQuestionTimeProperty()) > 0;
    }


    public void setHasEachQuestionTime(Object newHasEachQuestionTime) {
        setPropertyValue(getHasEachQuestionTimeProperty(), newHasEachQuestionTime);
    }



    // Property http://www.jinnah.edu.pk/sas.owl#hasNegativePolicy

    public float getHasNegativePolicy() {
        return getPropertyValueLiteral(getHasNegativePolicyProperty()).getFloat();
    }


    public RDFProperty getHasNegativePolicyProperty() {
        final String uri = "http://www.jinnah.edu.pk/sas.owl#hasNegativePolicy";
        final String name = getOWLModel().getResourceNameForURI(uri);
        return getOWLModel().getRDFProperty(name);
    }


    public boolean hasHasNegativePolicy() {
        return getPropertyValueCount(getHasNegativePolicyProperty()) > 0;
    }


    public void setHasNegativePolicy(float newHasNegativePolicy) {
        setPropertyValue(getHasNegativePolicyProperty(), new java.lang.Float(newHasNegativePolicy));
    }



    // Property http://www.jinnah.edu.pk/sas.owl#hasPassingMarks

    public float getHasPassingMarks() {
        return getPropertyValueLiteral(getHasPassingMarksProperty()).getFloat();
    }


    public RDFProperty getHasPassingMarksProperty() {
        final String uri = "http://www.jinnah.edu.pk/sas.owl#hasPassingMarks";
        final String name = getOWLModel().getResourceNameForURI(uri);
        return getOWLModel().getRDFProperty(name);
    }


    public boolean hasHasPassingMarks() {
        return getPropertyValueCount(getHasPassingMarksProperty()) > 0;
    }


    public void setHasPassingMarks(float newHasPassingMarks) {
        setPropertyValue(getHasPassingMarksProperty(), new java.lang.Float(newHasPassingMarks));
    }



    // Property http://www.jinnah.edu.pk/sas.owl#hasTitle

    public String getHasTitle() {
        return (String) getPropertyValue(getHasTitleProperty());
    }


    public RDFProperty getHasTitleProperty() {
        final String uri = "http://www.jinnah.edu.pk/sas.owl#hasTitle";
        final String name = getOWLModel().getResourceNameForURI(uri);
        return getOWLModel().getRDFProperty(name);
    }


    public boolean hasHasTitle() {
        return getPropertyValueCount(getHasTitleProperty()) > 0;
    }


    public void setHasTitle(String newHasTitle) {
        setPropertyValue(getHasTitleProperty(), newHasTitle);
    }



    // Property http://www.jinnah.edu.pk/sas.owl#hasTotalQuestions

    public int getHasTotalQuestions() {
        return getPropertyValueLiteral(getHasTotalQuestionsProperty()).getInt();
    }


    public RDFProperty getHasTotalQuestionsProperty() {
        final String uri = "http://www.jinnah.edu.pk/sas.owl#hasTotalQuestions";
        final String name = getOWLModel().getResourceNameForURI(uri);
        return getOWLModel().getRDFProperty(name);
    }


    public boolean hasHasTotalQuestions() {
        return getPropertyValueCount(getHasTotalQuestionsProperty()) > 0;
    }


    public void setHasTotalQuestions(int newHasTotalQuestions) {
        setPropertyValue(getHasTotalQuestionsProperty(), new java.lang.Integer(newHasTotalQuestions));
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -