001: /**
002: * generated by http://RDFReactor.semweb4j.org ($Id: CodeGenerator.java 785 2007-05-31 15:47:01Z voelkel $) on 01.06.07 18:30
003: */package org.rdfs.sioc;
004:
005: import org.ontoware.rdf2go.model.Model;
006: import org.ontoware.rdf2go.model.node.BlankNode;
007: import org.ontoware.rdf2go.model.node.URI;
008: import org.ontoware.rdf2go.model.node.impl.URIImpl;
009: import org.ontoware.rdf2go.exception.ModelRuntimeException;
010:
011: import org.ontoware.rdfreactor.runtime.RDFDataException;
012:
013: /**
014: * This class was generated by <a href="http://RDFReactor.semweb4j.org">RDFReactor</a> on 01.06.07 18:30
015: * This class manages access to these properties:
016: * <ul>
017: * <li> Previousversion </li>
018: * <li> Previousbydate </li>
019: * <li> Container </li>
020: * <li> Nextbydate </li>
021: * <li> Reply </li>
022: * <li> Replyof </li>
023: * <li> Creator </li>
024: * <li> Ipaddress </li>
025: * <li> Nextversion </li>
026: * <li> Modifier </li>
027: * </ul>
028: * Schema Comment: A content Item that can be posted to or created within a Container.
029: */
030: public class Item extends Document {
031:
032: /** http://rdfs.org/sioc/ns#Item */
033: public static final URI RDFS_CLASS = new URIImpl(
034: "http://rdfs.org/sioc/ns#Item", false);
035:
036: /** http://rdfs.org/sioc/ns#previous_version */
037: public static final URI PREVIOUSVERSION = new URIImpl(
038: "http://rdfs.org/sioc/ns#previous_version", false);
039:
040: /** http://rdfs.org/sioc/ns#previous_by_date */
041: public static final URI PREVIOUSBYDATE = new URIImpl(
042: "http://rdfs.org/sioc/ns#previous_by_date", false);
043:
044: /** http://rdfs.org/sioc/ns#has_container */
045: public static final URI CONTAINER = new URIImpl(
046: "http://rdfs.org/sioc/ns#has_container", false);
047:
048: /** http://rdfs.org/sioc/ns#next_by_date */
049: public static final URI NEXTBYDATE = new URIImpl(
050: "http://rdfs.org/sioc/ns#next_by_date", false);
051:
052: /** http://rdfs.org/sioc/ns#has_reply */
053: public static final URI REPLY = new URIImpl(
054: "http://rdfs.org/sioc/ns#has_reply", false);
055:
056: /** http://rdfs.org/sioc/ns#reply_of */
057: public static final URI REPLYOF = new URIImpl(
058: "http://rdfs.org/sioc/ns#reply_of", false);
059:
060: /** http://rdfs.org/sioc/ns#has_creator */
061: public static final URI CREATOR = new URIImpl(
062: "http://rdfs.org/sioc/ns#has_creator", false);
063:
064: /** http://rdfs.org/sioc/ns#ip_address */
065: public static final URI IPADDRESS = new URIImpl(
066: "http://rdfs.org/sioc/ns#ip_address", false);
067:
068: /** http://rdfs.org/sioc/ns#next_version */
069: public static final URI NEXTVERSION = new URIImpl(
070: "http://rdfs.org/sioc/ns#next_version", false);
071:
072: /** http://rdfs.org/sioc/ns#has_modifier */
073: public static final URI MODIFIER = new URIImpl(
074: "http://rdfs.org/sioc/ns#has_modifier", false);
075:
076: /** all property-URIs with this class as domain */
077: public static final URI[] MANAGED_URIS = {
078: new URIImpl("http://rdfs.org/sioc/ns#previous_version",
079: false),
080: new URIImpl("http://rdfs.org/sioc/ns#previous_by_date",
081: false),
082: new URIImpl("http://rdfs.org/sioc/ns#has_container", false),
083: new URIImpl("http://rdfs.org/sioc/ns#next_by_date", false),
084: new URIImpl("http://rdfs.org/sioc/ns#has_reply", false),
085: new URIImpl("http://rdfs.org/sioc/ns#reply_of", false),
086: new URIImpl("http://rdfs.org/sioc/ns#has_creator", false),
087: new URIImpl("http://rdfs.org/sioc/ns#ip_address", false),
088: new URIImpl("http://rdfs.org/sioc/ns#next_version", false),
089: new URIImpl("http://rdfs.org/sioc/ns#has_modifier", false) };
090:
091: // protected constructors needed for inheritance
092:
093: /**
094: * Returns a Java wrapper over an RDF object, identified by URI.
095: * Creating two wrappers for the same instanceURI is legal.
096: * @param model RDF2GO Model implementation, see http://rdf2go.semweb4j.org
097: * @param classURI URI of RDFS class
098: * @param instanceIdentifier Resource that identifies this instance
099: * @param write if true, the statement (this, rdf:type, TYPE) is written to the model
100: */
101: protected Item(Model model, URI classURI,
102: org.ontoware.rdf2go.model.node.Resource instanceIdentifier,
103: boolean write) {
104: super (model, classURI, instanceIdentifier, write);
105: }
106:
107: // public constructors
108:
109: /**
110: * Returns a Java wrapper over an RDF object, identified by URI.
111: * Creating two wrappers for the same instanceURI is legal.
112: * @param model RDF2GO Model implementation, see http://rdf2go.ontoware.org
113: * @param instanceIdentifier an RDF2Go Resource identifying this instance
114: * @param write if true, the statement (this, rdf:type, TYPE) is written to the model
115: */
116: public Item(Model model,
117: org.ontoware.rdf2go.model.node.Resource instanceIdentifier,
118: boolean write) {
119: super (model, RDFS_CLASS, instanceIdentifier, write);
120: }
121:
122: /**
123: * Returns a Java wrapper over an RDF object, identified by URI.
124: * Creating two wrappers for the same instanceURI is legal.
125: * The statement (this, rdf:type, TYPE) is written to the model
126: * @param model RDF2GO Model implementation, see http://rdf2go.ontoware.org
127: * @param uri URI of this instance
128: */
129: public Item(Model model, URI uri) {
130: this (model, uri, true);
131: }
132:
133: /**
134: * Returns a Java wrapper over an RDF object, identified by URI.
135: * Creating two wrappers for the same instanceURI is legal.
136: * The statement (this, rdf:type, TYPE) is written to the model
137: * @param model RDF2GO Model implementation, see http://rdf2go.ontoware.org
138: * @param uriString A URI of this instance, represented as a String
139: * @throws ModelRuntimeException if URI syntax is wrong
140: */
141: public Item(Model model, String uriString)
142: throws ModelRuntimeException {
143: this (model, new URIImpl(uriString), true);
144: }
145:
146: /**
147: * Returns a Java wrapper over an RDF object, identified by a blank node.
148: * Creating two wrappers for the same blank node is legal.
149: * The statement (this, rdf:type, TYPE) is written to the model
150: * @param model RDF2GO Model implementation, see http://rdf2go.ontoware.org
151: * @param bnode BlankNode of this instance
152: */
153: public Item(Model model, BlankNode bnode) {
154: this (model, bnode, true);
155: }
156:
157: /**
158: * Returns a Java wrapper over an RDF object, identified by
159: * a randomly generated URI.
160: * Creating two wrappers results in different URIs.
161: * The statement (this, rdf:type, TYPE) is written to the model
162: * @param model RDF2GO Model implementation, see http://rdf2go.ontoware.org
163: */
164: public Item(Model model) {
165: this (model, model.newRandomUniqueURI(), true);
166: }
167:
168: ///////////////////////////////////////////////////////////////////
169: // getters, setters, ...
170:
171: /**
172: * @param model RDF2Go model
173: * @param uri instance identifier
174: * @return an instance of Item or null if none existst
175: * @throws Exception if Model causes problems
176: */
177: public static Item getInstance(Model model, URI uri)
178: throws Exception {
179: return (Item) getInstance(model, uri, Item.class);
180: }
181:
182: /**
183: * @param model
184: * @param uri
185: * @return true if uri is an instance of this class in the model
186: */
187: public static boolean hasInstance(Model model, URI uri) {
188: return hasInstance(model, uri, RDFS_CLASS);
189: }
190:
191: /**
192: * @return all instances of this class
193: */
194: public Item[] getAllInstances() {
195: return (Item[]) getAllInstances(super .model, Item.class);
196: }
197:
198: /**
199: * @return all instances of this class in the given Model
200: * @param model an RDF2Go model
201: */
202: public static Item[] getAllInstances(Model model) {
203: return (Item[]) getAllInstances(model, Item.class);
204: }
205:
206: /**
207: * @return all A's that have a relation 'Containerof' to this Item instance
208: */
209: public Container[] getAllSiocContainerof_Inverse() {
210: return (Container[]) getAll_Inverse(Container.CONTAINEROF, this
211: .getResource(), Container.class);
212: }
213:
214: /**
215: * add 'Containerof'-Inverse
216: * @param value
217: */
218: public void addSiocContainerof_Inverse(Container value) {
219: value.add(Container.CONTAINEROF, this );
220: }
221:
222: /**
223: * @return all A's that have a relation 'Previousversion' to this Item instance
224: */
225: public Item[] getAllSiocPreviousversion_Inverse() {
226: return (Item[]) getAll_Inverse(Item.PREVIOUSVERSION, this
227: .getResource(), Item.class);
228: }
229:
230: /**
231: * add 'Previousversion'-Inverse
232: * @param value
233: */
234: public void addSiocPreviousversion_Inverse(Item value) {
235: value.add(Item.PREVIOUSVERSION, this );
236: }
237:
238: /**
239: * @return all A's that have a relation 'Previousbydate' to this Item instance
240: */
241: public Item[] getAllSiocPreviousbydate_Inverse() {
242: return (Item[]) getAll_Inverse(Item.PREVIOUSBYDATE, this
243: .getResource(), Item.class);
244: }
245:
246: /**
247: * add 'Previousbydate'-Inverse
248: * @param value
249: */
250: public void addSiocPreviousbydate_Inverse(Item value) {
251: value.add(Item.PREVIOUSBYDATE, this );
252: }
253:
254: /**
255: * @return all A's that have a relation 'Nextbydate' to this Item instance
256: */
257: public Item[] getAllSiocNextbydate_Inverse() {
258: return (Item[]) getAll_Inverse(Item.NEXTBYDATE, this
259: .getResource(), Item.class);
260: }
261:
262: /**
263: * add 'Nextbydate'-Inverse
264: * @param value
265: */
266: public void addSiocNextbydate_Inverse(Item value) {
267: value.add(Item.NEXTBYDATE, this );
268: }
269:
270: /**
271: * @return all A's that have a relation 'Reply' to this Item instance
272: */
273: public Item[] getAllSiocReply_Inverse() {
274: return (Item[]) getAll_Inverse(Item.REPLY, this .getResource(),
275: Item.class);
276: }
277:
278: /**
279: * add 'Reply'-Inverse
280: * @param value
281: */
282: public void addSiocReply_Inverse(Item value) {
283: value.add(Item.REPLY, this );
284: }
285:
286: /**
287: * @return all A's that have a relation 'Replyof' to this Item instance
288: */
289: public Item[] getAllSiocReplyof_Inverse() {
290: return (Item[]) getAll_Inverse(Item.REPLYOF,
291: this .getResource(), Item.class);
292: }
293:
294: /**
295: * add 'Replyof'-Inverse
296: * @param value
297: */
298: public void addSiocReplyof_Inverse(Item value) {
299: value.add(Item.REPLYOF, this );
300: }
301:
302: /**
303: * @return all A's that have a relation 'Nextversion' to this Item instance
304: */
305: public Item[] getAllSiocNextversion_Inverse() {
306: return (Item[]) getAll_Inverse(Item.NEXTVERSION, this
307: .getResource(), Item.class);
308: }
309:
310: /**
311: * add 'Nextversion'-Inverse
312: * @param value
313: */
314: public void addSiocNextversion_Inverse(Item value) {
315: value.add(Item.NEXTVERSION, this );
316: }
317:
318: /**
319: * @return all A's that have a relation 'Creatorof' to this Item instance
320: */
321: public User[] getAllSiocCreatorof_Inverse() {
322: return (User[]) getAll_Inverse(User.CREATOROF, this
323: .getResource(), User.class);
324: }
325:
326: /**
327: * add 'Creatorof'-Inverse
328: * @param value
329: */
330: public void addSiocCreatorof_Inverse(User value) {
331: value.add(User.CREATOROF, this );
332: }
333:
334: /**
335: * @return all A's that have a relation 'Modifierof' to this Item instance
336: */
337: public User[] getAllSiocModifierof_Inverse() {
338: return (User[]) getAll_Inverse(User.MODIFIEROF, this
339: .getResource(), User.class);
340: }
341:
342: /**
343: * add 'Modifierof'-Inverse
344: * @param value
345: */
346: public void addSiocModifierof_Inverse(User value) {
347: value.add(User.MODIFIEROF, this );
348: }
349:
350: /**
351: * Schema Comment: Links to a previous revision of this Item or Post.
352: * @return the only value. null if none is found
353: * @throws RDFDataException, if the property has multiple values
354: */
355: public Item getSiocPreviousversion() {
356: return (Item) get(PREVIOUSVERSION, Item.class);
357: }
358:
359: /**
360: * removes all values and sets this one
361: * @param value the value to be set
362: * Schema Comment: Links to a previous revision of this Item or Post.
363: */
364: public void setSiocPreviousversion(Item value) {
365: set(PREVIOUSVERSION, value);
366: }
367:
368: /**
369: * removes a value
370: * @param value the value to be removed
371: * Schema Comment: Links to a previous revision of this Item or Post.
372: */
373: public void removeSiocPreviousversion(Item value) {
374: remove(PREVIOUSVERSION, value);
375: }
376:
377: /**
378: * @param value
379: * @return true if the model contains a statement (this, PREVIOUSVERSION, value)
380: */
381: public boolean hasSiocPreviousversion(Item value) {
382: return hasValue(PREVIOUSVERSION, value);
383: }
384:
385: /**
386: * @return true if the model contains a statement (this, PREVIOUSVERSION, *)
387: */
388: public boolean hasSiocPreviousversion() {
389: return hasValue(PREVIOUSVERSION);
390: }
391:
392: /**
393: * adds a value
394: * @param value the value to be added
395: * Schema Comment: Links to a previous revision of this Item or Post.
396: */
397: public void addSiocPreviousversion(Item value) {
398: add(PREVIOUSVERSION, value);
399: }
400:
401: /**
402: * @return all values
403: * Schema Comment: Links to a previous revision of this Item or Post.
404: */
405: public Item[] getAllSiocPreviousversion() {
406: return (Item[]) getAll(PREVIOUSVERSION, Item.class);
407: }
408:
409: /**
410: * Schema Comment: Previous Item or Post in a given Container sorted by date.
411: * @return the only value. null if none is found
412: * @throws RDFDataException, if the property has multiple values
413: */
414: public Item getSiocPreviousbydate() {
415: return (Item) get(PREVIOUSBYDATE, Item.class);
416: }
417:
418: /**
419: * removes all values and sets this one
420: * @param value the value to be set
421: * Schema Comment: Previous Item or Post in a given Container sorted by date.
422: */
423: public void setSiocPreviousbydate(Item value) {
424: set(PREVIOUSBYDATE, value);
425: }
426:
427: /**
428: * removes a value
429: * @param value the value to be removed
430: * Schema Comment: Previous Item or Post in a given Container sorted by date.
431: */
432: public void removeSiocPreviousbydate(Item value) {
433: remove(PREVIOUSBYDATE, value);
434: }
435:
436: /**
437: * @param value
438: * @return true if the model contains a statement (this, PREVIOUSBYDATE, value)
439: */
440: public boolean hasSiocPreviousbydate(Item value) {
441: return hasValue(PREVIOUSBYDATE, value);
442: }
443:
444: /**
445: * @return true if the model contains a statement (this, PREVIOUSBYDATE, *)
446: */
447: public boolean hasSiocPreviousbydate() {
448: return hasValue(PREVIOUSBYDATE);
449: }
450:
451: /**
452: * adds a value
453: * @param value the value to be added
454: * Schema Comment: Previous Item or Post in a given Container sorted by date.
455: */
456: public void addSiocPreviousbydate(Item value) {
457: add(PREVIOUSBYDATE, value);
458: }
459:
460: /**
461: * @return all values
462: * Schema Comment: Previous Item or Post in a given Container sorted by date.
463: */
464: public Item[] getAllSiocPreviousbydate() {
465: return (Item[]) getAll(PREVIOUSBYDATE, Item.class);
466: }
467:
468: /**
469: * Schema Comment: The Container which this Item belongs to.
470: * @return the only value. null if none is found
471: * @throws RDFDataException, if the property has multiple values
472: */
473: public Container getSiocContainer() {
474: return (Container) get(CONTAINER, Container.class);
475: }
476:
477: /**
478: * removes all values and sets this one
479: * @param value the value to be set
480: * Schema Comment: The Container which this Item belongs to.
481: */
482: public void setSiocContainer(Container value) {
483: set(CONTAINER, value);
484: }
485:
486: /**
487: * removes a value
488: * @param value the value to be removed
489: * Schema Comment: The Container which this Item belongs to.
490: */
491: public void removeSiocContainer(Container value) {
492: remove(CONTAINER, value);
493: }
494:
495: /**
496: * @param value
497: * @return true if the model contains a statement (this, CONTAINER, value)
498: */
499: public boolean hasSiocContainer(Container value) {
500: return hasValue(CONTAINER, value);
501: }
502:
503: /**
504: * @return true if the model contains a statement (this, CONTAINER, *)
505: */
506: public boolean hasSiocContainer() {
507: return hasValue(CONTAINER);
508: }
509:
510: /**
511: * adds a value
512: * @param value the value to be added
513: * Schema Comment: The Container which this Item belongs to.
514: */
515: public void addSiocContainer(Container value) {
516: add(CONTAINER, value);
517: }
518:
519: /**
520: * @return all values
521: * Schema Comment: The Container which this Item belongs to.
522: */
523: public Container[] getAllSiocContainer() {
524: return (Container[]) getAll(CONTAINER, Container.class);
525: }
526:
527: /**
528: * Schema Comment: Next Item or Post in a given Container sorted by date.
529: * @return the only value. null if none is found
530: * @throws RDFDataException, if the property has multiple values
531: */
532: public Item getSiocNextbydate() {
533: return (Item) get(NEXTBYDATE, Item.class);
534: }
535:
536: /**
537: * removes all values and sets this one
538: * @param value the value to be set
539: * Schema Comment: Next Item or Post in a given Container sorted by date.
540: */
541: public void setSiocNextbydate(Item value) {
542: set(NEXTBYDATE, value);
543: }
544:
545: /**
546: * removes a value
547: * @param value the value to be removed
548: * Schema Comment: Next Item or Post in a given Container sorted by date.
549: */
550: public void removeSiocNextbydate(Item value) {
551: remove(NEXTBYDATE, value);
552: }
553:
554: /**
555: * @param value
556: * @return true if the model contains a statement (this, NEXTBYDATE, value)
557: */
558: public boolean hasSiocNextbydate(Item value) {
559: return hasValue(NEXTBYDATE, value);
560: }
561:
562: /**
563: * @return true if the model contains a statement (this, NEXTBYDATE, *)
564: */
565: public boolean hasSiocNextbydate() {
566: return hasValue(NEXTBYDATE);
567: }
568:
569: /**
570: * adds a value
571: * @param value the value to be added
572: * Schema Comment: Next Item or Post in a given Container sorted by date.
573: */
574: public void addSiocNextbydate(Item value) {
575: add(NEXTBYDATE, value);
576: }
577:
578: /**
579: * @return all values
580: * Schema Comment: Next Item or Post in a given Container sorted by date.
581: */
582: public Item[] getAllSiocNextbydate() {
583: return (Item[]) getAll(NEXTBYDATE, Item.class);
584: }
585:
586: /**
587: * Schema Comment: Points to an Item or Post that is a reply or response to this Item or Post.
588: * @return the only value. null if none is found
589: * @throws RDFDataException, if the property has multiple values
590: */
591: public Item getSiocReply() {
592: return (Item) get(REPLY, Item.class);
593: }
594:
595: /**
596: * removes all values and sets this one
597: * @param value the value to be set
598: * Schema Comment: Points to an Item or Post that is a reply or response to this Item or Post.
599: */
600: public void setSiocReply(Item value) {
601: set(REPLY, value);
602: }
603:
604: /**
605: * removes a value
606: * @param value the value to be removed
607: * Schema Comment: Points to an Item or Post that is a reply or response to this Item or Post.
608: */
609: public void removeSiocReply(Item value) {
610: remove(REPLY, value);
611: }
612:
613: /**
614: * @param value
615: * @return true if the model contains a statement (this, REPLY, value)
616: */
617: public boolean hasSiocReply(Item value) {
618: return hasValue(REPLY, value);
619: }
620:
621: /**
622: * @return true if the model contains a statement (this, REPLY, *)
623: */
624: public boolean hasSiocReply() {
625: return hasValue(REPLY);
626: }
627:
628: /**
629: * adds a value
630: * @param value the value to be added
631: * Schema Comment: Points to an Item or Post that is a reply or response to this Item or Post.
632: */
633: public void addSiocReply(Item value) {
634: add(REPLY, value);
635: }
636:
637: /**
638: * @return all values
639: * Schema Comment: Points to an Item or Post that is a reply or response to this Item or Post.
640: */
641: public Item[] getAllSiocReply() {
642: return (Item[]) getAll(REPLY, Item.class);
643: }
644:
645: /**
646: * Schema Comment: Links to an Item or Post which this Item or Post is a reply to.
647: * @return the only value. null if none is found
648: * @throws RDFDataException, if the property has multiple values
649: */
650: public Item getSiocReplyof() {
651: return (Item) get(REPLYOF, Item.class);
652: }
653:
654: /**
655: * removes all values and sets this one
656: * @param value the value to be set
657: * Schema Comment: Links to an Item or Post which this Item or Post is a reply to.
658: */
659: public void setSiocReplyof(Item value) {
660: set(REPLYOF, value);
661: }
662:
663: /**
664: * removes a value
665: * @param value the value to be removed
666: * Schema Comment: Links to an Item or Post which this Item or Post is a reply to.
667: */
668: public void removeSiocReplyof(Item value) {
669: remove(REPLYOF, value);
670: }
671:
672: /**
673: * @param value
674: * @return true if the model contains a statement (this, REPLYOF, value)
675: */
676: public boolean hasSiocReplyof(Item value) {
677: return hasValue(REPLYOF, value);
678: }
679:
680: /**
681: * @return true if the model contains a statement (this, REPLYOF, *)
682: */
683: public boolean hasSiocReplyof() {
684: return hasValue(REPLYOF);
685: }
686:
687: /**
688: * adds a value
689: * @param value the value to be added
690: * Schema Comment: Links to an Item or Post which this Item or Post is a reply to.
691: */
692: public void addSiocReplyof(Item value) {
693: add(REPLYOF, value);
694: }
695:
696: /**
697: * @return all values
698: * Schema Comment: Links to an Item or Post which this Item or Post is a reply to.
699: */
700: public Item[] getAllSiocReplyof() {
701: return (Item[]) getAll(REPLYOF, Item.class);
702: }
703:
704: /**
705: * Schema Comment: This is the User who made this Item.
706: * @return the only value. null if none is found
707: * @throws RDFDataException, if the property has multiple values
708: */
709: public User getSiocCreator() {
710: return (User) get(CREATOR, User.class);
711: }
712:
713: /**
714: * removes all values and sets this one
715: * @param value the value to be set
716: * Schema Comment: This is the User who made this Item.
717: */
718: public void setSiocCreator(User value) {
719: set(CREATOR, value);
720: }
721:
722: /**
723: * removes a value
724: * @param value the value to be removed
725: * Schema Comment: This is the User who made this Item.
726: */
727: public void removeSiocCreator(User value) {
728: remove(CREATOR, value);
729: }
730:
731: /**
732: * @param value
733: * @return true if the model contains a statement (this, CREATOR, value)
734: */
735: public boolean hasSiocCreator(User value) {
736: return hasValue(CREATOR, value);
737: }
738:
739: /**
740: * @return true if the model contains a statement (this, CREATOR, *)
741: */
742: public boolean hasSiocCreator() {
743: return hasValue(CREATOR);
744: }
745:
746: /**
747: * adds a value
748: * @param value the value to be added
749: * Schema Comment: This is the User who made this Item.
750: */
751: public void addSiocCreator(User value) {
752: add(CREATOR, value);
753: }
754:
755: /**
756: * @return all values
757: * Schema Comment: This is the User who made this Item.
758: */
759: public User[] getAllSiocCreator() {
760: return (User[]) getAll(CREATOR, User.class);
761: }
762:
763: /**
764: * Schema Comment: The IP address used when creating this Item. This can be associated with a creator. Some wiki articles list the IP addresses for the creator or modifiers when the usernames are absent.
765: * @return the only value. null if none is found
766: * @throws RDFDataException, if the property has multiple values
767: */
768: public java.lang.String getSiocIpaddress() {
769: return (java.lang.String) get(IPADDRESS, java.lang.String.class);
770: }
771:
772: /**
773: * removes all values and sets this one
774: * @param value the value to be set
775: * Schema Comment: The IP address used when creating this Item. This can be associated with a creator. Some wiki articles list the IP addresses for the creator or modifiers when the usernames are absent.
776: */
777: public void setSiocIpaddress(java.lang.String value) {
778: set(IPADDRESS, value);
779: }
780:
781: /**
782: * removes a value
783: * @param value the value to be removed
784: * Schema Comment: The IP address used when creating this Item. This can be associated with a creator. Some wiki articles list the IP addresses for the creator or modifiers when the usernames are absent.
785: */
786: public void removeSiocIpaddress(java.lang.String value) {
787: remove(IPADDRESS, value);
788: }
789:
790: /**
791: * @param value
792: * @return true if the model contains a statement (this, IPADDRESS, value)
793: */
794: public boolean hasSiocIpaddress(java.lang.String value) {
795: return hasValue(IPADDRESS, value);
796: }
797:
798: /**
799: * @return true if the model contains a statement (this, IPADDRESS, *)
800: */
801: public boolean hasSiocIpaddress() {
802: return hasValue(IPADDRESS);
803: }
804:
805: /**
806: * adds a value
807: * @param value the value to be added
808: * Schema Comment: The IP address used when creating this Item. This can be associated with a creator. Some wiki articles list the IP addresses for the creator or modifiers when the usernames are absent.
809: */
810: public void addSiocIpaddress(java.lang.String value) {
811: add(IPADDRESS, value);
812: }
813:
814: /**
815: * @return all values
816: * Schema Comment: The IP address used when creating this Item. This can be associated with a creator. Some wiki articles list the IP addresses for the creator or modifiers when the usernames are absent.
817: */
818: public java.lang.String[] getAllSiocIpaddress() {
819: return (java.lang.String[]) getAll(IPADDRESS,
820: java.lang.String.class);
821: }
822:
823: /**
824: * Schema Comment: Links to the next revision of this Item or Post.
825: * @return the only value. null if none is found
826: * @throws RDFDataException, if the property has multiple values
827: */
828: public Item getSiocNextversion() {
829: return (Item) get(NEXTVERSION, Item.class);
830: }
831:
832: /**
833: * removes all values and sets this one
834: * @param value the value to be set
835: * Schema Comment: Links to the next revision of this Item or Post.
836: */
837: public void setSiocNextversion(Item value) {
838: set(NEXTVERSION, value);
839: }
840:
841: /**
842: * removes a value
843: * @param value the value to be removed
844: * Schema Comment: Links to the next revision of this Item or Post.
845: */
846: public void removeSiocNextversion(Item value) {
847: remove(NEXTVERSION, value);
848: }
849:
850: /**
851: * @param value
852: * @return true if the model contains a statement (this, NEXTVERSION, value)
853: */
854: public boolean hasSiocNextversion(Item value) {
855: return hasValue(NEXTVERSION, value);
856: }
857:
858: /**
859: * @return true if the model contains a statement (this, NEXTVERSION, *)
860: */
861: public boolean hasSiocNextversion() {
862: return hasValue(NEXTVERSION);
863: }
864:
865: /**
866: * adds a value
867: * @param value the value to be added
868: * Schema Comment: Links to the next revision of this Item or Post.
869: */
870: public void addSiocNextversion(Item value) {
871: add(NEXTVERSION, value);
872: }
873:
874: /**
875: * @return all values
876: * Schema Comment: Links to the next revision of this Item or Post.
877: */
878: public Item[] getAllSiocNextversion() {
879: return (Item[]) getAll(NEXTVERSION, Item.class);
880: }
881:
882: /**
883: * Schema Comment: A User who has modified this Item.
884: * @return the only value. null if none is found
885: * @throws RDFDataException, if the property has multiple values
886: */
887: public User getSiocModifier() {
888: return (User) get(MODIFIER, User.class);
889: }
890:
891: /**
892: * removes all values and sets this one
893: * @param value the value to be set
894: * Schema Comment: A User who has modified this Item.
895: */
896: public void setSiocModifier(User value) {
897: set(MODIFIER, value);
898: }
899:
900: /**
901: * removes a value
902: * @param value the value to be removed
903: * Schema Comment: A User who has modified this Item.
904: */
905: public void removeSiocModifier(User value) {
906: remove(MODIFIER, value);
907: }
908:
909: /**
910: * @param value
911: * @return true if the model contains a statement (this, MODIFIER, value)
912: */
913: public boolean hasSiocModifier(User value) {
914: return hasValue(MODIFIER, value);
915: }
916:
917: /**
918: * @return true if the model contains a statement (this, MODIFIER, *)
919: */
920: public boolean hasSiocModifier() {
921: return hasValue(MODIFIER);
922: }
923:
924: /**
925: * adds a value
926: * @param value the value to be added
927: * Schema Comment: A User who has modified this Item.
928: */
929: public void addSiocModifier(User value) {
930: add(MODIFIER, value);
931: }
932:
933: /**
934: * @return all values
935: * Schema Comment: A User who has modified this Item.
936: */
937: public User[] getAllSiocModifier() {
938: return (User[]) getAll(MODIFIER, User.class);
939: }
940:
941: }
|