001: /**
002: * generated by http://RDFReactor.semweb4j.org ($Id: CodeGenerator.java 870 2007-11-07 17:30:59Z max.at.xam.de $) on 26.01.08 12:44
003: */package org.ontoware.rdfreactor.schema.rdfs;
004:
005: import org.ontoware.aifbcommons.collection.ClosableIterator;
006: import org.ontoware.rdf2go.exception.ModelRuntimeException;
007: import org.ontoware.rdf2go.model.Model;
008: import org.ontoware.rdf2go.model.node.BlankNode;
009: import org.ontoware.rdf2go.model.node.URI;
010: import org.ontoware.rdf2go.model.node.impl.URIImpl;
011: import org.ontoware.rdfreactor.runtime.Base;
012: import org.ontoware.rdfreactor.runtime.ReactorResult;
013:
014: /**
015: * This class was generated by <a href="http://RDFReactor.semweb4j.org">RDFReactor</a> on 26.01.08 12:44
016: */
017: public class ContainerMembershipProperty extends Property {
018:
019: /** http://www.w3.org/2000/01/rdf-schema#ContainerMembershipProperty */
020: public static final URI RDFS_CLASS = new URIImpl(
021: "http://www.w3.org/2000/01/rdf-schema#ContainerMembershipProperty",
022: false);
023:
024: /** all property-URIs with this class as domain */
025: public static final URI[] MANAGED_URIS = {
026:
027: };
028:
029: // protected constructors needed for inheritance
030:
031: /**
032: * Returns a Java wrapper over an RDF object, identified by URI.
033: * Creating two wrappers for the same instanceURI is legal.
034: * @param model RDF2GO Model implementation, see http://rdf2go.semweb4j.org
035: * @param classURI URI of RDFS class
036: * @param instanceIdentifier Resource that identifies this instance
037: * @param write if true, the statement (this, rdf:type, TYPE) is written to the model
038: *
039: * [Generated from RDFReactor template rule #c1]
040: */
041: protected ContainerMembershipProperty(Model model, URI classURI,
042: org.ontoware.rdf2go.model.node.Resource instanceIdentifier,
043: boolean write) {
044: super (model, classURI, instanceIdentifier, write);
045: }
046:
047: // public constructors
048:
049: /**
050: * Returns a Java wrapper over an RDF object, identified by URI.
051: * Creating two wrappers for the same instanceURI is legal.
052: * @param model RDF2GO Model implementation, see http://rdf2go.ontoware.org
053: * @param instanceIdentifier an RDF2Go Resource identifying this instance
054: * @param write if true, the statement (this, rdf:type, TYPE) is written to the model
055: *
056: * [Generated from RDFReactor template rule #c2]
057: */
058: public ContainerMembershipProperty(Model model,
059: org.ontoware.rdf2go.model.node.Resource instanceIdentifier,
060: boolean write) {
061: super (model, RDFS_CLASS, instanceIdentifier, write);
062: }
063:
064: /**
065: * Returns a Java wrapper over an RDF object, identified by a URI, given as a String.
066: * Creating two wrappers for the same URI is legal.
067: * @param model RDF2GO Model implementation, see http://rdf2go.ontoware.org
068: * @param uriString a URI given as a String
069: * @param write if true, the statement (this, rdf:type, TYPE) is written to the model
070: * @throws ModelRuntimeException if URI syntax is wrong
071: *
072: * [Generated from RDFReactor template rule #c7]
073: */
074: public ContainerMembershipProperty(Model model, String uriString,
075: boolean write) throws ModelRuntimeException {
076: super (model, RDFS_CLASS, new URIImpl(uriString, false), write);
077: }
078:
079: /**
080: * Returns a Java wrapper over an RDF object, identified by a blank node.
081: * Creating two wrappers for the same blank node is legal.
082: * @param model RDF2GO Model implementation, see http://rdf2go.ontoware.org
083: * @param bnode BlankNode of this instance
084: * @param write if true, the statement (this, rdf:type, TYPE) is written to the model
085: *
086: * [Generated from RDFReactor template rule #c8]
087: */
088: public ContainerMembershipProperty(Model model, BlankNode bnode,
089: boolean write) {
090: super (model, RDFS_CLASS, bnode, write);
091: }
092:
093: /**
094: * Returns a Java wrapper over an RDF object, identified by
095: * a randomly generated URI.
096: * Creating two wrappers results in different URIs.
097: * @param model RDF2GO Model implementation, see http://rdf2go.ontoware.org
098: * @param write if true, the statement (this, rdf:type, TYPE) is written to the model
099: *
100: * [Generated from RDFReactor template rule #c9]
101: */
102: public ContainerMembershipProperty(Model model, boolean write) {
103: super (model, RDFS_CLASS, model.newRandomUniqueURI(), write);
104: }
105:
106: ///////////////////////////////////////////////////////////////////
107: // typing
108:
109: /**
110: * Create a new instance of this class in the model.
111: * That is, create the statement (instanceResource, RDF.type, http://www.w3.org/2000/01/rdf-schema#ContainerMembershipProperty).
112: * @param model an RDF2Go model
113: * @param instanceResource an RDF2Go resource
114: *
115: * [Generated from RDFReactor template rule #class1]
116: */
117: public static void createInstance(Model model,
118: org.ontoware.rdf2go.model.node.Resource instanceResource) {
119: Base.createInstance(model, RDFS_CLASS, instanceResource);
120: }
121:
122: /**
123: * @param model an RDF2Go model
124: * @param instanceResource an RDF2Go resource
125: * @return true if instanceResource is an instance of this class in the model
126: *
127: * [Generated from RDFReactor template rule #class2]
128: */
129: public static boolean hasInstance(Model model,
130: org.ontoware.rdf2go.model.node.Resource instanceResource) {
131: return Base.hasInstance(model, RDFS_CLASS, instanceResource);
132: }
133:
134: /**
135: * @param model an RDF2Go model
136: * @return all instances of this class in Model 'model' as RDF resources
137: *
138: * [Generated from RDFReactor template rule #class3]
139: */
140: public static ClosableIterator<org.ontoware.rdf2go.model.node.Resource> getAllInstances(
141: Model model) {
142: return Base.getAllInstances(model, RDFS_CLASS,
143: org.ontoware.rdf2go.model.node.Resource.class);
144: }
145:
146: /**
147: * @param model an RDF2Go model
148: * @return all instances of this class in Model 'model' as a ReactorResult,
149: * which can conveniently be converted to iterator, list or array.
150: *
151: * [Generated from RDFReactor template rule #class3-as]
152: */
153: public static ReactorResult<? extends ContainerMembershipProperty> getAllInstance_as(
154: Model model) {
155: return Base.getAllInstances_as(model, RDFS_CLASS,
156: ContainerMembershipProperty.class);
157: }
158:
159: /**
160: * Delete all rdf:type from this instance. Other triples are not affected.
161: * @param model an RDF2Go model
162: * @param instanceResource an RDF2Go resource
163: *
164: * [Generated from RDFReactor template rule #class4]
165: */
166: public static void deleteInstance(Model model,
167: org.ontoware.rdf2go.model.node.Resource instanceResource) {
168: Base.deleteInstance(model, RDFS_CLASS, instanceResource);
169: }
170:
171: ///////////////////////////////////////////////////////////////////
172: // property access methods
173:
174: }
|