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