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

📄 defaultadvertisement.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 java.util.*;

import DAO.Advertisement;
import DAO.*;

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

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


    public DefaultAdvertisement() {
    }



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

    public String getHasCompany() {
        return (String) getPropertyValue(getHasCompanyProperty());
    }


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


    public boolean hasHasCompany() {
        return getPropertyValueCount(getHasCompanyProperty()) > 0;
    }


    public void setHasCompany(String newHasCompany) {
        setPropertyValue(getHasCompanyProperty(), newHasCompany);
    }



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

    public int getHasExperience() {
        return getPropertyValueLiteral(getHasExperienceProperty()).getInt();
    }


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


    public boolean hasHasExperience() {
        return getPropertyValueCount(getHasExperienceProperty()) > 0;
    }


    public void setHasExperience(int newHasExperience) {
        setPropertyValue(getHasExperienceProperty(), new java.lang.Integer(newHasExperience));
    }



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

    public Collection getHasJobApplication() {
        return getPropertyValuesAs(getHasJobApplicationProperty(), JobApplication.class);
    }


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


    public boolean hasHasJobApplication() {
        return getPropertyValueCount(getHasJobApplicationProperty()) > 0;
    }


    public Iterator listHasJobApplication() {
        return listPropertyValuesAs(getHasJobApplicationProperty(), JobApplication.class);
    }


    public void addHasJobApplication(JobApplication newHasJobApplication) {
        addPropertyValue(getHasJobApplicationProperty(), newHasJobApplication);
    }


    public void removeHasJobApplication(JobApplication oldHasJobApplication) {
        removePropertyValue(getHasJobApplicationProperty(), oldHasJobApplication);
    }


    public void setHasJobApplication(Collection newHasJobApplication) {
        setPropertyValues(getHasJobApplicationProperty(), newHasJobApplication);
    }



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

    public JobRole getHasJobRole() {
        return (JobRole) getPropertyValueAs(getHasJobRoleProperty(), JobRole.class);
    }


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


    public boolean hasHasJobRole() {
        return getPropertyValueCount(getHasJobRoleProperty()) > 0;
    }


    public void setHasJobRole(JobRole newHasJobRole) {
        setPropertyValue(getHasJobRoleProperty(), newHasJobRole);
    }



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

    public int getHasSalary() {
        return getPropertyValueLiteral(getHasSalaryProperty()).getInt();
    }


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


    public boolean hasHasSalary() {
        return getPropertyValueCount(getHasSalaryProperty()) > 0;
    }


    public void setHasSalary(int newHasSalary) {
        setPropertyValue(getHasSalaryProperty(), new java.lang.Integer(newHasSalary));
    }
}

⌨️ 快捷键说明

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