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> Name </li>
019: * <li> Password </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 User extends Thing {
025:
026: /** http://purl.org/net/semversion#User */
027: public static final URI RDFS_CLASS = new URIImpl(
028: "http://purl.org/net/semversion#User", false);
029:
030: /** http://purl.org/net/semversion#hasName */
031: public static final URI NAME = new URIImpl(
032: "http://purl.org/net/semversion#hasName", false);
033:
034: /** http://purl.org/net/semversion#hasPassword */
035: public static final URI PASSWORD = new URIImpl(
036: "http://purl.org/net/semversion#hasPassword", 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#hasName", false),
041: new URIImpl("http://purl.org/net/semversion#hasPassword",
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 User(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 User(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 User(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 User(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 User(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#User).
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 User> getAllInstance_as(
168: Model model) {
169: return Base.getAllInstances_as(model, RDFS_CLASS, User.class);
170: }
171:
172: /**
173: * Delete all rdf:type from this instance. Other triples are not affected.
174: * To delete more, use deleteAllProperties
175: * @param model an RDF2Go model
176: * @param instanceResource an RDF2Go resource
177: *
178: * [Generated from RDFReactor template rule #class4]
179: */
180: public static void deleteInstance(Model model,
181: org.ontoware.rdf2go.model.node.Resource instanceResource) {
182: Base.deleteInstance(model, RDFS_CLASS, instanceResource);
183: }
184:
185: /**
186: * Delete all (this, *, *), i.e. including rdf:type
187: * @param model an RDF2Go model
188: * @param resource
189: */
190: public static void deleteAllProperties(Model model,
191: org.ontoware.rdf2go.model.node.Resource instanceResource) {
192: Base.deleteAllProperties(model, instanceResource);
193: }
194:
195: ///////////////////////////////////////////////////////////////////
196: // property access methods
197:
198: /**
199: * @param model an RDF2Go model
200: * @param objectValue
201: * @return all A's as RDF resources, that have a relation 'Author' to this User instance
202: *
203: * [Generated from RDFReactor template rule #getallinverse1static]
204: */
205: public static ClosableIterator<org.ontoware.rdf2go.model.node.Resource> getAllAuthor_Inverse(
206: Model model, Object objectValue) {
207: return Base.getAll_Inverse(model, VersionedItem.AUTHOR,
208: objectValue);
209: }
210:
211: /**
212: * Check if org.ontoware.rdfreactor.generator.java.JProperty@1ed7ac has at least one value set
213: * @param model an RDF2Go model
214: * @param resource an RDF2Go resource
215: * @return true if this property has at least one value
216: *
217: * [Generated from RDFReactor template rule #get0has-static]
218: */
219: public static boolean hasName(Model model,
220: org.ontoware.rdf2go.model.node.Resource instanceResource) {
221: return Base.has(model, instanceResource, NAME);
222: }
223:
224: /**
225: * Check if org.ontoware.rdfreactor.generator.java.JProperty@1ed7ac has at least one value set
226: * @return true if this property has at least one value
227: *
228: * [Generated from RDFReactor template rule #get0has-dynamic]
229: */
230: public boolean hasName() {
231: return Base.has(this .model, this .getResource(), NAME);
232: }
233:
234: /**
235: * Get single value of property Name as an RDF2Go node
236: * @param model an RDF2Go model
237: * @param resource an RDF2Go resource
238: * @return the single value or null if no value is found
239: * @throws RDFDataException at runtime, if the property has multiple values
240: *
241: * [Generated from RDFReactor template rule #get1static]
242: */
243: public static org.ontoware.rdf2go.model.node.Node getName_asNode(
244: Model model,
245: org.ontoware.rdf2go.model.node.Resource instanceResource) {
246: return (org.ontoware.rdf2go.model.node.Node) Base.get_asNode(
247: model, instanceResource, NAME);
248: }
249:
250: /**
251: * Get single value of property Name as an RDF2Go node
252: * @return the single value or null if no value is found
253: * @throws RDFDataException, if the property has multiple values
254: *
255: * [Generated from RDFReactor template rule #get2dynamic]
256: */
257: public org.ontoware.rdf2go.model.node.Node getName_asNode() {
258: return (org.ontoware.rdf2go.model.node.Node) Base.get_asNode(
259: this .model, this .getResource(), NAME);
260: }
261:
262: /**
263: * Get single value of property Name * @param model an RDF2Go model
264: * @param resource an RDF2Go resource
265: * @return the single value or null if no value is found
266: * @throws RDFDataException, if the property has multiple values
267: *
268: * [Generated from RDFReactor template rule #get5static]
269: */
270: public static java.lang.String getName(Model model,
271: org.ontoware.rdf2go.model.node.Resource instanceResource) {
272: return (java.lang.String) Base.get(model, instanceResource,
273: NAME, java.lang.String.class);
274: }
275:
276: /**
277: * Get single value of property Name * @return the single value or null if no value is found
278: * @throws RDFDataException, if the property has multiple values
279: *
280: * [Generated from RDFReactor template rule #get6dynamic]
281: */
282: public java.lang.String getName() {
283: return (java.lang.String) Base.get(this .model, this
284: .getResource(), NAME, java.lang.String.class);
285: }
286:
287: /**
288: * Adds a value to property Name as an RDF2Go node
289: * @param model an RDF2Go model
290: * @param resource an RDF2Go resource
291: * @param value the value to be added
292: * @throws CardinalityException if adding a value would bring the number
293: * of property values above the cardinality constraint.
294: *
295: * [Generated from RDFReactor template rule #add5static]
296: */
297: public static void addName(Model model,
298: org.ontoware.rdf2go.model.node.Resource instanceResource,
299: org.ontoware.rdf2go.model.node.Node value)
300: throws CardinalityException {
301: Base.add(model, instanceResource, NAME, value, 1);
302: }
303:
304: /**
305: * Adds a value to property Name as an RDF2Go node
306: * @param value the value to be added
307: * @throws CardinalityException if adding a value would bring the number
308: * of property values above the cardinality constraint.
309: *
310: * [Generated from RDFReactor template rule #add6dynamic]
311: */
312: public void addName(org.ontoware.rdf2go.model.node.Node value)
313: throws CardinalityException {
314: Base.add(this .model, this .getResource(), NAME, value, 1);
315: }
316:
317: /**
318: * Adds a value to property Name from an instance of java.lang.String
319: * @param model an RDF2Go model
320: * @param resource an RDF2Go resource
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 #add7static]
325: */
326: public static void addName(Model model,
327: org.ontoware.rdf2go.model.node.Resource instanceResource,
328: java.lang.String value) throws CardinalityException {
329: Base.add(model, instanceResource, NAME, value, 1);
330: }
331:
332: /**
333: * Adds a value to property Name from an instance of java.lang.String
334: * @throws CardinalityException if adding a value would bring the number
335: * of property values above the cardinality constraint.
336: *
337: * [Generated from RDFReactor template rule #add8dynamic]
338: */
339: public void addName(java.lang.String value)
340: throws CardinalityException {
341: Base.add(this .model, this .getResource(), NAME, value, 1);
342: }
343:
344: /**
345: * Sets a value of property Name from an RDF2Go node.
346: * First, all existing values are removed, then this value is added.
347: * Cardinality constraints are not checked, but this method exists only for properties with
348: * no minCardinality or minCardinality == 1.
349: * @param model an RDF2Go model
350: * @param resource an RDF2Go resource
351: * @param value the value to be set
352: *
353: * [Generated from RDFReactor template rule #set1static]
354: */
355: public static void setName(Model model,
356: org.ontoware.rdf2go.model.node.Resource instanceResource,
357: org.ontoware.rdf2go.model.node.Node value) {
358: Base.set(model, instanceResource, NAME, value);
359: }
360:
361: /**
362: * Sets a value of property Name from an RDF2Go node.
363: * First, all existing values are removed, then this value is added.
364: * Cardinality constraints are not checked, but this method exists only for properties with
365: * no minCardinality or minCardinality == 1.
366: * @param value the value to be added
367: *
368: * [Generated from RDFReactor template rule #set1dynamic]
369: */
370: public void setName(org.ontoware.rdf2go.model.node.Node value) {
371: Base.set(this .model, this .getResource(), NAME, value);
372: }
373:
374: /**
375: * Sets a value of property Name from an instance of java.lang.String
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 model an RDF2Go model
380: * @param resource an RDF2Go resource
381: * @param value the value to be added
382: *
383: * [Generated from RDFReactor template rule #set3static]
384: */
385: public static void setName(Model model,
386: org.ontoware.rdf2go.model.node.Resource instanceResource,
387: java.lang.String value) {
388: Base.set(model, instanceResource, NAME, value);
389: }
390:
391: /**
392: * Sets a value of property Name from an instance of java.lang.String
393: * First, all existing values are removed, then this value is added.
394: * Cardinality constraints are not checked, but this method exists only for properties with
395: * no minCardinality or minCardinality == 1.
396: * @param value the value to be added
397: *
398: * [Generated from RDFReactor template rule #set4dynamic]
399: */
400: public void setName(java.lang.String value) {
401: Base.set(this .model, this .getResource(), NAME, value);
402: }
403:
404: /**
405: * Removes a value of property Name as an RDF2Go node
406: * @param model an RDF2Go model
407: * @param resource an RDF2Go resource
408: * @param value the value to be removed
409: * @throws CardinalityException if removing a value would bring the number
410: * of property values below the cardinality constraint.
411: *
412: * [Generated from RDFReactor template rule #remove5static]
413: */
414: public static void removeName(Model model,
415: org.ontoware.rdf2go.model.node.Resource instanceResource,
416: org.ontoware.rdf2go.model.node.Node value)
417: throws CardinalityException {
418: Base.remove(model, instanceResource, NAME, value, 1);
419: }
420:
421: /**
422: * Removes a value of property Name as an RDF2Go node
423: * @param value the value to be removed
424: * @throws CardinalityException if removing a value would bring the number
425: * of property values below the cardinality constraint.
426: *
427: * [Generated from RDFReactor template rule #remove6dynamic]
428: */
429: public void removeName(org.ontoware.rdf2go.model.node.Node value)
430: throws CardinalityException {
431: Base.remove(this .model, this .getResource(), NAME, value, 1);
432: }
433:
434: /**
435: * Removes a value of property Name from an instance of java.lang.String
436: * @param model an RDF2Go model
437: * @param resource an RDF2Go resource
438: * @param value the value to be removed
439: * @throws CardinalityException if removing a value would bring the number
440: * of property values below the cardinality constraint.
441: *
442: * [Generated from RDFReactor template rule #remove7static]
443: */
444: public static void removeName(Model model,
445: org.ontoware.rdf2go.model.node.Resource instanceResource,
446: java.lang.String value) throws CardinalityException {
447: Base.remove(model, instanceResource, NAME, value, 1);
448: }
449:
450: /**
451: * Removes a value of property Name from an instance of java.lang.String
452: * @param value the value to be removed
453: * @throws CardinalityException if removing a value would bring the number
454: * of property values below the cardinality constraint.
455: *
456: * [Generated from RDFReactor template rule #remove8dynamic]
457: */
458: public void removeName(java.lang.String value)
459: throws CardinalityException {
460: Base.remove(this .model, this .getResource(), NAME, value, 1);
461: }
462:
463: /**
464: * Check if org.ontoware.rdfreactor.generator.java.JProperty@1bd9d76 has at least one value set
465: * @param model an RDF2Go model
466: * @param resource an RDF2Go resource
467: * @return true if this property has at least one value
468: *
469: * [Generated from RDFReactor template rule #get0has-static]
470: */
471: public static boolean hasPassword(Model model,
472: org.ontoware.rdf2go.model.node.Resource instanceResource) {
473: return Base.has(model, instanceResource, PASSWORD);
474: }
475:
476: /**
477: * Check if org.ontoware.rdfreactor.generator.java.JProperty@1bd9d76 has at least one value set
478: * @return true if this property has at least one value
479: *
480: * [Generated from RDFReactor template rule #get0has-dynamic]
481: */
482: public boolean hasPassword() {
483: return Base.has(this .model, this .getResource(), PASSWORD);
484: }
485:
486: /**
487: * Get single value of property Password as an RDF2Go node
488: * @param model an RDF2Go model
489: * @param resource an RDF2Go resource
490: * @return the single value or null if no value is found
491: * @throws RDFDataException at runtime, if the property has multiple values
492: *
493: * [Generated from RDFReactor template rule #get1static]
494: */
495: public static org.ontoware.rdf2go.model.node.Node getPassword_asNode(
496: Model model,
497: org.ontoware.rdf2go.model.node.Resource instanceResource) {
498: return (org.ontoware.rdf2go.model.node.Node) Base.get_asNode(
499: model, instanceResource, PASSWORD);
500: }
501:
502: /**
503: * Get single value of property Password as an RDF2Go node
504: * @return the single value or null if no value is found
505: * @throws RDFDataException, if the property has multiple values
506: *
507: * [Generated from RDFReactor template rule #get2dynamic]
508: */
509: public org.ontoware.rdf2go.model.node.Node getPassword_asNode() {
510: return (org.ontoware.rdf2go.model.node.Node) Base.get_asNode(
511: this .model, this .getResource(), PASSWORD);
512: }
513:
514: /**
515: * Get single value of property Password * @param model an RDF2Go model
516: * @param resource an RDF2Go resource
517: * @return the single value or null if no value is found
518: * @throws RDFDataException, if the property has multiple values
519: *
520: * [Generated from RDFReactor template rule #get5static]
521: */
522: public static java.lang.String getPassword(Model model,
523: org.ontoware.rdf2go.model.node.Resource instanceResource) {
524: return (java.lang.String) Base.get(model, instanceResource,
525: PASSWORD, java.lang.String.class);
526: }
527:
528: /**
529: * Get single value of property Password * @return the single value or null if no value is found
530: * @throws RDFDataException, if the property has multiple values
531: *
532: * [Generated from RDFReactor template rule #get6dynamic]
533: */
534: public java.lang.String getPassword() {
535: return (java.lang.String) Base.get(this .model, this
536: .getResource(), PASSWORD, java.lang.String.class);
537: }
538:
539: /**
540: * Adds a value to property Password as an RDF2Go node
541: * @param model an RDF2Go model
542: * @param resource an RDF2Go resource
543: * @param value the value to be added
544: * @throws CardinalityException if adding a value would bring the number
545: * of property values above the cardinality constraint.
546: *
547: * [Generated from RDFReactor template rule #add5static]
548: */
549: public static void addPassword(Model model,
550: org.ontoware.rdf2go.model.node.Resource instanceResource,
551: org.ontoware.rdf2go.model.node.Node value)
552: throws CardinalityException {
553: Base.add(model, instanceResource, PASSWORD, value, 1);
554: }
555:
556: /**
557: * Adds a value to property Password as an RDF2Go node
558: * @param value the value to be added
559: * @throws CardinalityException if adding a value would bring the number
560: * of property values above the cardinality constraint.
561: *
562: * [Generated from RDFReactor template rule #add6dynamic]
563: */
564: public void addPassword(org.ontoware.rdf2go.model.node.Node value)
565: throws CardinalityException {
566: Base.add(this .model, this .getResource(), PASSWORD, value, 1);
567: }
568:
569: /**
570: * Adds a value to property Password from an instance of java.lang.String
571: * @param model an RDF2Go model
572: * @param resource an RDF2Go resource
573: * @throws CardinalityException if adding a value would bring the number
574: * of property values above the cardinality constraint.
575: *
576: * [Generated from RDFReactor template rule #add7static]
577: */
578: public static void addPassword(Model model,
579: org.ontoware.rdf2go.model.node.Resource instanceResource,
580: java.lang.String value) throws CardinalityException {
581: Base.add(model, instanceResource, PASSWORD, value, 1);
582: }
583:
584: /**
585: * Adds a value to property Password from an instance of java.lang.String
586: * @throws CardinalityException if adding a value would bring the number
587: * of property values above the cardinality constraint.
588: *
589: * [Generated from RDFReactor template rule #add8dynamic]
590: */
591: public void addPassword(java.lang.String value)
592: throws CardinalityException {
593: Base.add(this .model, this .getResource(), PASSWORD, value, 1);
594: }
595:
596: /**
597: * Sets a value of property Password from an RDF2Go node.
598: * First, all existing values are removed, then this value is added.
599: * Cardinality constraints are not checked, but this method exists only for properties with
600: * no minCardinality or minCardinality == 1.
601: * @param model an RDF2Go model
602: * @param resource an RDF2Go resource
603: * @param value the value to be set
604: *
605: * [Generated from RDFReactor template rule #set1static]
606: */
607: public static void setPassword(Model model,
608: org.ontoware.rdf2go.model.node.Resource instanceResource,
609: org.ontoware.rdf2go.model.node.Node value) {
610: Base.set(model, instanceResource, PASSWORD, value);
611: }
612:
613: /**
614: * Sets a value of property Password from an RDF2Go node.
615: * First, all existing values are removed, then this value is added.
616: * Cardinality constraints are not checked, but this method exists only for properties with
617: * no minCardinality or minCardinality == 1.
618: * @param value the value to be added
619: *
620: * [Generated from RDFReactor template rule #set1dynamic]
621: */
622: public void setPassword(org.ontoware.rdf2go.model.node.Node value) {
623: Base.set(this .model, this .getResource(), PASSWORD, value);
624: }
625:
626: /**
627: * Sets a value of property Password from an instance of java.lang.String
628: * First, all existing values are removed, then this value is added.
629: * Cardinality constraints are not checked, but this method exists only for properties with
630: * no minCardinality or minCardinality == 1.
631: * @param model an RDF2Go model
632: * @param resource an RDF2Go resource
633: * @param value the value to be added
634: *
635: * [Generated from RDFReactor template rule #set3static]
636: */
637: public static void setPassword(Model model,
638: org.ontoware.rdf2go.model.node.Resource instanceResource,
639: java.lang.String value) {
640: Base.set(model, instanceResource, PASSWORD, value);
641: }
642:
643: /**
644: * Sets a value of property Password from an instance of java.lang.String
645: * First, all existing values are removed, then this value is added.
646: * Cardinality constraints are not checked, but this method exists only for properties with
647: * no minCardinality or minCardinality == 1.
648: * @param value the value to be added
649: *
650: * [Generated from RDFReactor template rule #set4dynamic]
651: */
652: public void setPassword(java.lang.String value) {
653: Base.set(this .model, this .getResource(), PASSWORD, value);
654: }
655:
656: /**
657: * Removes a value of property Password as an RDF2Go node
658: * @param model an RDF2Go model
659: * @param resource an RDF2Go resource
660: * @param value the value to be removed
661: * @throws CardinalityException if removing a value would bring the number
662: * of property values below the cardinality constraint.
663: *
664: * [Generated from RDFReactor template rule #remove5static]
665: */
666: public static void removePassword(Model model,
667: org.ontoware.rdf2go.model.node.Resource instanceResource,
668: org.ontoware.rdf2go.model.node.Node value)
669: throws CardinalityException {
670: Base.remove(model, instanceResource, PASSWORD, value, 1);
671: }
672:
673: /**
674: * Removes a value of property Password as an RDF2Go node
675: * @param value the value to be removed
676: * @throws CardinalityException if removing a value would bring the number
677: * of property values below the cardinality constraint.
678: *
679: * [Generated from RDFReactor template rule #remove6dynamic]
680: */
681: public void removePassword(org.ontoware.rdf2go.model.node.Node value)
682: throws CardinalityException {
683: Base.remove(this .model, this .getResource(), PASSWORD, value, 1);
684: }
685:
686: /**
687: * Removes a value of property Password from an instance of java.lang.String
688: * @param model an RDF2Go model
689: * @param resource an RDF2Go resource
690: * @param value the value to be removed
691: * @throws CardinalityException if removing a value would bring the number
692: * of property values below the cardinality constraint.
693: *
694: * [Generated from RDFReactor template rule #remove7static]
695: */
696: public static void removePassword(Model model,
697: org.ontoware.rdf2go.model.node.Resource instanceResource,
698: java.lang.String value) throws CardinalityException {
699: Base.remove(model, instanceResource, PASSWORD, value, 1);
700: }
701:
702: /**
703: * Removes a value of property Password from an instance of java.lang.String
704: * @param value the value to be removed
705: * @throws CardinalityException if removing a value would bring the number
706: * of property values below the cardinality constraint.
707: *
708: * [Generated from RDFReactor template rule #remove8dynamic]
709: */
710: public void removePassword(java.lang.String value)
711: throws CardinalityException {
712: Base.remove(this .model, this .getResource(), PASSWORD, value, 1);
713: }
714:
715: }
|