Source Code Cross Referenced for Thing.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> Linksto </li>
018:         *   <li> Link </li>
019:         *   <li> Space </li>
020:         *   <li> Id </li>
021:         *   <li> Subject </li>
022:         *   <li> Name </li>
023:         *   <li> Feed </li>
024:         *   <li> Topic </li>
025:         *   <li> Numviews </li>
026:         * </ul>
027:         * Schema Comment: This class acts as a catch-all for all properties, for which no domain has specified.
028:         */
029:        public class Thing extends
030:                org.ontoware.rdfreactor.schema.rdfschema.Class {
031:
032:            /** http://www.w3.org/2000/01/rdf-schema#Class */
033:            public static final URI RDFS_CLASS = new URIImpl(
034:                    "http://www.w3.org/2000/01/rdf-schema#Class", false);
035:
036:            /** http://rdfs.org/sioc/ns#links_to */
037:            public static final URI LINKSTO = new URIImpl(
038:                    "http://rdfs.org/sioc/ns#links_to", false);
039:
040:            /** http://rdfs.org/sioc/ns#link */
041:            public static final URI LINK = new URIImpl(
042:                    "http://rdfs.org/sioc/ns#link", false);
043:
044:            /** http://rdfs.org/sioc/ns#has_space */
045:            public static final URI SPACE = new URIImpl(
046:                    "http://rdfs.org/sioc/ns#has_space", false);
047:
048:            /** http://rdfs.org/sioc/ns#id */
049:            public static final URI ID = new URIImpl(
050:                    "http://rdfs.org/sioc/ns#id", false);
051:
052:            /** http://purl.org/dc/elements/1.1/subject */
053:            public static final URI SUBJECT = new URIImpl(
054:                    "http://purl.org/dc/elements/1.1/subject", false);
055:
056:            /** http://rdfs.org/sioc/ns#name */
057:            public static final URI NAME = new URIImpl(
058:                    "http://rdfs.org/sioc/ns#name", false);
059:
060:            /** http://rdfs.org/sioc/ns#feed */
061:            public static final URI FEED = new URIImpl(
062:                    "http://rdfs.org/sioc/ns#feed", false);
063:
064:            /** http://rdfs.org/sioc/ns#topic */
065:            public static final URI TOPIC = new URIImpl(
066:                    "http://rdfs.org/sioc/ns#topic", false);
067:
068:            /** http://rdfs.org/sioc/ns#num_views */
069:            public static final URI NUMVIEWS = new URIImpl(
070:                    "http://rdfs.org/sioc/ns#num_views", false);
071:
072:            /** all property-URIs with this class as domain */
073:            public static final URI[] MANAGED_URIS = {
074:                    new URIImpl("http://rdfs.org/sioc/ns#links_to", false),
075:                    new URIImpl("http://rdfs.org/sioc/ns#link", false),
076:                    new URIImpl("http://rdfs.org/sioc/ns#has_space", false),
077:                    new URIImpl("http://rdfs.org/sioc/ns#id", false),
078:                    new URIImpl("http://purl.org/dc/elements/1.1/subject",
079:                            false),
080:                    new URIImpl("http://rdfs.org/sioc/ns#name", false),
081:                    new URIImpl("http://rdfs.org/sioc/ns#feed", false),
082:                    new URIImpl("http://rdfs.org/sioc/ns#topic", false),
083:                    new URIImpl("http://rdfs.org/sioc/ns#num_views", false) };
084:
085:            // protected constructors needed for inheritance
086:
087:            /**
088:             * Returns a Java wrapper over an RDF object, identified by URI.
089:             * Creating two wrappers for the same instanceURI is legal.
090:             * @param model RDF2GO Model implementation, see http://rdf2go.semweb4j.org
091:             * @param classURI URI of RDFS class
092:             * @param instanceIdentifier Resource that identifies this instance
093:             * @param write if true, the statement (this, rdf:type, TYPE) is written to the model
094:             */
095:            protected Thing(Model model, URI classURI,
096:                    org.ontoware.rdf2go.model.node.Resource instanceIdentifier,
097:                    boolean write) {
098:                super (model, classURI, instanceIdentifier, write);
099:            }
100:
101:            // public constructors
102:
103:            /**
104:             * Returns a Java wrapper over an RDF object, identified by URI.
105:             * Creating two wrappers for the same instanceURI is legal.
106:             * @param model RDF2GO Model implementation, see http://rdf2go.ontoware.org
107:             * @param instanceIdentifier an RDF2Go Resource identifying this instance
108:             * @param write if true, the statement (this, rdf:type, TYPE) is written to the model
109:             */
110:            public Thing(Model model,
111:                    org.ontoware.rdf2go.model.node.Resource instanceIdentifier,
112:                    boolean write) {
113:                super (model, RDFS_CLASS, instanceIdentifier, write);
114:            }
115:
116:            /**
117:             * Returns a Java wrapper over an RDF object, identified by URI.
118:             * Creating two wrappers for the same instanceURI is legal.
119:             * The statement (this, rdf:type, TYPE) is written to the model
120:             * @param model RDF2GO Model implementation, see http://rdf2go.ontoware.org
121:             * @param uri URI of this instance
122:             */
123:            public Thing(Model model, URI uri) {
124:                this (model, uri, true);
125:            }
126:
127:            /**
128:             * Returns a Java wrapper over an RDF object, identified by URI.
129:             * Creating two wrappers for the same instanceURI is legal.
130:             * The statement (this, rdf:type, TYPE) is written to the model
131:             * @param model RDF2GO Model implementation, see http://rdf2go.ontoware.org
132:             * @param uriString A URI of this instance, represented as a String
133:             * @throws ModelRuntimeException if URI syntax is wrong
134:             */
135:            public Thing(Model model, String uriString)
136:                    throws ModelRuntimeException {
137:                this (model, new URIImpl(uriString), true);
138:            }
139:
140:            /**
141:             * Returns a Java wrapper over an RDF object, identified by a blank node.
142:             * Creating two wrappers for the same blank node is legal.
143:             * The statement (this, rdf:type, TYPE) is written to the model
144:             * @param model RDF2GO Model implementation, see http://rdf2go.ontoware.org
145:             * @param bnode BlankNode of this instance
146:             */
147:            public Thing(Model model, BlankNode bnode) {
148:                this (model, bnode, true);
149:            }
150:
151:            /**
152:             * Returns a Java wrapper over an RDF object, identified by 
153:             * a randomly generated URI.
154:             * Creating two wrappers results in different URIs.
155:             * The statement (this, rdf:type, TYPE) is written to the model
156:             * @param model RDF2GO Model implementation, see http://rdf2go.ontoware.org
157:             */
158:            public Thing(Model model) {
159:                this (model, model.newRandomUniqueURI(), true);
160:            }
161:
162:            ///////////////////////////////////////////////////////////////////
163:            // getters, setters, ...
164:
165:            /**
166:             * @param model RDF2Go model
167:             * @param uri instance identifier
168:             * @return an instance of Thing or null if none existst
169:             * @throws Exception if Model causes problems
170:             */
171:            public static Thing getInstance(Model model, URI uri)
172:                    throws Exception {
173:                return (Thing) getInstance(model, uri, Thing.class);
174:            }
175:
176:            /**
177:             * @param model
178:             * @param uri
179:             * @return true if uri is an instance of this class in the model
180:             */
181:            public static boolean hasInstance(Model model, URI uri) {
182:                return hasInstance(model, uri, RDFS_CLASS);
183:            }
184:
185:            /**
186:             * @return all instances of this class
187:             */
188:            public Thing[] getAllInstances() {
189:                return (Thing[]) getAllInstances(super .model, Thing.class);
190:            }
191:
192:            /**
193:             * @return all instances of this class in the given Model
194:             * @param model an RDF2Go model
195:             */
196:            public static Thing[] getAllInstances(Model model) {
197:                return (Thing[]) getAllInstances(model, Thing.class);
198:            }
199:
200:            /**
201:             * @return all A's that have a relation 'Linksto' to this Thing instance
202:             */
203:            public Thing[] getAllSiocLinksto_Inverse() {
204:                return (Thing[]) getAll_Inverse(Thing.LINKSTO, this 
205:                        .getResource(), Thing.class);
206:            }
207:
208:            /**
209:             * add 'Linksto'-Inverse
210:             * @param value
211:             */
212:            public void addSiocLinksto_Inverse(Thing value) {
213:                value.add(Thing.LINKSTO, this );
214:            }
215:
216:            /**
217:             * @return all A's that have a relation 'Link' to this Thing instance
218:             */
219:            public Thing[] getAllSiocLink_Inverse() {
220:                return (Thing[]) getAll_Inverse(Thing.LINK, this .getResource(),
221:                        Thing.class);
222:            }
223:
224:            /**
225:             * add 'Link'-Inverse
226:             * @param value
227:             */
228:            public void addSiocLink_Inverse(Thing value) {
229:                value.add(Thing.LINK, this );
230:            }
231:
232:            /**
233:             * @return all A's that have a relation 'Subject' to this Thing instance
234:             */
235:            public Thing[] getAllSiocSubject_Inverse() {
236:                return (Thing[]) getAll_Inverse(Thing.SUBJECT, this 
237:                        .getResource(), Thing.class);
238:            }
239:
240:            /**
241:             * add 'Subject'-Inverse
242:             * @param value
243:             */
244:            public void addSiocSubject_Inverse(Thing value) {
245:                value.add(Thing.SUBJECT, this );
246:            }
247:
248:            /**
249:             * @return all A's that have a relation 'Feed' to this Thing instance
250:             */
251:            public Thing[] getAllSiocFeed_Inverse() {
252:                return (Thing[]) getAll_Inverse(Thing.FEED, this .getResource(),
253:                        Thing.class);
254:            }
255:
256:            /**
257:             * add 'Feed'-Inverse
258:             * @param value
259:             */
260:            public void addSiocFeed_Inverse(Thing value) {
261:                value.add(Thing.FEED, this );
262:            }
263:
264:            /**
265:             * @return all A's that have a relation 'Topic' to this Thing instance
266:             */
267:            public Thing[] getAllSiocTopic_Inverse() {
268:                return (Thing[]) getAll_Inverse(Thing.TOPIC,
269:                        this .getResource(), Thing.class);
270:            }
271:
272:            /**
273:             * add 'Topic'-Inverse
274:             * @param value
275:             */
276:            public void addSiocTopic_Inverse(Thing value) {
277:                value.add(Thing.TOPIC, this );
278:            }
279:
280:            /**
281:             * @return all A's that have a relation 'Attachment' to this Thing instance
282:             */
283:            public Post[] getAllSiocAttachment_Inverse() {
284:                return (Post[]) getAll_Inverse(Post.ATTACHMENT, this 
285:                        .getResource(), Post.class);
286:            }
287:
288:            /**
289:             * add 'Attachment'-Inverse
290:             * @param value
291:             */
292:            public void addSiocAttachment_Inverse(Post value) {
293:                value.add(Post.ATTACHMENT, this );
294:            }
295:
296:            /**
297:             * @return all A's that have a relation 'Spaceof' to this Thing instance
298:             */
299:            public Space[] getAllSiocSpaceof_Inverse() {
300:                return (Space[]) getAll_Inverse(Space.SPACEOF, this 
301:                        .getResource(), Space.class);
302:            }
303:
304:            /**
305:             * add 'Spaceof'-Inverse
306:             * @param value
307:             */
308:            public void addSiocSpaceof_Inverse(Space value) {
309:                value.add(Space.SPACEOF, this );
310:            }
311:
312:            /**
313:             * @return all A's that have a relation 'Avatar' to this Thing instance
314:             */
315:            public User[] getAllSiocAvatar_Inverse() {
316:                return (User[]) getAll_Inverse(User.AVATAR, this .getResource(),
317:                        User.class);
318:            }
319:
320:            /**
321:             * add 'Avatar'-Inverse
322:             * @param value
323:             */
324:            public void addSiocAvatar_Inverse(User value) {
325:                value.add(User.AVATAR, this );
326:            }
327:
328:            /**
329:             * @return all A's that have a relation 'Email' to this Thing instance
330:             */
331:            public User[] getAllSiocEmail_Inverse() {
332:                return (User[]) getAll_Inverse(User.EMAIL, this .getResource(),
333:                        User.class);
334:            }
335:
336:            /**
337:             * add 'Email'-Inverse
338:             * @param value
339:             */
340:            public void addSiocEmail_Inverse(User value) {
341:                value.add(User.EMAIL, this );
342:            }
343:
344:            /**
345:             * Schema Comment: Links extracted from hyperlinks within a SIOC concept, e.g., Post or Site.
346:             * @return the only value. null if none is found
347:             * @throws RDFDataException, if the property has multiple values
348:             */
349:            public Thing getSiocLinksto() {
350:                return (Thing) get(LINKSTO, Thing.class);
351:            }
352:
353:            /**
354:             * removes all values and sets this one
355:             * @param value the value to be set
356:             * Schema Comment: Links extracted from hyperlinks within a SIOC concept, e.g., Post or Site.
357:             */
358:            public void setSiocLinksto(Thing value) {
359:                set(LINKSTO, value);
360:            }
361:
362:            /**
363:             * removes a value
364:             * @param value the value to be removed
365:             * Schema Comment: Links extracted from hyperlinks within a SIOC concept, e.g., Post or Site.
366:             */
367:            public void removeSiocLinksto(Thing value) {
368:                remove(LINKSTO, value);
369:            }
370:
371:            /**
372:             * @param value
373:             * @return true if the model contains a statement (this, LINKSTO, value)
374:             */
375:            public boolean hasSiocLinksto(Thing value) {
376:                return hasValue(LINKSTO, value);
377:            }
378:
379:            /**
380:             * @return true if the model contains a statement (this, LINKSTO, *)
381:             */
382:            public boolean hasSiocLinksto() {
383:                return hasValue(LINKSTO);
384:            }
385:
386:            /**
387:             * adds a value
388:             * @param value the value to be added
389:             * Schema Comment: Links extracted from hyperlinks within a SIOC concept, e.g., Post or Site.
390:             */
391:            public void addSiocLinksto(Thing value) {
392:                add(LINKSTO, value);
393:            }
394:
395:            /**
396:             * @return all values
397:             * Schema Comment: Links extracted from hyperlinks within a SIOC concept, e.g., Post or Site.
398:             */
399:            public Thing[] getAllSiocLinksto() {
400:                return (Thing[]) getAll(LINKSTO, Thing.class);
401:            }
402:
403:            /**
404:             * Schema Comment: A URI of a document which contains this SIOC object.
405:             * @return the only value. null if none is found
406:             * @throws RDFDataException, if the property has multiple values
407:             */
408:            public Thing getSiocLink() {
409:                return (Thing) get(LINK, Thing.class);
410:            }
411:
412:            /**
413:             * removes all values and sets this one
414:             * @param value the value to be set
415:             * Schema Comment: A URI of a document which contains this SIOC object.
416:             */
417:            public void setSiocLink(Thing value) {
418:                set(LINK, value);
419:            }
420:
421:            /**
422:             * removes a value
423:             * @param value the value to be removed
424:             * Schema Comment: A URI of a document which contains this SIOC object.
425:             */
426:            public void removeSiocLink(Thing value) {
427:                remove(LINK, value);
428:            }
429:
430:            /**
431:             * @param value
432:             * @return true if the model contains a statement (this, LINK, value)
433:             */
434:            public boolean hasSiocLink(Thing value) {
435:                return hasValue(LINK, value);
436:            }
437:
438:            /**
439:             * @return true if the model contains a statement (this, LINK, *)
440:             */
441:            public boolean hasSiocLink() {
442:                return hasValue(LINK);
443:            }
444:
445:            /**
446:             * adds a value
447:             * @param value the value to be added
448:             * Schema Comment: A URI of a document which contains this SIOC object.
449:             */
450:            public void addSiocLink(Thing value) {
451:                add(LINK, value);
452:            }
453:
454:            /**
455:             * @return all values
456:             * Schema Comment: A URI of a document which contains this SIOC object.
457:             */
458:            public Thing[] getAllSiocLink() {
459:                return (Thing[]) getAll(LINK, Thing.class);
460:            }
461:
462:            /**
463:             * Schema Comment: A data Space which this resource is a part of.
464:             * @return the only value. null if none is found
465:             * @throws RDFDataException, if the property has multiple values
466:             */
467:            public Space getSiocSpace() {
468:                return (Space) get(SPACE, Space.class);
469:            }
470:
471:            /**
472:             * removes all values and sets this one
473:             * @param value the value to be set
474:             * Schema Comment: A data Space which this resource is a part of.
475:             */
476:            public void setSiocSpace(Space value) {
477:                set(SPACE, value);
478:            }
479:
480:            /**
481:             * removes a value
482:             * @param value the value to be removed
483:             * Schema Comment: A data Space which this resource is a part of.
484:             */
485:            public void removeSiocSpace(Space value) {
486:                remove(SPACE, value);
487:            }
488:
489:            /**
490:             * @param value
491:             * @return true if the model contains a statement (this, SPACE, value)
492:             */
493:            public boolean hasSiocSpace(Space value) {
494:                return hasValue(SPACE, value);
495:            }
496:
497:            /**
498:             * @return true if the model contains a statement (this, SPACE, *)
499:             */
500:            public boolean hasSiocSpace() {
501:                return hasValue(SPACE);
502:            }
503:
504:            /**
505:             * adds a value
506:             * @param value the value to be added
507:             * Schema Comment: A data Space which this resource is a part of.
508:             */
509:            public void addSiocSpace(Space value) {
510:                add(SPACE, value);
511:            }
512:
513:            /**
514:             * @return all values
515:             * Schema Comment: A data Space which this resource is a part of.
516:             */
517:            public Space[] getAllSiocSpace() {
518:                return (Space[]) getAll(SPACE, Space.class);
519:            }
520:
521:            /**
522:             * Schema Comment: An identifier of a SIOC concept instance. For example, a user ID. Must be unique for instances of each type of SIOC concept within the same site.
523:             * @return the only value. null if none is found
524:             * @throws RDFDataException, if the property has multiple values
525:             */
526:            public java.lang.String getSiocId() {
527:                return (java.lang.String) get(ID, java.lang.String.class);
528:            }
529:
530:            /**
531:             * removes all values and sets this one
532:             * @param value the value to be set
533:             * Schema Comment: An identifier of a SIOC concept instance. For example, a user ID. Must be unique for instances of each type of SIOC concept within the same site.
534:             */
535:            public void setSiocId(java.lang.String value) {
536:                set(ID, value);
537:            }
538:
539:            /**
540:             * removes a value
541:             * @param value the value to be removed
542:             * Schema Comment: An identifier of a SIOC concept instance. For example, a user ID. Must be unique for instances of each type of SIOC concept within the same site.
543:             */
544:            public void removeSiocId(java.lang.String value) {
545:                remove(ID, value);
546:            }
547:
548:            /**
549:             * @param value
550:             * @return true if the model contains a statement (this, ID, value)
551:             */
552:            public boolean hasSiocId(java.lang.String value) {
553:                return hasValue(ID, value);
554:            }
555:
556:            /**
557:             * @return true if the model contains a statement (this, ID, *)
558:             */
559:            public boolean hasSiocId() {
560:                return hasValue(ID);
561:            }
562:
563:            /**
564:             * adds a value
565:             * @param value the value to be added
566:             * Schema Comment: An identifier of a SIOC concept instance. For example, a user ID. Must be unique for instances of each type of SIOC concept within the same site.
567:             */
568:            public void addSiocId(java.lang.String value) {
569:                add(ID, value);
570:            }
571:
572:            /**
573:             * @return all values
574:             * Schema Comment: An identifier of a SIOC concept instance. For example, a user ID. Must be unique for instances of each type of SIOC concept within the same site.
575:             */
576:            public java.lang.String[] getAllSiocId() {
577:                return (java.lang.String[]) getAll(ID, java.lang.String.class);
578:            }
579:
580:            /**
581:             * @return the only value. null if none is found
582:             * @throws RDFDataException, if the property has multiple values
583:             */
584:            public Thing getSiocSubject() {
585:                return (Thing) get(SUBJECT, Thing.class);
586:            }
587:
588:            /**
589:             * removes all values and sets this one
590:             * @param value the value to be set
591:             */
592:            public void setSiocSubject(Thing value) {
593:                set(SUBJECT, value);
594:            }
595:
596:            /**
597:             * removes a value
598:             * @param value the value to be removed
599:             */
600:            public void removeSiocSubject(Thing value) {
601:                remove(SUBJECT, value);
602:            }
603:
604:            /**
605:             * @param value
606:             * @return true if the model contains a statement (this, SUBJECT, value)
607:             */
608:            public boolean hasSiocSubject(Thing value) {
609:                return hasValue(SUBJECT, value);
610:            }
611:
612:            /**
613:             * @return true if the model contains a statement (this, SUBJECT, *)
614:             */
615:            public boolean hasSiocSubject() {
616:                return hasValue(SUBJECT);
617:            }
618:
619:            /**
620:             * adds a value
621:             * @param value the value to be added
622:             */
623:            public void addSiocSubject(Thing value) {
624:                add(SUBJECT, value);
625:            }
626:
627:            /**
628:             * @return all values
629:             */
630:            public Thing[] getAllSiocSubject() {
631:                return (Thing[]) getAll(SUBJECT, Thing.class);
632:            }
633:
634:            /**
635:             * Schema Comment: The name of a SIOC instance, e.g. a username for a User, group name for a Usergroup, etc.
636:             * @return the only value. null if none is found
637:             * @throws RDFDataException, if the property has multiple values
638:             */
639:            public java.lang.String getSiocName() {
640:                return (java.lang.String) get(NAME, java.lang.String.class);
641:            }
642:
643:            /**
644:             * removes all values and sets this one
645:             * @param value the value to be set
646:             * Schema Comment: The name of a SIOC instance, e.g. a username for a User, group name for a Usergroup, etc.
647:             */
648:            public void setSiocName(java.lang.String value) {
649:                set(NAME, value);
650:            }
651:
652:            /**
653:             * removes a value
654:             * @param value the value to be removed
655:             * Schema Comment: The name of a SIOC instance, e.g. a username for a User, group name for a Usergroup, etc.
656:             */
657:            public void removeSiocName(java.lang.String value) {
658:                remove(NAME, value);
659:            }
660:
661:            /**
662:             * @param value
663:             * @return true if the model contains a statement (this, NAME, value)
664:             */
665:            public boolean hasSiocName(java.lang.String value) {
666:                return hasValue(NAME, value);
667:            }
668:
669:            /**
670:             * @return true if the model contains a statement (this, NAME, *)
671:             */
672:            public boolean hasSiocName() {
673:                return hasValue(NAME);
674:            }
675:
676:            /**
677:             * adds a value
678:             * @param value the value to be added
679:             * Schema Comment: The name of a SIOC instance, e.g. a username for a User, group name for a Usergroup, etc.
680:             */
681:            public void addSiocName(java.lang.String value) {
682:                add(NAME, value);
683:            }
684:
685:            /**
686:             * @return all values
687:             * Schema Comment: The name of a SIOC instance, e.g. a username for a User, group name for a Usergroup, etc.
688:             */
689:            public java.lang.String[] getAllSiocName() {
690:                return (java.lang.String[]) getAll(NAME, java.lang.String.class);
691:            }
692:
693:            /**
694:             * Schema Comment: A feed (e.g., RSS, Atom, etc.) pertaining to this resource (e.g., for a Forum, Site, User, etc.).
695:             * @return the only value. null if none is found
696:             * @throws RDFDataException, if the property has multiple values
697:             */
698:            public Thing getSiocFeed() {
699:                return (Thing) get(FEED, Thing.class);
700:            }
701:
702:            /**
703:             * removes all values and sets this one
704:             * @param value the value to be set
705:             * Schema Comment: A feed (e.g., RSS, Atom, etc.) pertaining to this resource (e.g., for a Forum, Site, User, etc.).
706:             */
707:            public void setSiocFeed(Thing value) {
708:                set(FEED, value);
709:            }
710:
711:            /**
712:             * removes a value
713:             * @param value the value to be removed
714:             * Schema Comment: A feed (e.g., RSS, Atom, etc.) pertaining to this resource (e.g., for a Forum, Site, User, etc.).
715:             */
716:            public void removeSiocFeed(Thing value) {
717:                remove(FEED, value);
718:            }
719:
720:            /**
721:             * @param value
722:             * @return true if the model contains a statement (this, FEED, value)
723:             */
724:            public boolean hasSiocFeed(Thing value) {
725:                return hasValue(FEED, value);
726:            }
727:
728:            /**
729:             * @return true if the model contains a statement (this, FEED, *)
730:             */
731:            public boolean hasSiocFeed() {
732:                return hasValue(FEED);
733:            }
734:
735:            /**
736:             * adds a value
737:             * @param value the value to be added
738:             * Schema Comment: A feed (e.g., RSS, Atom, etc.) pertaining to this resource (e.g., for a Forum, Site, User, etc.).
739:             */
740:            public void addSiocFeed(Thing value) {
741:                add(FEED, value);
742:            }
743:
744:            /**
745:             * @return all values
746:             * Schema Comment: A feed (e.g., RSS, Atom, etc.) pertaining to this resource (e.g., for a Forum, Site, User, etc.).
747:             */
748:            public Thing[] getAllSiocFeed() {
749:                return (Thing[]) getAll(FEED, Thing.class);
750:            }
751:
752:            /**
753:             * Schema Comment: A topic of interest, linking to the appropriate URI, e.g., in the Open Directory Project or of a SKOS category.
754:             * @return the only value. null if none is found
755:             * @throws RDFDataException, if the property has multiple values
756:             */
757:            public Thing getSiocTopic() {
758:                return (Thing) get(TOPIC, Thing.class);
759:            }
760:
761:            /**
762:             * removes all values and sets this one
763:             * @param value the value to be set
764:             * Schema Comment: A topic of interest, linking to the appropriate URI, e.g., in the Open Directory Project or of a SKOS category.
765:             */
766:            public void setSiocTopic(Thing value) {
767:                set(TOPIC, value);
768:            }
769:
770:            /**
771:             * removes a value
772:             * @param value the value to be removed
773:             * Schema Comment: A topic of interest, linking to the appropriate URI, e.g., in the Open Directory Project or of a SKOS category.
774:             */
775:            public void removeSiocTopic(Thing value) {
776:                remove(TOPIC, value);
777:            }
778:
779:            /**
780:             * @param value
781:             * @return true if the model contains a statement (this, TOPIC, value)
782:             */
783:            public boolean hasSiocTopic(Thing value) {
784:                return hasValue(TOPIC, value);
785:            }
786:
787:            /**
788:             * @return true if the model contains a statement (this, TOPIC, *)
789:             */
790:            public boolean hasSiocTopic() {
791:                return hasValue(TOPIC);
792:            }
793:
794:            /**
795:             * adds a value
796:             * @param value the value to be added
797:             * Schema Comment: A topic of interest, linking to the appropriate URI, e.g., in the Open Directory Project or of a SKOS category.
798:             */
799:            public void addSiocTopic(Thing value) {
800:                add(TOPIC, value);
801:            }
802:
803:            /**
804:             * @return all values
805:             * Schema Comment: A topic of interest, linking to the appropriate URI, e.g., in the Open Directory Project or of a SKOS category.
806:             */
807:            public Thing[] getAllSiocTopic() {
808:                return (Thing[]) getAll(TOPIC, Thing.class);
809:            }
810:
811:            /**
812:             * Schema Comment: The number of times this Item, Thread, User profile, etc. has been viewed.
813:             * @return the only value. null if none is found
814:             * @throws RDFDataException, if the property has multiple values
815:             */
816:            public java.lang.Integer getSiocNumviews() {
817:                return (java.lang.Integer) get(NUMVIEWS,
818:                        java.lang.Integer.class);
819:            }
820:
821:            /**
822:             * removes all values and sets this one
823:             * @param value the value to be set
824:             * Schema Comment: The number of times this Item, Thread, User profile, etc. has been viewed.
825:             */
826:            public void setSiocNumviews(java.lang.Integer value) {
827:                set(NUMVIEWS, value);
828:            }
829:
830:            /**
831:             * removes a value
832:             * @param value the value to be removed
833:             * Schema Comment: The number of times this Item, Thread, User profile, etc. has been viewed.
834:             */
835:            public void removeSiocNumviews(java.lang.Integer value) {
836:                remove(NUMVIEWS, value);
837:            }
838:
839:            /**
840:             * @param value
841:             * @return true if the model contains a statement (this, NUMVIEWS, value)
842:             */
843:            public boolean hasSiocNumviews(java.lang.Integer value) {
844:                return hasValue(NUMVIEWS, value);
845:            }
846:
847:            /**
848:             * @return true if the model contains a statement (this, NUMVIEWS, *)
849:             */
850:            public boolean hasSiocNumviews() {
851:                return hasValue(NUMVIEWS);
852:            }
853:
854:            /**
855:             * adds a value
856:             * @param value the value to be added
857:             * Schema Comment: The number of times this Item, Thread, User profile, etc. has been viewed.
858:             */
859:            public void addSiocNumviews(java.lang.Integer value) {
860:                add(NUMVIEWS, value);
861:            }
862:
863:            /**
864:             * @return all values
865:             * Schema Comment: The number of times this Item, Thread, User profile, etc. has been viewed.
866:             */
867:            public java.lang.Integer[] getAllSiocNumviews() {
868:                return (java.lang.Integer[]) getAll(NUMVIEWS,
869:                        java.lang.Integer.class);
870:            }
871:
872:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.