Source Code Cross Referenced for Forum.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> Host </li>
018:         *   <li> Moderator </li>
019:         *   <li> Scopeof </li>
020:         * </ul>
021:         * Schema Comment: A discussion area on which Posts or entries are made.
022:         */
023:        public class Forum extends Container {
024:
025:            /** http://rdfs.org/sioc/ns#Forum */
026:            public static final URI RDFS_CLASS = new URIImpl(
027:                    "http://rdfs.org/sioc/ns#Forum", false);
028:
029:            /** http://rdfs.org/sioc/ns#has_host */
030:            public static final URI HOST = new URIImpl(
031:                    "http://rdfs.org/sioc/ns#has_host", false);
032:
033:            /** http://rdfs.org/sioc/ns#has_moderator */
034:            public static final URI MODERATOR = new URIImpl(
035:                    "http://rdfs.org/sioc/ns#has_moderator", false);
036:
037:            /** http://rdfs.org/sioc/ns#scope_of */
038:            public static final URI SCOPEOF = new URIImpl(
039:                    "http://rdfs.org/sioc/ns#scope_of", false);
040:
041:            /** all property-URIs with this class as domain */
042:            public static final URI[] MANAGED_URIS = {
043:                    new URIImpl("http://rdfs.org/sioc/ns#has_host", false),
044:                    new URIImpl("http://rdfs.org/sioc/ns#has_moderator", false),
045:                    new URIImpl("http://rdfs.org/sioc/ns#scope_of", false) };
046:
047:            // protected constructors needed for inheritance
048:
049:            /**
050:             * Returns a Java wrapper over an RDF object, identified by URI.
051:             * Creating two wrappers for the same instanceURI is legal.
052:             * @param model RDF2GO Model implementation, see http://rdf2go.semweb4j.org
053:             * @param classURI URI of RDFS class
054:             * @param instanceIdentifier Resource that identifies this instance
055:             * @param write if true, the statement (this, rdf:type, TYPE) is written to the model
056:             */
057:            protected Forum(Model model, URI classURI,
058:                    org.ontoware.rdf2go.model.node.Resource instanceIdentifier,
059:                    boolean write) {
060:                super (model, classURI, instanceIdentifier, write);
061:            }
062:
063:            // public constructors
064:
065:            /**
066:             * Returns a Java wrapper over an RDF object, identified by URI.
067:             * Creating two wrappers for the same instanceURI is legal.
068:             * @param model RDF2GO Model implementation, see http://rdf2go.ontoware.org
069:             * @param instanceIdentifier an RDF2Go Resource identifying this instance
070:             * @param write if true, the statement (this, rdf:type, TYPE) is written to the model
071:             */
072:            public Forum(Model model,
073:                    org.ontoware.rdf2go.model.node.Resource instanceIdentifier,
074:                    boolean write) {
075:                super (model, RDFS_CLASS, instanceIdentifier, write);
076:            }
077:
078:            /**
079:             * Returns a Java wrapper over an RDF object, identified by URI.
080:             * Creating two wrappers for the same instanceURI is legal.
081:             * The statement (this, rdf:type, TYPE) is written to the model
082:             * @param model RDF2GO Model implementation, see http://rdf2go.ontoware.org
083:             * @param uri URI of this instance
084:             */
085:            public Forum(Model model, URI uri) {
086:                this (model, uri, true);
087:            }
088:
089:            /**
090:             * Returns a Java wrapper over an RDF object, identified by URI.
091:             * Creating two wrappers for the same instanceURI is legal.
092:             * The statement (this, rdf:type, TYPE) is written to the model
093:             * @param model RDF2GO Model implementation, see http://rdf2go.ontoware.org
094:             * @param uriString A URI of this instance, represented as a String
095:             * @throws ModelRuntimeException if URI syntax is wrong
096:             */
097:            public Forum(Model model, String uriString)
098:                    throws ModelRuntimeException {
099:                this (model, new URIImpl(uriString), true);
100:            }
101:
102:            /**
103:             * Returns a Java wrapper over an RDF object, identified by a blank node.
104:             * Creating two wrappers for the same blank node is legal.
105:             * The statement (this, rdf:type, TYPE) is written to the model
106:             * @param model RDF2GO Model implementation, see http://rdf2go.ontoware.org
107:             * @param bnode BlankNode of this instance
108:             */
109:            public Forum(Model model, BlankNode bnode) {
110:                this (model, bnode, true);
111:            }
112:
113:            /**
114:             * Returns a Java wrapper over an RDF object, identified by 
115:             * a randomly generated URI.
116:             * Creating two wrappers results in different URIs.
117:             * The statement (this, rdf:type, TYPE) is written to the model
118:             * @param model RDF2GO Model implementation, see http://rdf2go.ontoware.org
119:             */
120:            public Forum(Model model) {
121:                this (model, model.newRandomUniqueURI(), true);
122:            }
123:
124:            ///////////////////////////////////////////////////////////////////
125:            // getters, setters, ...
126:
127:            /**
128:             * @param model RDF2Go model
129:             * @param uri instance identifier
130:             * @return an instance of Forum or null if none existst
131:             * @throws Exception if Model causes problems
132:             */
133:            public static Forum getInstance(Model model, URI uri)
134:                    throws Exception {
135:                return (Forum) getInstance(model, uri, Forum.class);
136:            }
137:
138:            /**
139:             * @param model
140:             * @param uri
141:             * @return true if uri is an instance of this class in the model
142:             */
143:            public static boolean hasInstance(Model model, URI uri) {
144:                return hasInstance(model, uri, RDFS_CLASS);
145:            }
146:
147:            /**
148:             * @return all instances of this class
149:             */
150:            public Forum[] getAllInstances() {
151:                return (Forum[]) getAllInstances(super .model, Forum.class);
152:            }
153:
154:            /**
155:             * @return all instances of this class in the given Model
156:             * @param model an RDF2Go model
157:             */
158:            public static Forum[] getAllInstances(Model model) {
159:                return (Forum[]) getAllInstances(model, Forum.class);
160:            }
161:
162:            /**
163:             * @return all A's that have a relation 'Hostof' to this Forum instance
164:             */
165:            public Site[] getAllSiocHostof_Inverse() {
166:                return (Site[]) getAll_Inverse(Site.HOSTOF, this .getResource(),
167:                        Site.class);
168:            }
169:
170:            /**
171:             * add 'Hostof'-Inverse
172:             * @param value
173:             */
174:            public void addSiocHostof_Inverse(Site value) {
175:                value.add(Site.HOSTOF, this );
176:            }
177:
178:            /**
179:             * @return all A's that have a relation 'Scope' to this Forum instance
180:             */
181:            public Role[] getAllSiocScope_Inverse() {
182:                return (Role[]) getAll_Inverse(Role.SCOPE, this .getResource(),
183:                        Role.class);
184:            }
185:
186:            /**
187:             * add 'Scope'-Inverse
188:             * @param value
189:             */
190:            public void addSiocScope_Inverse(Role value) {
191:                value.add(Role.SCOPE, this );
192:            }
193:
194:            /**
195:             * @return all A's that have a relation 'Moderatorof' to this Forum instance
196:             */
197:            public User[] getAllSiocModeratorof_Inverse() {
198:                return (User[]) getAll_Inverse(User.MODERATOROF, this 
199:                        .getResource(), User.class);
200:            }
201:
202:            /**
203:             * add 'Moderatorof'-Inverse
204:             * @param value
205:             */
206:            public void addSiocModeratorof_Inverse(User value) {
207:                value.add(User.MODERATOROF, this );
208:            }
209:
210:            /**
211:             * Schema Comment: The Site that hosts this Forum.
212:             * @return the only value. null if none is found
213:             * @throws RDFDataException, if the property has multiple values
214:             */
215:            public Site getSiocHost() {
216:                return (Site) get(HOST, Site.class);
217:            }
218:
219:            /**
220:             * removes all values and sets this one
221:             * @param value the value to be set
222:             * Schema Comment: The Site that hosts this Forum.
223:             */
224:            public void setSiocHost(Site value) {
225:                set(HOST, value);
226:            }
227:
228:            /**
229:             * removes a value
230:             * @param value the value to be removed
231:             * Schema Comment: The Site that hosts this Forum.
232:             */
233:            public void removeSiocHost(Site value) {
234:                remove(HOST, value);
235:            }
236:
237:            /**
238:             * @param value
239:             * @return true if the model contains a statement (this, HOST, value)
240:             */
241:            public boolean hasSiocHost(Site value) {
242:                return hasValue(HOST, value);
243:            }
244:
245:            /**
246:             * @return true if the model contains a statement (this, HOST, *)
247:             */
248:            public boolean hasSiocHost() {
249:                return hasValue(HOST);
250:            }
251:
252:            /**
253:             * adds a value
254:             * @param value the value to be added
255:             * Schema Comment: The Site that hosts this Forum.
256:             */
257:            public void addSiocHost(Site value) {
258:                add(HOST, value);
259:            }
260:
261:            /**
262:             * @return all values
263:             * Schema Comment: The Site that hosts this Forum.
264:             */
265:            public Site[] getAllSiocHost() {
266:                return (Site[]) getAll(HOST, Site.class);
267:            }
268:
269:            /**
270:             * Schema Comment: A User who is a moderator of this Forum.
271:             * @return the only value. null if none is found
272:             * @throws RDFDataException, if the property has multiple values
273:             */
274:            public User getSiocModerator() {
275:                return (User) get(MODERATOR, User.class);
276:            }
277:
278:            /**
279:             * removes all values and sets this one
280:             * @param value the value to be set
281:             * Schema Comment: A User who is a moderator of this Forum.
282:             */
283:            public void setSiocModerator(User value) {
284:                set(MODERATOR, value);
285:            }
286:
287:            /**
288:             * removes a value
289:             * @param value the value to be removed
290:             * Schema Comment: A User who is a moderator of this Forum.
291:             */
292:            public void removeSiocModerator(User value) {
293:                remove(MODERATOR, value);
294:            }
295:
296:            /**
297:             * @param value
298:             * @return true if the model contains a statement (this, MODERATOR, value)
299:             */
300:            public boolean hasSiocModerator(User value) {
301:                return hasValue(MODERATOR, value);
302:            }
303:
304:            /**
305:             * @return true if the model contains a statement (this, MODERATOR, *)
306:             */
307:            public boolean hasSiocModerator() {
308:                return hasValue(MODERATOR);
309:            }
310:
311:            /**
312:             * adds a value
313:             * @param value the value to be added
314:             * Schema Comment: A User who is a moderator of this Forum.
315:             */
316:            public void addSiocModerator(User value) {
317:                add(MODERATOR, value);
318:            }
319:
320:            /**
321:             * @return all values
322:             * Schema Comment: A User who is a moderator of this Forum.
323:             */
324:            public User[] getAllSiocModerator() {
325:                return (User[]) getAll(MODERATOR, User.class);
326:            }
327:
328:            /**
329:             * Schema Comment: A Role that has a scope of this Forum.
330:             * @return the only value. null if none is found
331:             * @throws RDFDataException, if the property has multiple values
332:             */
333:            public Role getSiocScopeof() {
334:                return (Role) get(SCOPEOF, Role.class);
335:            }
336:
337:            /**
338:             * removes all values and sets this one
339:             * @param value the value to be set
340:             * Schema Comment: A Role that has a scope of this Forum.
341:             */
342:            public void setSiocScopeof(Role value) {
343:                set(SCOPEOF, value);
344:            }
345:
346:            /**
347:             * removes a value
348:             * @param value the value to be removed
349:             * Schema Comment: A Role that has a scope of this Forum.
350:             */
351:            public void removeSiocScopeof(Role value) {
352:                remove(SCOPEOF, value);
353:            }
354:
355:            /**
356:             * @param value
357:             * @return true if the model contains a statement (this, SCOPEOF, value)
358:             */
359:            public boolean hasSiocScopeof(Role value) {
360:                return hasValue(SCOPEOF, value);
361:            }
362:
363:            /**
364:             * @return true if the model contains a statement (this, SCOPEOF, *)
365:             */
366:            public boolean hasSiocScopeof() {
367:                return hasValue(SCOPEOF);
368:            }
369:
370:            /**
371:             * adds a value
372:             * @param value the value to be added
373:             * Schema Comment: A Role that has a scope of this Forum.
374:             */
375:            public void addSiocScopeof(Role value) {
376:                add(SCOPEOF, value);
377:            }
378:
379:            /**
380:             * @return all values
381:             * Schema Comment: A Role that has a scope of this Forum.
382:             */
383:            public Role[] getAllSiocScopeof() {
384:                return (Role[]) getAll(SCOPEOF, Role.class);
385:            }
386:
387:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.