001: /**
002: * generated by http://RDFReactor.semweb4j.org ($Id: CodeGenerator.java 1046 2008-01-26 14:38:26Z max.at.xam.de $) on 26.01.08 15:47
003: */package com.example;
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 manages access to these properties:
016: * <ul>
017: * <li> Uuu1 </li>
018: * </ul>
019: *
020: * This class was generated by <a href="http://RDFReactor.semweb4j.org">RDFReactor</a> on 26.01.08 15:47
021: */
022: public class GGG extends Thing {
023:
024: /** urn:ex:GGG */
025: public static final URI RDFS_CLASS = new URIImpl("urn:ex:GGG",
026: false);
027:
028: /** urn:ex:uuu1 */
029: public static final URI UUU1 = new URIImpl("urn:ex:uuu1", false);
030:
031: /** all property-URIs with this class as domain */
032: public static final URI[] MANAGED_URIS = { new URIImpl(
033: "urn:ex:uuu1", false) };
034:
035: // protected constructors needed for inheritance
036:
037: /**
038: * Returns a Java wrapper over an RDF object, identified by URI.
039: * Creating two wrappers for the same instanceURI is legal.
040: * @param model RDF2GO Model implementation, see http://rdf2go.semweb4j.org
041: * @param classURI URI of RDFS class
042: * @param instanceIdentifier Resource that identifies this instance
043: * @param write if true, the statement (this, rdf:type, TYPE) is written to the model
044: *
045: * [Generated from RDFReactor template rule #c1]
046: */
047: protected GGG(Model model, URI classURI,
048: org.ontoware.rdf2go.model.node.Resource instanceIdentifier,
049: boolean write) {
050: super (model, classURI, instanceIdentifier, write);
051: }
052:
053: // public constructors
054:
055: /**
056: * Returns a Java wrapper over an RDF object, identified by URI.
057: * Creating two wrappers for the same instanceURI is legal.
058: * @param model RDF2GO Model implementation, see http://rdf2go.ontoware.org
059: * @param instanceIdentifier an RDF2Go Resource identifying this instance
060: * @param write if true, the statement (this, rdf:type, TYPE) is written to the model
061: *
062: * [Generated from RDFReactor template rule #c2]
063: */
064: public GGG(Model model,
065: org.ontoware.rdf2go.model.node.Resource instanceIdentifier,
066: boolean write) {
067: super (model, RDFS_CLASS, instanceIdentifier, write);
068: }
069:
070: /**
071: * Returns a Java wrapper over an RDF object, identified by a URI, given as a String.
072: * Creating two wrappers for the same URI is legal.
073: * @param model RDF2GO Model implementation, see http://rdf2go.ontoware.org
074: * @param uriString a URI given as a String
075: * @param write if true, the statement (this, rdf:type, TYPE) is written to the model
076: * @throws ModelRuntimeException if URI syntax is wrong
077: *
078: * [Generated from RDFReactor template rule #c7]
079: */
080: public GGG(Model model, String uriString, boolean write)
081: throws ModelRuntimeException {
082: super (model, RDFS_CLASS, new URIImpl(uriString, false), write);
083: }
084:
085: /**
086: * Returns a Java wrapper over an RDF object, identified by a blank node.
087: * Creating two wrappers for the same blank node is legal.
088: * @param model RDF2GO Model implementation, see http://rdf2go.ontoware.org
089: * @param bnode BlankNode of this instance
090: * @param write if true, the statement (this, rdf:type, TYPE) is written to the model
091: *
092: * [Generated from RDFReactor template rule #c8]
093: */
094: public GGG(Model model, BlankNode bnode, boolean write) {
095: super (model, RDFS_CLASS, bnode, write);
096: }
097:
098: /**
099: * Returns a Java wrapper over an RDF object, identified by
100: * a randomly generated URI.
101: * Creating two wrappers results in different URIs.
102: * @param model RDF2GO Model implementation, see http://rdf2go.ontoware.org
103: * @param write if true, the statement (this, rdf:type, TYPE) is written to the model
104: *
105: * [Generated from RDFReactor template rule #c9]
106: */
107: public GGG(Model model, boolean write) {
108: super (model, RDFS_CLASS, model.newRandomUniqueURI(), write);
109: }
110:
111: ///////////////////////////////////////////////////////////////////
112: // typing
113:
114: /**
115: * Create a new instance of this class in the model.
116: * That is, create the statement (instanceResource, RDF.type, urn:ex:GGG).
117: * @param model an RDF2Go model
118: * @param instanceResource an RDF2Go resource
119: *
120: * [Generated from RDFReactor template rule #class1]
121: */
122: public static void createInstance(Model model,
123: org.ontoware.rdf2go.model.node.Resource instanceResource) {
124: Base.createInstance(model, RDFS_CLASS, instanceResource);
125: }
126:
127: /**
128: * @param model an RDF2Go model
129: * @param instanceResource an RDF2Go resource
130: * @return true if instanceResource is an instance of this class in the model
131: *
132: * [Generated from RDFReactor template rule #class2]
133: */
134: public static boolean hasInstance(Model model,
135: org.ontoware.rdf2go.model.node.Resource instanceResource) {
136: return Base.hasInstance(model, RDFS_CLASS, instanceResource);
137: }
138:
139: /**
140: * @param model an RDF2Go model
141: * @return all instances of this class in Model 'model' as RDF resources
142: *
143: * [Generated from RDFReactor template rule #class3]
144: */
145: public static ClosableIterator<org.ontoware.rdf2go.model.node.Resource> getAllInstances(
146: Model model) {
147: return Base.getAllInstances(model, RDFS_CLASS,
148: org.ontoware.rdf2go.model.node.Resource.class);
149: }
150:
151: /**
152: * @param model an RDF2Go model
153: * @return all instances of this class in Model 'model' as a ReactorResult,
154: * which can conveniently be converted to iterator, list or array.
155: *
156: * [Generated from RDFReactor template rule #class3-as]
157: */
158: public static ReactorResult<? extends GGG> getAllInstance_as(
159: Model model) {
160: return Base.getAllInstances_as(model, RDFS_CLASS, GGG.class);
161: }
162:
163: /**
164: * Delete all rdf:type from this instance. Other triples are not affected.
165: * @param model an RDF2Go model
166: * @param instanceResource an RDF2Go resource
167: *
168: * [Generated from RDFReactor template rule #class4]
169: */
170: public static void deleteInstance(Model model,
171: org.ontoware.rdf2go.model.node.Resource instanceResource) {
172: Base.deleteInstance(model, RDFS_CLASS, instanceResource);
173: }
174:
175: ///////////////////////////////////////////////////////////////////
176: // property access methods
177:
178: /**
179: * Get all values of property Uuu1 as an Iterator over RDF2Go nodes
180: * @param model an RDF2Go model
181: * @param resource an RDF2Go resource
182: * @return a ClosableIterator of RDF2Go Nodes
183: *
184: * [Generated from RDFReactor template rule #get7static]
185: */
186: public static ClosableIterator<org.ontoware.rdf2go.model.node.Node> getAllUuu1_asNode(
187: Model model,
188: org.ontoware.rdf2go.model.node.Resource instanceResource) {
189: return (ClosableIterator<org.ontoware.rdf2go.model.node.Node>) Base
190: .getAll_asNode(model, instanceResource, UUU1);
191: }
192:
193: /**
194: * Get all values of property Uuu1 as a ReactorResult of RDF2Go nodes
195: * @param model an RDF2Go model
196: * @param resource an RDF2Go resource
197: * @return a List of RDF2Go Nodes
198: *
199: * [Generated from RDFReactor template rule #get7static-reactor-result]
200: */
201: public static ReactorResult<org.ontoware.rdf2go.model.node.Node> getAllUuu1_asNode_(
202: Model model,
203: org.ontoware.rdf2go.model.node.Resource instanceResource) {
204: return (ReactorResult<org.ontoware.rdf2go.model.node.Node>) Base
205: .getAll_as(model, instanceResource, UUU1,
206: org.ontoware.rdf2go.model.node.Node.class);
207: }
208:
209: /**
210: * Get all values of property Uuu1 as an Iterator over RDF2Go nodes
211: * @return a ClosableIterator of RDF2Go Nodes
212: *
213: * [Generated from RDFReactor template rule #get8dynamic]
214: */
215: public ClosableIterator<org.ontoware.rdf2go.model.node.Node> getAllUuu1_asNode() {
216: return (ClosableIterator<org.ontoware.rdf2go.model.node.Node>) Base
217: .getAll_asNode(this .model, this .getResource(), UUU1);
218: }
219:
220: /**
221: * Get all values of property Uuu1 as a ReactorResult of RDF2Go nodes
222: * @return a List of RDF2Go Nodes
223: *
224: * [Generated from RDFReactor template rule #get8dynamic-reactor-result]
225: */
226: public ReactorResult<org.ontoware.rdf2go.model.node.Node> getAllUuu1_asNode_() {
227: return (ReactorResult<org.ontoware.rdf2go.model.node.Node>) Base
228: .getAll_as(this .model, this .getResource(), UUU1,
229: org.ontoware.rdf2go.model.node.Node.class);
230: }
231:
232: /**
233: * Get all values of property Uuu1 as ReactorResult of III
234: * @param model an RDF2Go model
235: * @param resource an RDF2Go resource
236: * @return a ClosableIterator of III
237: *
238: * [Generated from RDFReactor template rule #get9static]
239: */
240: public static ReactorResult<III> getAllUuu1_asIII(Model model,
241: org.ontoware.rdf2go.model.node.Resource instanceResource) {
242: return Base.getAll_as(model, instanceResource, UUU1, III.class);
243: }
244:
245: /**
246: * Get all values of property Uuu1 as ReactorResult of III
247: * @return a ClosableIterator of III
248: *
249: * [Generated from RDFReactor template rule #get10dynamic]
250: */
251: public ReactorResult<III> getAllUuu1_asIII() {
252: return Base.getAll_as(this .model, this .getResource(), UUU1,
253: III.class);
254: }
255:
256: /**
257: * Get all values of property Uuu1 as ReactorResult of III
258: * @param model an RDF2Go model
259: * @param resource an RDF2Go resource
260: * @return a ClosableIterator of HHH
261: *
262: * [Generated from RDFReactor template rule #get9static]
263: */
264: public static ReactorResult<HHH> getAllUuu1_asHHH(Model model,
265: org.ontoware.rdf2go.model.node.Resource instanceResource) {
266: return Base.getAll_as(model, instanceResource, UUU1, HHH.class);
267: }
268:
269: /**
270: * Get all values of property Uuu1 as ReactorResult of HHH
271: * @return a ClosableIterator of HHH
272: *
273: * [Generated from RDFReactor template rule #get10dynamic]
274: */
275: public ReactorResult<HHH> getAllUuu1_asHHH() {
276: return Base.getAll_as(this .model, this .getResource(), UUU1,
277: HHH.class);
278: }
279:
280: /**
281: * Get all values of property Uuu1 * @param model an RDF2Go model
282: * @param resource an RDF2Go resource
283: * @return a ClosableIterator of $type
284: *
285: * [Generated from RDFReactor template rule #get11static]
286: */
287: public static ClosableIterator<III> getAllUuu1(Model model,
288: org.ontoware.rdf2go.model.node.Resource instanceResource) {
289: return Base.getAll(model, instanceResource, UUU1, III.class);
290: }
291:
292: /**
293: * Get all values of property Uuu1 as a ReactorResult of III
294: * @param model an RDF2Go model
295: * @param resource an RDF2Go resource
296: * @return a ReactorResult of $type which can conveniently be converted to iterator, list or array
297: *
298: * [Generated from RDFReactor template rule #get11static-reactorresult]
299: */
300: public static ReactorResult<III> getAllUuu1_as(Model model,
301: org.ontoware.rdf2go.model.node.Resource instanceResource) {
302: return Base.getAll_as(model, instanceResource, UUU1, III.class);
303: }
304:
305: /**
306: * Get all values of property Uuu1 * @return a ClosableIterator of $type
307: *
308: * [Generated from RDFReactor template rule #get12dynamic]
309: */
310: public ClosableIterator<III> getAllUuu1() {
311: return Base.getAll(this .model, this .getResource(), UUU1,
312: III.class);
313: }
314:
315: /**
316: * Get all values of property Uuu1 as a ReactorResult of III
317: * @return a ReactorResult of $type which can conveniently be converted to iterator, list or array
318: *
319: * [Generated from RDFReactor template rule #get12dynamic-reactorresult]
320: */
321: public ReactorResult<III> getAllUuu1_as() {
322: return Base.getAll_as(this .model, this .getResource(), UUU1,
323: III.class);
324: }
325:
326: /**
327: * Adds a value to property Uuu1 as an RDF2Go node
328: * @param model an RDF2Go model
329: * @param resource an RDF2Go resource
330: * @param value the value to be added
331: *
332: * [Generated from RDFReactor template rule #add1static]
333: */
334: public static void addUuu1(Model model,
335: org.ontoware.rdf2go.model.node.Resource instanceResource,
336: org.ontoware.rdf2go.model.node.Node value) {
337: Base.add(model, instanceResource, UUU1, value);
338: }
339:
340: /**
341: * Adds a value to property Uuu1 as an RDF2Go node
342: * @param value the value to be added
343: *
344: * [Generated from RDFReactor template rule #add1dynamic]
345: */
346: public void addUuu1(org.ontoware.rdf2go.model.node.Node value) {
347: Base.add(this .model, this .getResource(), UUU1, value);
348: }
349:
350: /**
351: * Adds a value to property Uuu1 from an instance of III
352: * @param model an RDF2Go model
353: * @param resource an RDF2Go resource
354: *
355: * [Generated from RDFReactor template rule #add3static]
356: */
357: public static void addUuu1(Model model,
358: org.ontoware.rdf2go.model.node.Resource instanceResource,
359: III value) {
360: Base.add(model, instanceResource, UUU1, value);
361: }
362:
363: /**
364: * Adds a value to property Uuu1 from an instance of III
365: *
366: * [Generated from RDFReactor template rule #add4dynamic]
367: */
368: public void addUuu1(III value) {
369: Base.add(this .model, this .getResource(), UUU1, value);
370: }
371:
372: /**
373: * Adds a value to property Uuu1 from an instance of HHH
374: * @param model an RDF2Go model
375: * @param resource an RDF2Go resource
376: *
377: * [Generated from RDFReactor template rule #add3static]
378: */
379: public static void addUuu1(Model model,
380: org.ontoware.rdf2go.model.node.Resource instanceResource,
381: HHH value) {
382: Base.add(model, instanceResource, UUU1, value);
383: }
384:
385: /**
386: * Adds a value to property Uuu1 from an instance of HHH
387: *
388: * [Generated from RDFReactor template rule #add4dynamic]
389: */
390: public void addUuu1(HHH value) {
391: Base.add(this .model, this .getResource(), UUU1, value);
392: }
393:
394: /**
395: * Sets a value of property Uuu1 from an RDF2Go node.
396: * First, all existing values are removed, then this value is added.
397: * Cardinality constraints are not checked, but this method exists only for properties with
398: * no minCardinality or minCardinality == 1.
399: * @param model an RDF2Go model
400: * @param resource an RDF2Go resource
401: * @param value the value to be set
402: *
403: * [Generated from RDFReactor template rule #set1static]
404: */
405: public static void setUuu1(Model model,
406: org.ontoware.rdf2go.model.node.Resource instanceResource,
407: org.ontoware.rdf2go.model.node.Node value) {
408: Base.set(model, instanceResource, UUU1, value);
409: }
410:
411: /**
412: * Sets a value of property Uuu1 from an RDF2Go node.
413: * First, all existing values are removed, then this value is added.
414: * Cardinality constraints are not checked, but this method exists only for properties with
415: * no minCardinality or minCardinality == 1.
416: * @param value the value to be added
417: *
418: * [Generated from RDFReactor template rule #set1dynamic]
419: */
420: public void setUuu1(org.ontoware.rdf2go.model.node.Node value) {
421: Base.set(this .model, this .getResource(), UUU1, value);
422: }
423:
424: /**
425: * Sets a value of property Uuu1 from an instance of III
426: * First, all existing values are removed, then this value is added.
427: * Cardinality constraints are not checked, but this method exists only for properties with
428: * no minCardinality or minCardinality == 1.
429: * @param model an RDF2Go model
430: * @param resource an RDF2Go resource
431: * @param value the value to be added
432: *
433: * [Generated from RDFReactor template rule #set3static]
434: */
435: public static void setUuu1(Model model,
436: org.ontoware.rdf2go.model.node.Resource instanceResource,
437: III value) {
438: Base.set(model, instanceResource, UUU1, value);
439: }
440:
441: /**
442: * Sets a value of property Uuu1 from an instance of III
443: * First, all existing values are removed, then this value is added.
444: * Cardinality constraints are not checked, but this method exists only for properties with
445: * no minCardinality or minCardinality == 1.
446: * @param value the value to be added
447: *
448: * [Generated from RDFReactor template rule #set4dynamic]
449: */
450: public void setUuu1(III value) {
451: Base.set(this .model, this .getResource(), UUU1, value);
452: }
453:
454: /**
455: * Sets a value of property Uuu1 from an instance of HHH
456: * First, all existing values are removed, then this value is added.
457: * Cardinality constraints are not checked, but this method exists only for properties with
458: * no minCardinality or minCardinality == 1.
459: * @param model an RDF2Go model
460: * @param resource an RDF2Go resource
461: * @param value the value to be added
462: *
463: * [Generated from RDFReactor template rule #set3static]
464: */
465: public static void setUuu1(Model model,
466: org.ontoware.rdf2go.model.node.Resource instanceResource,
467: HHH value) {
468: Base.set(model, instanceResource, UUU1, value);
469: }
470:
471: /**
472: * Sets a value of property Uuu1 from an instance of HHH
473: * First, all existing values are removed, then this value is added.
474: * Cardinality constraints are not checked, but this method exists only for properties with
475: * no minCardinality or minCardinality == 1.
476: * @param value the value to be added
477: *
478: * [Generated from RDFReactor template rule #set4dynamic]
479: */
480: public void setUuu1(HHH value) {
481: Base.set(this .model, this .getResource(), UUU1, value);
482: }
483:
484: /**
485: * Removes a value of property Uuu1 as an RDF2Go node
486: * @param model an RDF2Go model
487: * @param resource an RDF2Go resource
488: * @param value the value to be removed
489: *
490: * [Generated from RDFReactor template rule #remove1static]
491: */
492: public static void removeUuu1(Model model,
493: org.ontoware.rdf2go.model.node.Resource instanceResource,
494: org.ontoware.rdf2go.model.node.Node value) {
495: Base.remove(model, instanceResource, UUU1, value);
496: }
497:
498: /**
499: * Removes a value of property Uuu1 as an RDF2Go node
500: * @param value the value to be removed
501: *
502: * [Generated from RDFReactor template rule #remove1dynamic]
503: */
504: public void removeUuu1(org.ontoware.rdf2go.model.node.Node value) {
505: Base.remove(this .model, this .getResource(), UUU1, value);
506: }
507:
508: /**
509: * Removes a value of property Uuu1 given as an instance of III
510: * @param model an RDF2Go model
511: * @param resource an RDF2Go resource
512: * @param value the value to be removed
513: *
514: * [Generated from RDFReactor template rule #remove3static]
515: */
516: public static void removeUuu1(Model model,
517: org.ontoware.rdf2go.model.node.Resource instanceResource,
518: III value) {
519: Base.remove(model, instanceResource, UUU1, value);
520: }
521:
522: /**
523: * Removes a value of property Uuu1 given as an instance of III
524: * @param value the value to be removed
525: *
526: * [Generated from RDFReactor template rule #remove4dynamic]
527: */
528: public void removeUuu1(III value) {
529: Base.remove(this .model, this .getResource(), UUU1, value);
530: }
531:
532: /**
533: * Removes a value of property Uuu1 given as an instance of HHH
534: * @param model an RDF2Go model
535: * @param resource an RDF2Go resource
536: * @param value the value to be removed
537: *
538: * [Generated from RDFReactor template rule #remove3static]
539: */
540: public static void removeUuu1(Model model,
541: org.ontoware.rdf2go.model.node.Resource instanceResource,
542: HHH value) {
543: Base.remove(model, instanceResource, UUU1, value);
544: }
545:
546: /**
547: * Removes a value of property Uuu1 given as an instance of HHH
548: * @param value the value to be removed
549: *
550: * [Generated from RDFReactor template rule #remove4dynamic]
551: */
552: public void removeUuu1(HHH value) {
553: Base.remove(this .model, this .getResource(), UUU1, value);
554: }
555:
556: /**
557: * Removes all values of property Uuu1 * @param model an RDF2Go model
558: * @param resource an RDF2Go resource
559: *
560: * [Generated from RDFReactor template rule #removeall1static]
561: */
562: public static void removeAllUuu1(Model model,
563: org.ontoware.rdf2go.model.node.Resource instanceResource) {
564: Base.removeAll(model, instanceResource, UUU1);
565: }
566:
567: /**
568: * Removes all values of property Uuu1 *
569: * [Generated from RDFReactor template rule #removeall1dynamic]
570: */
571: public void addUuu1() {
572: Base.removeAll(this.model, this.getResource(), UUU1);
573: }
574: }
|