001: /**
002: * generated by http://RDFReactor.semweb4j.org ($Id: CodeGenerator.java 785 2007-05-31 15:47:01Z voelkel $) on 01.06.07 17:50
003: */package org.ontoware.rdfreactor.schema.bootstrap;
004:
005: import org.ontoware.rdf2go.model.Model;
006: import org.ontoware.rdf2go.model.node.BlankNode;
007: import org.ontoware.rdf2go.model.node.URI;
008: import org.ontoware.rdf2go.model.node.impl.URIImpl;
009: import org.ontoware.rdfreactor.runtime.Base;
010:
011: /**
012: * This class was generated by <a href="http://RDFReactor.semweb4j.org">RDFReactor</a> on 01.06.07 17:50
013: */
014: public class DeprecatedProperty extends Property {
015:
016: /** http://www.w3.org/2002/07/owl#DeprecatedProperty */
017: public static final URI RDFS_CLASS = new URIImpl(
018: "http://www.w3.org/2002/07/owl#DeprecatedProperty", false);
019:
020: /** all property-URIs with this class as domain */
021: public static final URI[] MANAGED_URIS = {
022:
023: };
024:
025: // protected constructors needed for inheritance
026:
027: /**
028: * Returns a Java wrapper over an RDF object, identified by URI.
029: * Creating two wrappers for the same instanceURI is legal.
030: * @param model RDF2GO Model implementation, see http://rdf2go.semweb4j.org
031: * @param classURI URI of RDFS class
032: * @param instanceIdentifier Resource that identifies this instance
033: * @param write if true, the statement (this, rdf:type, TYPE) is written to the model
034: */
035: protected DeprecatedProperty(Model model, URI classURI,
036: org.ontoware.rdf2go.model.node.Resource instanceIdentifier,
037: boolean write) {
038: super (model, classURI, instanceIdentifier, write);
039: }
040:
041: // public constructors
042:
043: /**
044: * Returns a Java wrapper over an RDF object, identified by URI.
045: * Creating two wrappers for the same instanceURI is legal.
046: * @param model RDF2GO Model implementation, see http://rdf2go.ontoware.org
047: * @param instanceIdentifier an RDF2Go Resource identifying this instance
048: * @param write if true, the statement (this, rdf:type, TYPE) is written to the model
049: */
050: public DeprecatedProperty(Model model,
051: org.ontoware.rdf2go.model.node.Resource instanceIdentifier,
052: boolean write) {
053: super (model, RDFS_CLASS, instanceIdentifier, write);
054: }
055:
056: /**
057: * Returns a Java wrapper over an RDF object, identified by a URI, given as a String.
058: * Creating two wrappers for the same URI is legal.
059: * @param model RDF2GO Model implementation, see http://rdf2go.ontoware.org
060: * @param uriString a URI given as a String
061: * @param write if true, the statement (this, rdf:type, TYPE) is written to the model
062: */
063: public DeprecatedProperty(Model model, String uriString,
064: boolean write) {
065: super (model, RDFS_CLASS, new URIImpl(uriString, false), write);
066: }
067:
068: /**
069: * Returns a Java wrapper over an RDF object, identified by a blank node.
070: * Creating two wrappers for the same blank node is legal.
071: * @param model RDF2GO Model implementation, see http://rdf2go.ontoware.org
072: * @param bnode BlankNode of this instance
073: * @param write if true, the statement (this, rdf:type, TYPE) is written to the model
074: */
075: public DeprecatedProperty(Model model, BlankNode bnode,
076: boolean write) {
077: super (model, RDFS_CLASS, bnode, write);
078: }
079:
080: /**
081: * Returns a Java wrapper over an RDF object, identified by
082: * a randomly generated URI.
083: * Creating two wrappers results in different URIs.
084: * @param model RDF2GO Model implementation, see http://rdf2go.ontoware.org
085: * @param write if true, the statement (this, rdf:type, TYPE) is written to the model
086: */
087: public DeprecatedProperty(Model model, boolean write) {
088: super (model, RDFS_CLASS, model.newRandomUniqueURI(), write);
089: }
090:
091: ///////////////////////////////////////////////////////////////////
092: // getters, setters, ...
093:
094: /**
095: * @param model RDF2Go model
096: * @param uri instance identifier
097: * @return an instance of DeprecatedProperty or null if none existst
098: * @throws Exception if Model causes problems
099: */
100: public static DeprecatedProperty getInstance(Model model, URI uri)
101: throws Exception {
102: return (DeprecatedProperty) Base.getInstance(model, uri,
103: DeprecatedProperty.class);
104: }
105:
106: /**
107: * @param model
108: * @param uri
109: * @return true if uri is an instance of this class in the model
110: */
111: public static boolean hasInstance(Model model, URI uri) {
112: return Base.hasInstance(model, uri, RDFS_CLASS);
113: }
114:
115: }
|