Source Code Cross Referenced for Post.java in  » Search-Engine » semweb4j » org » rdfs » sioc » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Search Engine » semweb4j » org.rdfs.sioc 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


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> Numreplies </li>
018:         *   <li> Attachment </li>
019:         *   <li> Relatedto </li>
020:         *   <li> Sibling </li>
021:         *   <li> Note </li>
022:         *   <li> Content </li>
023:         * </ul>
024:         * Schema Comment: An article or message that can be posted to a Forum.
025:         */
026:        public class Post extends Item {
027:
028:            /** http://rdfs.org/sioc/ns#Post */
029:            public static final URI RDFS_CLASS = new URIImpl(
030:                    "http://rdfs.org/sioc/ns#Post", false);
031:
032:            /** http://rdfs.org/sioc/ns#num_replies */
033:            public static final URI NUMREPLIES = new URIImpl(
034:                    "http://rdfs.org/sioc/ns#num_replies", false);
035:
036:            /** http://rdfs.org/sioc/ns#attachment */
037:            public static final URI ATTACHMENT = new URIImpl(
038:                    "http://rdfs.org/sioc/ns#attachment", false);
039:
040:            /** http://rdfs.org/sioc/ns#related_to */
041:            public static final URI RELATEDTO = new URIImpl(
042:                    "http://rdfs.org/sioc/ns#related_to", false);
043:
044:            /** http://rdfs.org/sioc/ns#sibling */
045:            public static final URI SIBLING = new URIImpl(
046:                    "http://rdfs.org/sioc/ns#sibling", false);
047:
048:            /** http://rdfs.org/sioc/ns#note */
049:            public static final URI NOTE = new URIImpl(
050:                    "http://rdfs.org/sioc/ns#note", false);
051:
052:            /** http://rdfs.org/sioc/ns#content */
053:            public static final URI CONTENT = new URIImpl(
054:                    "http://rdfs.org/sioc/ns#content", false);
055:
056:            /** all property-URIs with this class as domain */
057:            public static final URI[] MANAGED_URIS = {
058:                    new URIImpl("http://rdfs.org/sioc/ns#num_replies", false),
059:                    new URIImpl("http://rdfs.org/sioc/ns#attachment", false),
060:                    new URIImpl("http://rdfs.org/sioc/ns#related_to", false),
061:                    new URIImpl("http://rdfs.org/sioc/ns#sibling", false),
062:                    new URIImpl("http://rdfs.org/sioc/ns#note", false),
063:                    new URIImpl("http://rdfs.org/sioc/ns#content", false) };
064:
065:            // protected constructors needed for inheritance
066:
067:            /**
068:             * Returns a Java wrapper over an RDF object, identified by URI.
069:             * Creating two wrappers for the same instanceURI is legal.
070:             * @param model RDF2GO Model implementation, see http://rdf2go.semweb4j.org
071:             * @param classURI URI of RDFS class
072:             * @param instanceIdentifier Resource that identifies this instance
073:             * @param write if true, the statement (this, rdf:type, TYPE) is written to the model
074:             */
075:            protected Post(Model model, URI classURI,
076:                    org.ontoware.rdf2go.model.node.Resource instanceIdentifier,
077:                    boolean write) {
078:                super (model, classURI, instanceIdentifier, write);
079:            }
080:
081:            // public constructors
082:
083:            /**
084:             * Returns a Java wrapper over an RDF object, identified by URI.
085:             * Creating two wrappers for the same instanceURI is legal.
086:             * @param model RDF2GO Model implementation, see http://rdf2go.ontoware.org
087:             * @param instanceIdentifier an RDF2Go Resource identifying this instance
088:             * @param write if true, the statement (this, rdf:type, TYPE) is written to the model
089:             */
090:            public Post(Model model,
091:                    org.ontoware.rdf2go.model.node.Resource instanceIdentifier,
092:                    boolean write) {
093:                super (model, RDFS_CLASS, instanceIdentifier, write);
094:            }
095:
096:            /**
097:             * Returns a Java wrapper over an RDF object, identified by URI.
098:             * Creating two wrappers for the same instanceURI is legal.
099:             * The statement (this, rdf:type, TYPE) is written to the model
100:             * @param model RDF2GO Model implementation, see http://rdf2go.ontoware.org
101:             * @param uri URI of this instance
102:             */
103:            public Post(Model model, URI uri) {
104:                this (model, uri, true);
105:            }
106:
107:            /**
108:             * Returns a Java wrapper over an RDF object, identified by URI.
109:             * Creating two wrappers for the same instanceURI is legal.
110:             * The statement (this, rdf:type, TYPE) is written to the model
111:             * @param model RDF2GO Model implementation, see http://rdf2go.ontoware.org
112:             * @param uriString A URI of this instance, represented as a String
113:             * @throws ModelRuntimeException if URI syntax is wrong
114:             */
115:            public Post(Model model, String uriString)
116:                    throws ModelRuntimeException {
117:                this (model, new URIImpl(uriString), true);
118:            }
119:
120:            /**
121:             * Returns a Java wrapper over an RDF object, identified by a blank node.
122:             * Creating two wrappers for the same blank node is legal.
123:             * The statement (this, rdf:type, TYPE) is written to the model
124:             * @param model RDF2GO Model implementation, see http://rdf2go.ontoware.org
125:             * @param bnode BlankNode of this instance
126:             */
127:            public Post(Model model, BlankNode bnode) {
128:                this (model, bnode, true);
129:            }
130:
131:            /**
132:             * Returns a Java wrapper over an RDF object, identified by 
133:             * a randomly generated URI.
134:             * Creating two wrappers results in different URIs.
135:             * The statement (this, rdf:type, TYPE) is written to the model
136:             * @param model RDF2GO Model implementation, see http://rdf2go.ontoware.org
137:             */
138:            public Post(Model model) {
139:                this (model, model.newRandomUniqueURI(), true);
140:            }
141:
142:            ///////////////////////////////////////////////////////////////////
143:            // getters, setters, ...
144:
145:            /**
146:             * @param model RDF2Go model
147:             * @param uri instance identifier
148:             * @return an instance of Post or null if none existst
149:             * @throws Exception if Model causes problems
150:             */
151:            public static Post getInstance(Model model, URI uri)
152:                    throws Exception {
153:                return (Post) getInstance(model, uri, Post.class);
154:            }
155:
156:            /**
157:             * @param model
158:             * @param uri
159:             * @return true if uri is an instance of this class in the model
160:             */
161:            public static boolean hasInstance(Model model, URI uri) {
162:                return hasInstance(model, uri, RDFS_CLASS);
163:            }
164:
165:            /**
166:             * @return all instances of this class
167:             */
168:            public Post[] getAllInstances() {
169:                return (Post[]) getAllInstances(super .model, Post.class);
170:            }
171:
172:            /**
173:             * @return all instances of this class in the given Model
174:             * @param model an RDF2Go model
175:             */
176:            public static Post[] getAllInstances(Model model) {
177:                return (Post[]) getAllInstances(model, Post.class);
178:            }
179:
180:            /**
181:             * @return all A's that have a relation 'Relatedto' to this Post instance
182:             */
183:            public Post[] getAllSiocRelatedto_Inverse() {
184:                return (Post[]) getAll_Inverse(Post.RELATEDTO, this 
185:                        .getResource(), Post.class);
186:            }
187:
188:            /**
189:             * add 'Relatedto'-Inverse
190:             * @param value
191:             */
192:            public void addSiocRelatedto_Inverse(Post value) {
193:                value.add(Post.RELATEDTO, this );
194:            }
195:
196:            /**
197:             * @return all A's that have a relation 'Sibling' to this Post instance
198:             */
199:            public Post[] getAllSiocSibling_Inverse() {
200:                return (Post[]) getAll_Inverse(Post.SIBLING,
201:                        this .getResource(), Post.class);
202:            }
203:
204:            /**
205:             * add 'Sibling'-Inverse
206:             * @param value
207:             */
208:            public void addSiocSibling_Inverse(Post value) {
209:                value.add(Post.SIBLING, this );
210:            }
211:
212:            /**
213:             * Schema Comment: The number of replies that this Post has. Useful for where the reply structure is absent.
214:             * @return the only value. null if none is found
215:             * @throws RDFDataException, if the property has multiple values
216:             */
217:            public java.lang.Integer getSiocNumreplies() {
218:                return (java.lang.Integer) get(NUMREPLIES,
219:                        java.lang.Integer.class);
220:            }
221:
222:            /**
223:             * removes all values and sets this one
224:             * @param value the value to be set
225:             * Schema Comment: The number of replies that this Post has. Useful for where the reply structure is absent.
226:             */
227:            public void setSiocNumreplies(java.lang.Integer value) {
228:                set(NUMREPLIES, value);
229:            }
230:
231:            /**
232:             * removes a value
233:             * @param value the value to be removed
234:             * Schema Comment: The number of replies that this Post has. Useful for where the reply structure is absent.
235:             */
236:            public void removeSiocNumreplies(java.lang.Integer value) {
237:                remove(NUMREPLIES, value);
238:            }
239:
240:            /**
241:             * @param value
242:             * @return true if the model contains a statement (this, NUMREPLIES, value)
243:             */
244:            public boolean hasSiocNumreplies(java.lang.Integer value) {
245:                return hasValue(NUMREPLIES, value);
246:            }
247:
248:            /**
249:             * @return true if the model contains a statement (this, NUMREPLIES, *)
250:             */
251:            public boolean hasSiocNumreplies() {
252:                return hasValue(NUMREPLIES);
253:            }
254:
255:            /**
256:             * adds a value
257:             * @param value the value to be added
258:             * Schema Comment: The number of replies that this Post has. Useful for where the reply structure is absent.
259:             */
260:            public void addSiocNumreplies(java.lang.Integer value) {
261:                add(NUMREPLIES, value);
262:            }
263:
264:            /**
265:             * @return all values
266:             * Schema Comment: The number of replies that this Post has. Useful for where the reply structure is absent.
267:             */
268:            public java.lang.Integer[] getAllSiocNumreplies() {
269:                return (java.lang.Integer[]) getAll(NUMREPLIES,
270:                        java.lang.Integer.class);
271:            }
272:
273:            /**
274:             * Schema Comment: The URI of a file attached to a Post.
275:             * @return the only value. null if none is found
276:             * @throws RDFDataException, if the property has multiple values
277:             */
278:            public Thing getSiocAttachment() {
279:                return (Thing) get(ATTACHMENT, Thing.class);
280:            }
281:
282:            /**
283:             * removes all values and sets this one
284:             * @param value the value to be set
285:             * Schema Comment: The URI of a file attached to a Post.
286:             */
287:            public void setSiocAttachment(Thing value) {
288:                set(ATTACHMENT, value);
289:            }
290:
291:            /**
292:             * removes a value
293:             * @param value the value to be removed
294:             * Schema Comment: The URI of a file attached to a Post.
295:             */
296:            public void removeSiocAttachment(Thing value) {
297:                remove(ATTACHMENT, value);
298:            }
299:
300:            /**
301:             * @param value
302:             * @return true if the model contains a statement (this, ATTACHMENT, value)
303:             */
304:            public boolean hasSiocAttachment(Thing value) {
305:                return hasValue(ATTACHMENT, value);
306:            }
307:
308:            /**
309:             * @return true if the model contains a statement (this, ATTACHMENT, *)
310:             */
311:            public boolean hasSiocAttachment() {
312:                return hasValue(ATTACHMENT);
313:            }
314:
315:            /**
316:             * adds a value
317:             * @param value the value to be added
318:             * Schema Comment: The URI of a file attached to a Post.
319:             */
320:            public void addSiocAttachment(Thing value) {
321:                add(ATTACHMENT, value);
322:            }
323:
324:            /**
325:             * @return all values
326:             * Schema Comment: The URI of a file attached to a Post.
327:             */
328:            public Thing[] getAllSiocAttachment() {
329:                return (Thing[]) getAll(ATTACHMENT, Thing.class);
330:            }
331:
332:            /**
333:             * Schema Comment: Related Posts for this Post, perhaps determined implicitly from topics or references.
334:             * @return the only value. null if none is found
335:             * @throws RDFDataException, if the property has multiple values
336:             */
337:            public Post getSiocRelatedto() {
338:                return (Post) get(RELATEDTO, Post.class);
339:            }
340:
341:            /**
342:             * removes all values and sets this one
343:             * @param value the value to be set
344:             * Schema Comment: Related Posts for this Post, perhaps determined implicitly from topics or references.
345:             */
346:            public void setSiocRelatedto(Post value) {
347:                set(RELATEDTO, value);
348:            }
349:
350:            /**
351:             * removes a value
352:             * @param value the value to be removed
353:             * Schema Comment: Related Posts for this Post, perhaps determined implicitly from topics or references.
354:             */
355:            public void removeSiocRelatedto(Post value) {
356:                remove(RELATEDTO, value);
357:            }
358:
359:            /**
360:             * @param value
361:             * @return true if the model contains a statement (this, RELATEDTO, value)
362:             */
363:            public boolean hasSiocRelatedto(Post value) {
364:                return hasValue(RELATEDTO, value);
365:            }
366:
367:            /**
368:             * @return true if the model contains a statement (this, RELATEDTO, *)
369:             */
370:            public boolean hasSiocRelatedto() {
371:                return hasValue(RELATEDTO);
372:            }
373:
374:            /**
375:             * adds a value
376:             * @param value the value to be added
377:             * Schema Comment: Related Posts for this Post, perhaps determined implicitly from topics or references.
378:             */
379:            public void addSiocRelatedto(Post value) {
380:                add(RELATEDTO, value);
381:            }
382:
383:            /**
384:             * @return all values
385:             * Schema Comment: Related Posts for this Post, perhaps determined implicitly from topics or references.
386:             */
387:            public Post[] getAllSiocRelatedto() {
388:                return (Post[]) getAll(RELATEDTO, Post.class);
389:            }
390:
391:            /**
392:             * Schema Comment: A Post may have a sibling or a twin that exists in a different Forum, but the siblings may differ in some small way (for example, language, category, etc.). The sibling of this Post should be self-describing (that is, it should contain all available information).
393:             * @return the only value. null if none is found
394:             * @throws RDFDataException, if the property has multiple values
395:             */
396:            public Post getSiocSibling() {
397:                return (Post) get(SIBLING, Post.class);
398:            }
399:
400:            /**
401:             * removes all values and sets this one
402:             * @param value the value to be set
403:             * Schema Comment: A Post may have a sibling or a twin that exists in a different Forum, but the siblings may differ in some small way (for example, language, category, etc.). The sibling of this Post should be self-describing (that is, it should contain all available information).
404:             */
405:            public void setSiocSibling(Post value) {
406:                set(SIBLING, value);
407:            }
408:
409:            /**
410:             * removes a value
411:             * @param value the value to be removed
412:             * Schema Comment: A Post may have a sibling or a twin that exists in a different Forum, but the siblings may differ in some small way (for example, language, category, etc.). The sibling of this Post should be self-describing (that is, it should contain all available information).
413:             */
414:            public void removeSiocSibling(Post value) {
415:                remove(SIBLING, value);
416:            }
417:
418:            /**
419:             * @param value
420:             * @return true if the model contains a statement (this, SIBLING, value)
421:             */
422:            public boolean hasSiocSibling(Post value) {
423:                return hasValue(SIBLING, value);
424:            }
425:
426:            /**
427:             * @return true if the model contains a statement (this, SIBLING, *)
428:             */
429:            public boolean hasSiocSibling() {
430:                return hasValue(SIBLING);
431:            }
432:
433:            /**
434:             * adds a value
435:             * @param value the value to be added
436:             * Schema Comment: A Post may have a sibling or a twin that exists in a different Forum, but the siblings may differ in some small way (for example, language, category, etc.). The sibling of this Post should be self-describing (that is, it should contain all available information).
437:             */
438:            public void addSiocSibling(Post value) {
439:                add(SIBLING, value);
440:            }
441:
442:            /**
443:             * @return all values
444:             * Schema Comment: A Post may have a sibling or a twin that exists in a different Forum, but the siblings may differ in some small way (for example, language, category, etc.). The sibling of this Post should be self-describing (that is, it should contain all available information).
445:             */
446:            public Post[] getAllSiocSibling() {
447:                return (Post[]) getAll(SIBLING, Post.class);
448:            }
449:
450:            /**
451:             * Schema Comment: A note associated with this Post, for example if it has been edited by a User.
452:             * @return the only value. null if none is found
453:             * @throws RDFDataException, if the property has multiple values
454:             */
455:            public java.lang.String getSiocNote() {
456:                return (java.lang.String) get(NOTE, java.lang.String.class);
457:            }
458:
459:            /**
460:             * removes all values and sets this one
461:             * @param value the value to be set
462:             * Schema Comment: A note associated with this Post, for example if it has been edited by a User.
463:             */
464:            public void setSiocNote(java.lang.String value) {
465:                set(NOTE, value);
466:            }
467:
468:            /**
469:             * removes a value
470:             * @param value the value to be removed
471:             * Schema Comment: A note associated with this Post, for example if it has been edited by a User.
472:             */
473:            public void removeSiocNote(java.lang.String value) {
474:                remove(NOTE, value);
475:            }
476:
477:            /**
478:             * @param value
479:             * @return true if the model contains a statement (this, NOTE, value)
480:             */
481:            public boolean hasSiocNote(java.lang.String value) {
482:                return hasValue(NOTE, value);
483:            }
484:
485:            /**
486:             * @return true if the model contains a statement (this, NOTE, *)
487:             */
488:            public boolean hasSiocNote() {
489:                return hasValue(NOTE);
490:            }
491:
492:            /**
493:             * adds a value
494:             * @param value the value to be added
495:             * Schema Comment: A note associated with this Post, for example if it has been edited by a User.
496:             */
497:            public void addSiocNote(java.lang.String value) {
498:                add(NOTE, value);
499:            }
500:
501:            /**
502:             * @return all values
503:             * Schema Comment: A note associated with this Post, for example if it has been edited by a User.
504:             */
505:            public java.lang.String[] getAllSiocNote() {
506:                return (java.lang.String[]) getAll(NOTE, java.lang.String.class);
507:            }
508:
509:            /**
510:             * Schema Comment: The content of the Post.
511:             * @return the only value. null if none is found
512:             * @throws RDFDataException, if the property has multiple values
513:             */
514:            public java.lang.String getSiocContent() {
515:                return (java.lang.String) get(CONTENT, java.lang.String.class);
516:            }
517:
518:            /**
519:             * removes all values and sets this one
520:             * @param value the value to be set
521:             * Schema Comment: The content of the Post.
522:             */
523:            public void setSiocContent(java.lang.String value) {
524:                set(CONTENT, value);
525:            }
526:
527:            /**
528:             * removes a value
529:             * @param value the value to be removed
530:             * Schema Comment: The content of the Post.
531:             */
532:            public void removeSiocContent(java.lang.String value) {
533:                remove(CONTENT, value);
534:            }
535:
536:            /**
537:             * @param value
538:             * @return true if the model contains a statement (this, CONTENT, value)
539:             */
540:            public boolean hasSiocContent(java.lang.String value) {
541:                return hasValue(CONTENT, value);
542:            }
543:
544:            /**
545:             * @return true if the model contains a statement (this, CONTENT, *)
546:             */
547:            public boolean hasSiocContent() {
548:                return hasValue(CONTENT);
549:            }
550:
551:            /**
552:             * adds a value
553:             * @param value the value to be added
554:             * Schema Comment: The content of the Post.
555:             */
556:            public void addSiocContent(java.lang.String value) {
557:                add(CONTENT, value);
558:            }
559:
560:            /**
561:             * @return all values
562:             * Schema Comment: The content of the Post.
563:             */
564:            public java.lang.String[] getAllSiocContent() {
565:                return (java.lang.String[]) getAll(CONTENT,
566:                        java.lang.String.class);
567:            }
568:
569:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.