001: /**
002: * generated by http://RDFReactor.semweb4j.org ($Id: CodeGenerator.java 1046 2008-01-26 14:38:26Z max.at.xam.de $) on 16.03.08 18:20
003: */package org.ontoware.semversion.impl.generated;
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: import org.ontoware.rdfreactor.runtime.CardinalityException;
014:
015: /**
016: * This class manages access to these properties:
017: * <ul>
018: * <li> Root </li>
019: * <li> Version </li>
020: * </ul>
021: *
022: * This class was generated by <a href="http://RDFReactor.semweb4j.org">RDFReactor</a> on 16.03.08 18:20
023: */
024: public class VersionedModel extends VersionedItem {
025:
026: /** http://purl.org/net/semversion#VersionedModel */
027: public static final URI RDFS_CLASS = new URIImpl(
028: "http://purl.org/net/semversion#VersionedModel", false);
029:
030: /** http://purl.org/net/semversion#hasRoot */
031: public static final URI ROOT = new URIImpl(
032: "http://purl.org/net/semversion#hasRoot", false);
033:
034: /** http://purl.org/net/semversion#hasVersion */
035: public static final URI VERSION = new URIImpl(
036: "http://purl.org/net/semversion#hasVersion", false);
037:
038: /** all property-URIs with this class as domain */
039: public static final URI[] MANAGED_URIS = {
040: new URIImpl("http://purl.org/net/semversion#hasRoot", false),
041: new URIImpl("http://purl.org/net/semversion#hasVersion",
042: false) };
043:
044: // protected constructors needed for inheritance
045:
046: /**
047: * Returns a Java wrapper over an RDF object, identified by URI.
048: * Creating two wrappers for the same instanceURI is legal.
049: * @param model RDF2GO Model implementation, see http://rdf2go.semweb4j.org
050: * @param classURI URI of RDFS class
051: * @param instanceIdentifier Resource that identifies this instance
052: * @param write if true, the statement (this, rdf:type, TYPE) is written to the model
053: *
054: * [Generated from RDFReactor template rule #c1]
055: */
056: protected VersionedModel(Model model, URI classURI,
057: org.ontoware.rdf2go.model.node.Resource instanceIdentifier,
058: boolean write) {
059: super (model, classURI, instanceIdentifier, write);
060: }
061:
062: // public constructors
063:
064: /**
065: * Returns a Java wrapper over an RDF object, identified by URI.
066: * Creating two wrappers for the same instanceURI is legal.
067: * @param model RDF2GO Model implementation, see http://rdf2go.ontoware.org
068: * @param instanceIdentifier an RDF2Go Resource identifying this instance
069: * @param write if true, the statement (this, rdf:type, TYPE) is written to the model
070: *
071: * [Generated from RDFReactor template rule #c2]
072: */
073: public VersionedModel(Model model,
074: org.ontoware.rdf2go.model.node.Resource instanceIdentifier,
075: boolean write) {
076: super (model, RDFS_CLASS, instanceIdentifier, write);
077: }
078:
079: /**
080: * Returns a Java wrapper over an RDF object, identified by a URI, given as a String.
081: * Creating two wrappers for the same URI is legal.
082: * @param model RDF2GO Model implementation, see http://rdf2go.ontoware.org
083: * @param uriString a URI given as a String
084: * @param write if true, the statement (this, rdf:type, TYPE) is written to the model
085: * @throws ModelRuntimeException if URI syntax is wrong
086: *
087: * [Generated from RDFReactor template rule #c7]
088: */
089: public VersionedModel(Model model, String uriString, boolean write)
090: throws ModelRuntimeException {
091: super (model, RDFS_CLASS, new URIImpl(uriString, false), write);
092: }
093:
094: /**
095: * Returns a Java wrapper over an RDF object, identified by a blank node.
096: * Creating two wrappers for the same blank node is legal.
097: * @param model RDF2GO Model implementation, see http://rdf2go.ontoware.org
098: * @param bnode BlankNode of this instance
099: * @param write if true, the statement (this, rdf:type, TYPE) is written to the model
100: *
101: * [Generated from RDFReactor template rule #c8]
102: */
103: public VersionedModel(Model model, BlankNode bnode, boolean write) {
104: super (model, RDFS_CLASS, bnode, write);
105: }
106:
107: /**
108: * Returns a Java wrapper over an RDF object, identified by
109: * a randomly generated URI.
110: * Creating two wrappers results in different URIs.
111: * @param model RDF2GO Model implementation, see http://rdf2go.ontoware.org
112: * @param write if true, the statement (this, rdf:type, TYPE) is written to the model
113: *
114: * [Generated from RDFReactor template rule #c9]
115: */
116: public VersionedModel(Model model, boolean write) {
117: super (model, RDFS_CLASS, model.newRandomUniqueURI(), write);
118: }
119:
120: ///////////////////////////////////////////////////////////////////
121: // typing
122:
123: /**
124: * Create a new instance of this class in the model.
125: * That is, create the statement (instanceResource, RDF.type, http://purl.org/net/semversion#VersionedModel).
126: * @param model an RDF2Go model
127: * @param instanceResource an RDF2Go resource
128: *
129: * [Generated from RDFReactor template rule #class1]
130: */
131: public static void createInstance(Model model,
132: org.ontoware.rdf2go.model.node.Resource instanceResource) {
133: Base.createInstance(model, RDFS_CLASS, instanceResource);
134: }
135:
136: /**
137: * @param model an RDF2Go model
138: * @param instanceResource an RDF2Go resource
139: * @return true if instanceResource is an instance of this class in the model
140: *
141: * [Generated from RDFReactor template rule #class2]
142: */
143: public static boolean hasInstance(Model model,
144: org.ontoware.rdf2go.model.node.Resource instanceResource) {
145: return Base.hasInstance(model, RDFS_CLASS, instanceResource);
146: }
147:
148: /**
149: * @param model an RDF2Go model
150: * @return all instances of this class in Model 'model' as RDF resources
151: *
152: * [Generated from RDFReactor template rule #class3]
153: */
154: public static ClosableIterator<org.ontoware.rdf2go.model.node.Resource> getAllInstances(
155: Model model) {
156: return Base.getAllInstances(model, RDFS_CLASS,
157: org.ontoware.rdf2go.model.node.Resource.class);
158: }
159:
160: /**
161: * @param model an RDF2Go model
162: * @return all instances of this class in Model 'model' as a ReactorResult,
163: * which can conveniently be converted to iterator, list or array.
164: *
165: * [Generated from RDFReactor template rule #class3-as]
166: */
167: public static ReactorResult<? extends VersionedModel> getAllInstance_as(
168: Model model) {
169: return Base.getAllInstances_as(model, RDFS_CLASS,
170: VersionedModel.class);
171: }
172:
173: /**
174: * Delete all rdf:type from this instance. Other triples are not affected.
175: * To delete more, use deleteAllProperties
176: * @param model an RDF2Go model
177: * @param instanceResource an RDF2Go resource
178: *
179: * [Generated from RDFReactor template rule #class4]
180: */
181: public static void deleteInstance(Model model,
182: org.ontoware.rdf2go.model.node.Resource instanceResource) {
183: Base.deleteInstance(model, RDFS_CLASS, instanceResource);
184: }
185:
186: /**
187: * Delete all (this, *, *), i.e. including rdf:type
188: * @param model an RDF2Go model
189: * @param resource
190: */
191: public static void deleteAllProperties(Model model,
192: org.ontoware.rdf2go.model.node.Resource instanceResource) {
193: Base.deleteAllProperties(model, instanceResource);
194: }
195:
196: ///////////////////////////////////////////////////////////////////
197: // property access methods
198:
199: /**
200: * @param model an RDF2Go model
201: * @param objectValue
202: * @return all A's as RDF resources, that have a relation 'VersionedModel' to this VersionedModel instance
203: *
204: * [Generated from RDFReactor template rule #getallinverse1static]
205: */
206: public static ClosableIterator<org.ontoware.rdf2go.model.node.Resource> getAllVersionedModel_Inverse(
207: Model model, Object objectValue) {
208: return Base.getAll_Inverse(model, Thing.VERSIONEDMODEL,
209: objectValue);
210: }
211:
212: /**
213: * @param model an RDF2Go model
214: * @param objectValue
215: * @return all A's as RDF resources, that have a relation 'Container' to this VersionedModel instance
216: *
217: * [Generated from RDFReactor template rule #getallinverse1static]
218: */
219: public static ClosableIterator<org.ontoware.rdf2go.model.node.Resource> getAllContainer_Inverse(
220: Model model, Object objectValue) {
221: return Base.getAll_Inverse(model, Version.CONTAINER,
222: objectValue);
223: }
224:
225: /**
226: * Check if org.ontoware.rdfreactor.generator.java.JProperty@d12eea has at least one value set
227: * @param model an RDF2Go model
228: * @param resource an RDF2Go resource
229: * @return true if this property has at least one value
230: *
231: * [Generated from RDFReactor template rule #get0has-static]
232: */
233: public static boolean hasRoot(Model model,
234: org.ontoware.rdf2go.model.node.Resource instanceResource) {
235: return Base.has(model, instanceResource, ROOT);
236: }
237:
238: /**
239: * Check if org.ontoware.rdfreactor.generator.java.JProperty@d12eea has at least one value set
240: * @return true if this property has at least one value
241: *
242: * [Generated from RDFReactor template rule #get0has-dynamic]
243: */
244: public boolean hasRoot() {
245: return Base.has(this .model, this .getResource(), ROOT);
246: }
247:
248: /**
249: * Get single value of property Root as an RDF2Go node
250: * @param model an RDF2Go model
251: * @param resource an RDF2Go resource
252: * @return the single value or null if no value is found
253: * @throws RDFDataException at runtime, if the property has multiple values
254: *
255: * [Generated from RDFReactor template rule #get1static]
256: */
257: public static org.ontoware.rdf2go.model.node.Node getRoot_asNode(
258: Model model,
259: org.ontoware.rdf2go.model.node.Resource instanceResource) {
260: return (org.ontoware.rdf2go.model.node.Node) Base.get_asNode(
261: model, instanceResource, ROOT);
262: }
263:
264: /**
265: * Get single value of property Root as an RDF2Go node
266: * @return the single value or null if no value is found
267: * @throws RDFDataException, if the property has multiple values
268: *
269: * [Generated from RDFReactor template rule #get2dynamic]
270: */
271: public org.ontoware.rdf2go.model.node.Node getRoot_asNode() {
272: return (org.ontoware.rdf2go.model.node.Node) Base.get_asNode(
273: this .model, this .getResource(), ROOT);
274: }
275:
276: /**
277: * Get single value of property Root * @param model an RDF2Go model
278: * @param resource an RDF2Go resource
279: * @return the single value or null if no value is found
280: * @throws RDFDataException, if the property has multiple values
281: *
282: * [Generated from RDFReactor template rule #get5static]
283: */
284: public static Version getRoot(Model model,
285: org.ontoware.rdf2go.model.node.Resource instanceResource) {
286: return (Version) Base.get(model, instanceResource, ROOT,
287: Version.class);
288: }
289:
290: /**
291: * Get single value of property Root * @return the single value or null if no value is found
292: * @throws RDFDataException, if the property has multiple values
293: *
294: * [Generated from RDFReactor template rule #get6dynamic]
295: */
296: public Version getRoot() {
297: return (Version) Base.get(this .model, this .getResource(), ROOT,
298: Version.class);
299: }
300:
301: /**
302: * Adds a value to property Root as an RDF2Go node
303: * @param model an RDF2Go model
304: * @param resource an RDF2Go resource
305: * @param value the value to be added
306: * @throws CardinalityException if adding a value would bring the number
307: * of property values above the cardinality constraint.
308: *
309: * [Generated from RDFReactor template rule #add5static]
310: */
311: public static void addRoot(Model model,
312: org.ontoware.rdf2go.model.node.Resource instanceResource,
313: org.ontoware.rdf2go.model.node.Node value)
314: throws CardinalityException {
315: Base.add(model, instanceResource, ROOT, value, 1);
316: }
317:
318: /**
319: * Adds a value to property Root as an RDF2Go node
320: * @param value the value to be added
321: * @throws CardinalityException if adding a value would bring the number
322: * of property values above the cardinality constraint.
323: *
324: * [Generated from RDFReactor template rule #add6dynamic]
325: */
326: public void addRoot(org.ontoware.rdf2go.model.node.Node value)
327: throws CardinalityException {
328: Base.add(this .model, this .getResource(), ROOT, value, 1);
329: }
330:
331: /**
332: * Adds a value to property Root from an instance of Version
333: * @param model an RDF2Go model
334: * @param resource an RDF2Go resource
335: * @throws CardinalityException if adding a value would bring the number
336: * of property values above the cardinality constraint.
337: *
338: * [Generated from RDFReactor template rule #add7static]
339: */
340: public static void addRoot(Model model,
341: org.ontoware.rdf2go.model.node.Resource instanceResource,
342: Version value) throws CardinalityException {
343: Base.add(model, instanceResource, ROOT, value, 1);
344: }
345:
346: /**
347: * Adds a value to property Root from an instance of Version
348: * @throws CardinalityException if adding a value would bring the number
349: * of property values above the cardinality constraint.
350: *
351: * [Generated from RDFReactor template rule #add8dynamic]
352: */
353: public void addRoot(Version value) throws CardinalityException {
354: Base.add(this .model, this .getResource(), ROOT, value, 1);
355: }
356:
357: /**
358: * Sets a value of property Root from an RDF2Go node.
359: * First, all existing values are removed, then this value is added.
360: * Cardinality constraints are not checked, but this method exists only for properties with
361: * no minCardinality or minCardinality == 1.
362: * @param model an RDF2Go model
363: * @param resource an RDF2Go resource
364: * @param value the value to be set
365: *
366: * [Generated from RDFReactor template rule #set1static]
367: */
368: public static void setRoot(Model model,
369: org.ontoware.rdf2go.model.node.Resource instanceResource,
370: org.ontoware.rdf2go.model.node.Node value) {
371: Base.set(model, instanceResource, ROOT, value);
372: }
373:
374: /**
375: * Sets a value of property Root from an RDF2Go node.
376: * First, all existing values are removed, then this value is added.
377: * Cardinality constraints are not checked, but this method exists only for properties with
378: * no minCardinality or minCardinality == 1.
379: * @param value the value to be added
380: *
381: * [Generated from RDFReactor template rule #set1dynamic]
382: */
383: public void setRoot(org.ontoware.rdf2go.model.node.Node value) {
384: Base.set(this .model, this .getResource(), ROOT, value);
385: }
386:
387: /**
388: * Sets a value of property Root from an instance of Version
389: * First, all existing values are removed, then this value is added.
390: * Cardinality constraints are not checked, but this method exists only for properties with
391: * no minCardinality or minCardinality == 1.
392: * @param model an RDF2Go model
393: * @param resource an RDF2Go resource
394: * @param value the value to be added
395: *
396: * [Generated from RDFReactor template rule #set3static]
397: */
398: public static void setRoot(Model model,
399: org.ontoware.rdf2go.model.node.Resource instanceResource,
400: Version value) {
401: Base.set(model, instanceResource, ROOT, value);
402: }
403:
404: /**
405: * Sets a value of property Root from an instance of Version
406: * First, all existing values are removed, then this value is added.
407: * Cardinality constraints are not checked, but this method exists only for properties with
408: * no minCardinality or minCardinality == 1.
409: * @param value the value to be added
410: *
411: * [Generated from RDFReactor template rule #set4dynamic]
412: */
413: public void setRoot(Version value) {
414: Base.set(this .model, this .getResource(), ROOT, value);
415: }
416:
417: /**
418: * Removes a value of property Root as an RDF2Go node
419: * @param model an RDF2Go model
420: * @param resource an RDF2Go resource
421: * @param value the value to be removed
422: *
423: * [Generated from RDFReactor template rule #remove1static]
424: */
425: public static void removeRoot(Model model,
426: org.ontoware.rdf2go.model.node.Resource instanceResource,
427: org.ontoware.rdf2go.model.node.Node value) {
428: Base.remove(model, instanceResource, ROOT, value);
429: }
430:
431: /**
432: * Removes a value of property Root as an RDF2Go node
433: * @param value the value to be removed
434: *
435: * [Generated from RDFReactor template rule #remove1dynamic]
436: */
437: public void removeRoot(org.ontoware.rdf2go.model.node.Node value) {
438: Base.remove(this .model, this .getResource(), ROOT, value);
439: }
440:
441: /**
442: * Removes a value of property Root given as an instance of Version
443: * @param model an RDF2Go model
444: * @param resource an RDF2Go resource
445: * @param value the value to be removed
446: *
447: * [Generated from RDFReactor template rule #remove3static]
448: */
449: public static void removeRoot(Model model,
450: org.ontoware.rdf2go.model.node.Resource instanceResource,
451: Version value) {
452: Base.remove(model, instanceResource, ROOT, value);
453: }
454:
455: /**
456: * Removes a value of property Root given as an instance of Version
457: * @param value the value to be removed
458: *
459: * [Generated from RDFReactor template rule #remove4dynamic]
460: */
461: public void removeRoot(Version value) {
462: Base.remove(this .model, this .getResource(), ROOT, value);
463: }
464:
465: /**
466: * Removes all values of property Root * @param model an RDF2Go model
467: * @param resource an RDF2Go resource
468: *
469: * [Generated from RDFReactor template rule #removeall1static]
470: */
471: public static void removeAllRoot(Model model,
472: org.ontoware.rdf2go.model.node.Resource instanceResource) {
473: Base.removeAll(model, instanceResource, ROOT);
474: }
475:
476: /**
477: * Removes all values of property Root *
478: * [Generated from RDFReactor template rule #removeall1dynamic]
479: */
480: public void addRoot() {
481: Base.removeAll(this .model, this .getResource(), ROOT);
482: }
483:
484: /**
485: * Check if org.ontoware.rdfreactor.generator.java.JProperty@739f3f has at least one value set
486: * @param model an RDF2Go model
487: * @param resource an RDF2Go resource
488: * @return true if this property has at least one value
489: *
490: * [Generated from RDFReactor template rule #get0has-static]
491: */
492: public static boolean hasVersion(Model model,
493: org.ontoware.rdf2go.model.node.Resource instanceResource) {
494: return Base.has(model, instanceResource, VERSION);
495: }
496:
497: /**
498: * Check if org.ontoware.rdfreactor.generator.java.JProperty@739f3f has at least one value set
499: * @return true if this property has at least one value
500: *
501: * [Generated from RDFReactor template rule #get0has-dynamic]
502: */
503: public boolean hasVersion() {
504: return Base.has(this .model, this .getResource(), VERSION);
505: }
506:
507: /**
508: * Get all values of property Version as an Iterator over RDF2Go nodes
509: * @param model an RDF2Go model
510: * @param resource an RDF2Go resource
511: * @return a ClosableIterator of RDF2Go Nodes
512: *
513: * [Generated from RDFReactor template rule #get7static]
514: */
515: public static ClosableIterator<org.ontoware.rdf2go.model.node.Node> getAllVersion_asNode(
516: Model model,
517: org.ontoware.rdf2go.model.node.Resource instanceResource) {
518: return (ClosableIterator<org.ontoware.rdf2go.model.node.Node>) Base
519: .getAll_asNode(model, instanceResource, VERSION);
520: }
521:
522: /**
523: * Get all values of property Version as a ReactorResult of RDF2Go nodes
524: * @param model an RDF2Go model
525: * @param resource an RDF2Go resource
526: * @return a List of RDF2Go Nodes
527: *
528: * [Generated from RDFReactor template rule #get7static-reactor-result]
529: */
530: public static ReactorResult<org.ontoware.rdf2go.model.node.Node> getAllVersion_asNode_(
531: Model model,
532: org.ontoware.rdf2go.model.node.Resource instanceResource) {
533: return (ReactorResult<org.ontoware.rdf2go.model.node.Node>) Base
534: .getAll_as(model, instanceResource, VERSION,
535: org.ontoware.rdf2go.model.node.Node.class);
536: }
537:
538: /**
539: * Get all values of property Version as an Iterator over RDF2Go nodes
540: * @return a ClosableIterator of RDF2Go Nodes
541: *
542: * [Generated from RDFReactor template rule #get8dynamic]
543: */
544: public ClosableIterator<org.ontoware.rdf2go.model.node.Node> getAllVersion_asNode() {
545: return (ClosableIterator<org.ontoware.rdf2go.model.node.Node>) Base
546: .getAll_asNode(this .model, this .getResource(), VERSION);
547: }
548:
549: /**
550: * Get all values of property Version as a ReactorResult of RDF2Go nodes
551: * @return a List of RDF2Go Nodes
552: *
553: * [Generated from RDFReactor template rule #get8dynamic-reactor-result]
554: */
555: public ReactorResult<org.ontoware.rdf2go.model.node.Node> getAllVersion_asNode_() {
556: return (ReactorResult<org.ontoware.rdf2go.model.node.Node>) Base
557: .getAll_as(this .model, this .getResource(), VERSION,
558: org.ontoware.rdf2go.model.node.Node.class);
559: }
560:
561: /**
562: * Get all values of property Version * @param model an RDF2Go model
563: * @param resource an RDF2Go resource
564: * @return a ClosableIterator of $type
565: *
566: * [Generated from RDFReactor template rule #get11static]
567: */
568: public static ClosableIterator<Version> getAllVersion(Model model,
569: org.ontoware.rdf2go.model.node.Resource instanceResource) {
570: return Base.getAll(model, instanceResource, VERSION,
571: Version.class);
572: }
573:
574: /**
575: * Get all values of property Version as a ReactorResult of Version
576: * @param model an RDF2Go model
577: * @param resource an RDF2Go resource
578: * @return a ReactorResult of $type which can conveniently be converted to iterator, list or array
579: *
580: * [Generated from RDFReactor template rule #get11static-reactorresult]
581: */
582: public static ReactorResult<Version> getAllVersion_as(Model model,
583: org.ontoware.rdf2go.model.node.Resource instanceResource) {
584: return Base.getAll_as(model, instanceResource, VERSION,
585: Version.class);
586: }
587:
588: /**
589: * Get all values of property Version * @return a ClosableIterator of $type
590: *
591: * [Generated from RDFReactor template rule #get12dynamic]
592: */
593: public ClosableIterator<Version> getAllVersion() {
594: return Base.getAll(this .model, this .getResource(), VERSION,
595: Version.class);
596: }
597:
598: /**
599: * Get all values of property Version as a ReactorResult of Version
600: * @return a ReactorResult of $type which can conveniently be converted to iterator, list or array
601: *
602: * [Generated from RDFReactor template rule #get12dynamic-reactorresult]
603: */
604: public ReactorResult<Version> getAllVersion_as() {
605: return Base.getAll_as(this .model, this .getResource(), VERSION,
606: Version.class);
607: }
608:
609: /**
610: * Adds a value to property Version as an RDF2Go node
611: * @param model an RDF2Go model
612: * @param resource an RDF2Go resource
613: * @param value the value to be added
614: *
615: * [Generated from RDFReactor template rule #add1static]
616: */
617: public static void addVersion(Model model,
618: org.ontoware.rdf2go.model.node.Resource instanceResource,
619: org.ontoware.rdf2go.model.node.Node value) {
620: Base.add(model, instanceResource, VERSION, value);
621: }
622:
623: /**
624: * Adds a value to property Version as an RDF2Go node
625: * @param value the value to be added
626: *
627: * [Generated from RDFReactor template rule #add1dynamic]
628: */
629: public void addVersion(org.ontoware.rdf2go.model.node.Node value) {
630: Base.add(this .model, this .getResource(), VERSION, value);
631: }
632:
633: /**
634: * Adds a value to property Version from an instance of Version
635: * @param model an RDF2Go model
636: * @param resource an RDF2Go resource
637: *
638: * [Generated from RDFReactor template rule #add3static]
639: */
640: public static void addVersion(Model model,
641: org.ontoware.rdf2go.model.node.Resource instanceResource,
642: Version value) {
643: Base.add(model, instanceResource, VERSION, value);
644: }
645:
646: /**
647: * Adds a value to property Version from an instance of Version
648: *
649: * [Generated from RDFReactor template rule #add4dynamic]
650: */
651: public void addVersion(Version value) {
652: Base.add(this .model, this .getResource(), VERSION, value);
653: }
654:
655: /**
656: * Sets a value of property Version from an RDF2Go node.
657: * First, all existing values are removed, then this value is added.
658: * Cardinality constraints are not checked, but this method exists only for properties with
659: * no minCardinality or minCardinality == 1.
660: * @param model an RDF2Go model
661: * @param resource an RDF2Go resource
662: * @param value the value to be set
663: *
664: * [Generated from RDFReactor template rule #set1static]
665: */
666: public static void setVersion(Model model,
667: org.ontoware.rdf2go.model.node.Resource instanceResource,
668: org.ontoware.rdf2go.model.node.Node value) {
669: Base.set(model, instanceResource, VERSION, value);
670: }
671:
672: /**
673: * Sets a value of property Version from an RDF2Go node.
674: * First, all existing values are removed, then this value is added.
675: * Cardinality constraints are not checked, but this method exists only for properties with
676: * no minCardinality or minCardinality == 1.
677: * @param value the value to be added
678: *
679: * [Generated from RDFReactor template rule #set1dynamic]
680: */
681: public void setVersion(org.ontoware.rdf2go.model.node.Node value) {
682: Base.set(this .model, this .getResource(), VERSION, value);
683: }
684:
685: /**
686: * Sets a value of property Version from an instance of Version
687: * First, all existing values are removed, then this value is added.
688: * Cardinality constraints are not checked, but this method exists only for properties with
689: * no minCardinality or minCardinality == 1.
690: * @param model an RDF2Go model
691: * @param resource an RDF2Go resource
692: * @param value the value to be added
693: *
694: * [Generated from RDFReactor template rule #set3static]
695: */
696: public static void setVersion(Model model,
697: org.ontoware.rdf2go.model.node.Resource instanceResource,
698: Version value) {
699: Base.set(model, instanceResource, VERSION, value);
700: }
701:
702: /**
703: * Sets a value of property Version from an instance of Version
704: * First, all existing values are removed, then this value is added.
705: * Cardinality constraints are not checked, but this method exists only for properties with
706: * no minCardinality or minCardinality == 1.
707: * @param value the value to be added
708: *
709: * [Generated from RDFReactor template rule #set4dynamic]
710: */
711: public void setVersion(Version value) {
712: Base.set(this .model, this .getResource(), VERSION, value);
713: }
714:
715: /**
716: * Removes a value of property Version as an RDF2Go node
717: * @param model an RDF2Go model
718: * @param resource an RDF2Go resource
719: * @param value the value to be removed
720: *
721: * [Generated from RDFReactor template rule #remove1static]
722: */
723: public static void removeVersion(Model model,
724: org.ontoware.rdf2go.model.node.Resource instanceResource,
725: org.ontoware.rdf2go.model.node.Node value) {
726: Base.remove(model, instanceResource, VERSION, value);
727: }
728:
729: /**
730: * Removes a value of property Version as an RDF2Go node
731: * @param value the value to be removed
732: *
733: * [Generated from RDFReactor template rule #remove1dynamic]
734: */
735: public void removeVersion(org.ontoware.rdf2go.model.node.Node value) {
736: Base.remove(this .model, this .getResource(), VERSION, value);
737: }
738:
739: /**
740: * Removes a value of property Version given as an instance of Version
741: * @param model an RDF2Go model
742: * @param resource an RDF2Go resource
743: * @param value the value to be removed
744: *
745: * [Generated from RDFReactor template rule #remove3static]
746: */
747: public static void removeVersion(Model model,
748: org.ontoware.rdf2go.model.node.Resource instanceResource,
749: Version value) {
750: Base.remove(model, instanceResource, VERSION, value);
751: }
752:
753: /**
754: * Removes a value of property Version given as an instance of Version
755: * @param value the value to be removed
756: *
757: * [Generated from RDFReactor template rule #remove4dynamic]
758: */
759: public void removeVersion(Version value) {
760: Base.remove(this .model, this .getResource(), VERSION, value);
761: }
762:
763: /**
764: * Removes all values of property Version * @param model an RDF2Go model
765: * @param resource an RDF2Go resource
766: *
767: * [Generated from RDFReactor template rule #removeall1static]
768: */
769: public static void removeAllVersion(Model model,
770: org.ontoware.rdf2go.model.node.Resource instanceResource) {
771: Base.removeAll(model, instanceResource, VERSION);
772: }
773:
774: /**
775: * Removes all values of property Version *
776: * [Generated from RDFReactor template rule #removeall1dynamic]
777: */
778: public void addVersion() {
779: Base.removeAll(this.model, this.getResource(), VERSION);
780: }
781: }
|