Source Code Cross Referenced for Thing.java in  » Search-Engine » semweb4j » org » ontoware » semversion » impl » generated » 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.ontoware.semversion.impl.generated 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /**
002:         * generated by http://RDFReactor.semweb4j.org ($Id: CodeGenerator.java 1046 2008-01-26 14:38:26Z max.at.xam.de $) on 16.03.08 18:20
003:         */package org.ontoware.semversion.impl.generated;
004:
005:        import org.ontoware.aifbcommons.collection.ClosableIterator;
006:        import org.ontoware.rdf2go.exception.ModelRuntimeException;
007:        import org.ontoware.rdf2go.model.Model;
008:        import org.ontoware.rdf2go.model.node.BlankNode;
009:        import org.ontoware.rdf2go.model.node.URI;
010:        import org.ontoware.rdf2go.model.node.impl.URIImpl;
011:        import org.ontoware.rdfreactor.runtime.Base;
012:        import org.ontoware.rdfreactor.runtime.ReactorResult;
013:
014:        /**
015:         * This class manages access to these properties:
016:         * <ul>
017:         *   <li> VersionedModel </li>
018:         * </ul>
019:         *
020:         * This class was generated by <a href="http://RDFReactor.semweb4j.org">RDFReactor</a> on 16.03.08 18:20
021:         */
022:        public class Thing extends org.ontoware.rdfreactor.schema.rdfs.Class {
023:
024:            /** http://www.w3.org/2000/01/rdf-schema#Class */
025:            public static final URI RDFS_CLASS = new URIImpl(
026:                    "http://www.w3.org/2000/01/rdf-schema#Class", false);
027:
028:            /** http://purl.org/net/semversion#hasVersionedModel */
029:            public static final URI VERSIONEDMODEL = new URIImpl(
030:                    "http://purl.org/net/semversion#hasVersionedModel", false);
031:
032:            /** all property-URIs with this class as domain */
033:            public static final URI[] MANAGED_URIS = { new URIImpl(
034:                    "http://purl.org/net/semversion#hasVersionedModel", false) };
035:
036:            // protected constructors needed for inheritance
037:
038:            /**
039:             * Returns a Java wrapper over an RDF object, identified by URI.
040:             * Creating two wrappers for the same instanceURI is legal.
041:             * @param model RDF2GO Model implementation, see http://rdf2go.semweb4j.org
042:             * @param classURI URI of RDFS class
043:             * @param instanceIdentifier Resource that identifies this instance
044:             * @param write if true, the statement (this, rdf:type, TYPE) is written to the model
045:             *
046:             * [Generated from RDFReactor template rule #c1] 
047:             */
048:            protected Thing(Model model, URI classURI,
049:                    org.ontoware.rdf2go.model.node.Resource instanceIdentifier,
050:                    boolean write) {
051:                super (model, classURI, instanceIdentifier, write);
052:            }
053:
054:            // public constructors
055:
056:            /**
057:             * Returns a Java wrapper over an RDF object, identified by URI.
058:             * Creating two wrappers for the same instanceURI is legal.
059:             * @param model RDF2GO Model implementation, see http://rdf2go.ontoware.org
060:             * @param instanceIdentifier an RDF2Go Resource identifying this instance
061:             * @param write if true, the statement (this, rdf:type, TYPE) is written to the model
062:             *
063:             * [Generated from RDFReactor template rule #c2] 
064:             */
065:            public Thing(Model model,
066:                    org.ontoware.rdf2go.model.node.Resource instanceIdentifier,
067:                    boolean write) {
068:                super (model, RDFS_CLASS, instanceIdentifier, write);
069:            }
070:
071:            /**
072:             * Returns a Java wrapper over an RDF object, identified by a URI, given as a String.
073:             * Creating two wrappers for the same URI is legal.
074:             * @param model RDF2GO Model implementation, see http://rdf2go.ontoware.org
075:             * @param uriString a URI given as a String
076:             * @param write if true, the statement (this, rdf:type, TYPE) is written to the model
077:             * @throws ModelRuntimeException if URI syntax is wrong
078:             *
079:             * [Generated from RDFReactor template rule #c7] 
080:             */
081:            public Thing(Model model, String uriString, boolean write)
082:                    throws ModelRuntimeException {
083:                super (model, RDFS_CLASS, new URIImpl(uriString, false), write);
084:            }
085:
086:            /**
087:             * Returns a Java wrapper over an RDF object, identified by a blank node.
088:             * Creating two wrappers for the same blank node is legal.
089:             * @param model RDF2GO Model implementation, see http://rdf2go.ontoware.org
090:             * @param bnode BlankNode of this instance
091:             * @param write if true, the statement (this, rdf:type, TYPE) is written to the model
092:             *
093:             * [Generated from RDFReactor template rule #c8] 
094:             */
095:            public Thing(Model model, BlankNode bnode, boolean write) {
096:                super (model, RDFS_CLASS, bnode, write);
097:            }
098:
099:            /**
100:             * Returns a Java wrapper over an RDF object, identified by 
101:             * a randomly generated URI.
102:             * Creating two wrappers results in different URIs.
103:             * @param model RDF2GO Model implementation, see http://rdf2go.ontoware.org
104:             * @param write if true, the statement (this, rdf:type, TYPE) is written to the model
105:             *
106:             * [Generated from RDFReactor template rule #c9] 
107:             */
108:            public Thing(Model model, boolean write) {
109:                super (model, RDFS_CLASS, model.newRandomUniqueURI(), write);
110:            }
111:
112:            ///////////////////////////////////////////////////////////////////
113:            // typing
114:
115:            /**
116:             * Create a new instance of this class in the model. 
117:             * That is, create the statement (instanceResource, RDF.type, http://www.w3.org/2000/01/rdf-schema#Class).
118:             * @param model an RDF2Go model
119:             * @param instanceResource an RDF2Go resource
120:             *
121:             * [Generated from RDFReactor template rule #class1] 
122:             */
123:            public static void createInstance(Model model,
124:                    org.ontoware.rdf2go.model.node.Resource instanceResource) {
125:                Base.createInstance(model, RDFS_CLASS, instanceResource);
126:            }
127:
128:            /**
129:             * @param model an RDF2Go model
130:             * @param instanceResource an RDF2Go resource
131:             * @return true if instanceResource is an instance of this class in the model
132:             *
133:             * [Generated from RDFReactor template rule #class2] 
134:             */
135:            public static boolean hasInstance(Model model,
136:                    org.ontoware.rdf2go.model.node.Resource instanceResource) {
137:                return Base.hasInstance(model, RDFS_CLASS, instanceResource);
138:            }
139:
140:            /**
141:             * @param model an RDF2Go model
142:             * @return all instances of this class in Model 'model' as RDF resources
143:             *
144:             * [Generated from RDFReactor template rule #class3] 
145:             */
146:            public static ClosableIterator<org.ontoware.rdf2go.model.node.Resource> getAllInstances(
147:                    Model model) {
148:                return Base.getAllInstances(model, RDFS_CLASS,
149:                        org.ontoware.rdf2go.model.node.Resource.class);
150:            }
151:
152:            /**
153:             * @param model an RDF2Go model
154:             * @return all instances of this class in Model 'model' as a ReactorResult,
155:             * which can conveniently be converted to iterator, list or array.
156:             *
157:             * [Generated from RDFReactor template rule #class3-as] 
158:             */
159:            public static ReactorResult<? extends Thing> getAllInstance_as(
160:                    Model model) {
161:                return Base.getAllInstances_as(model, RDFS_CLASS, Thing.class);
162:            }
163:
164:            /**
165:             * Delete all rdf:type from this instance. Other triples are not affected.
166:             * To delete more, use deleteAllProperties
167:             * @param model an RDF2Go model
168:             * @param instanceResource an RDF2Go resource
169:             *
170:             * [Generated from RDFReactor template rule #class4] 
171:             */
172:            public static void deleteInstance(Model model,
173:                    org.ontoware.rdf2go.model.node.Resource instanceResource) {
174:                Base.deleteInstance(model, RDFS_CLASS, instanceResource);
175:            }
176:
177:            /**
178:             * Delete all (this, *, *), i.e. including rdf:type
179:             * @param model an RDF2Go model
180:             * @param resource
181:             */
182:            public static void deleteAllProperties(Model model,
183:                    org.ontoware.rdf2go.model.node.Resource instanceResource) {
184:                Base.deleteAllProperties(model, instanceResource);
185:            }
186:
187:            ///////////////////////////////////////////////////////////////////
188:            // property access methods
189:
190:            /**
191:             * Check if org.ontoware.rdfreactor.generator.java.JProperty@c4d04d has at least one value set 
192:             * @param model an RDF2Go model
193:             * @param resource an RDF2Go resource
194:             * @return true if this property has at least one value
195:             *
196:             * [Generated from RDFReactor template rule #get0has-static] 
197:             */
198:            public static boolean hasVersionedModel(Model model,
199:                    org.ontoware.rdf2go.model.node.Resource instanceResource) {
200:                return Base.has(model, instanceResource, VERSIONEDMODEL);
201:            }
202:
203:            /**
204:             * Check if org.ontoware.rdfreactor.generator.java.JProperty@c4d04d has at least one value set 
205:             * @return true if this property has at least one value
206:             *
207:             * [Generated from RDFReactor template rule #get0has-dynamic] 
208:             */
209:            public boolean hasVersionedModel() {
210:                return Base.has(this .model, this .getResource(), VERSIONEDMODEL);
211:            }
212:
213:            /**
214:             * Get all values of property VersionedModel as an Iterator over RDF2Go nodes 
215:             * @param model an RDF2Go model
216:             * @param resource an RDF2Go resource
217:             * @return a ClosableIterator of RDF2Go Nodes
218:             *
219:             * [Generated from RDFReactor template rule #get7static] 
220:             */
221:            public static ClosableIterator<org.ontoware.rdf2go.model.node.Node> getAllVersionedModel_asNode(
222:                    Model model,
223:                    org.ontoware.rdf2go.model.node.Resource instanceResource) {
224:                return (ClosableIterator<org.ontoware.rdf2go.model.node.Node>) Base
225:                        .getAll_asNode(model, instanceResource, VERSIONEDMODEL);
226:            }
227:
228:            /**
229:             * Get all values of property VersionedModel as a ReactorResult of RDF2Go nodes 
230:             * @param model an RDF2Go model
231:             * @param resource an RDF2Go resource
232:             * @return a List of RDF2Go Nodes
233:             *
234:             * [Generated from RDFReactor template rule #get7static-reactor-result] 
235:             */
236:            public static ReactorResult<org.ontoware.rdf2go.model.node.Node> getAllVersionedModel_asNode_(
237:                    Model model,
238:                    org.ontoware.rdf2go.model.node.Resource instanceResource) {
239:                return (ReactorResult<org.ontoware.rdf2go.model.node.Node>) Base
240:                        .getAll_as(model, instanceResource, VERSIONEDMODEL,
241:                                org.ontoware.rdf2go.model.node.Node.class);
242:            }
243:
244:            /**
245:             * Get all values of property VersionedModel as an Iterator over RDF2Go nodes 
246:             * @return a ClosableIterator of RDF2Go Nodes
247:             *
248:             * [Generated from RDFReactor template rule #get8dynamic] 
249:             */
250:            public ClosableIterator<org.ontoware.rdf2go.model.node.Node> getAllVersionedModel_asNode() {
251:                return (ClosableIterator<org.ontoware.rdf2go.model.node.Node>) Base
252:                        .getAll_asNode(this .model, this .getResource(),
253:                                VERSIONEDMODEL);
254:            }
255:
256:            /**
257:             * Get all values of property VersionedModel as a ReactorResult of RDF2Go nodes 
258:             * @return a List of RDF2Go Nodes
259:             *
260:             * [Generated from RDFReactor template rule #get8dynamic-reactor-result] 
261:             */
262:            public ReactorResult<org.ontoware.rdf2go.model.node.Node> getAllVersionedModel_asNode_() {
263:                return (ReactorResult<org.ontoware.rdf2go.model.node.Node>) Base
264:                        .getAll_as(this .model, this .getResource(),
265:                                VERSIONEDMODEL,
266:                                org.ontoware.rdf2go.model.node.Node.class);
267:            }
268:
269:            /**
270:             * Get all values of property VersionedModel     * @param model an RDF2Go model
271:             * @param resource an RDF2Go resource
272:             * @return a ClosableIterator of $type
273:             *
274:             * [Generated from RDFReactor template rule #get11static] 
275:             */
276:            public static ClosableIterator<VersionedModel> getAllVersionedModel(
277:                    Model model,
278:                    org.ontoware.rdf2go.model.node.Resource instanceResource) {
279:                return Base.getAll(model, instanceResource, VERSIONEDMODEL,
280:                        VersionedModel.class);
281:            }
282:
283:            /**
284:             * Get all values of property VersionedModel as a ReactorResult of VersionedModel 
285:             * @param model an RDF2Go model
286:             * @param resource an RDF2Go resource
287:             * @return a ReactorResult of $type which can conveniently be converted to iterator, list or array
288:             *
289:             * [Generated from RDFReactor template rule #get11static-reactorresult] 
290:             */
291:            public static ReactorResult<VersionedModel> getAllVersionedModel_as(
292:                    Model model,
293:                    org.ontoware.rdf2go.model.node.Resource instanceResource) {
294:                return Base.getAll_as(model, instanceResource, VERSIONEDMODEL,
295:                        VersionedModel.class);
296:            }
297:
298:            /**
299:             * Get all values of property VersionedModel     * @return a ClosableIterator of $type
300:             *
301:             * [Generated from RDFReactor template rule #get12dynamic] 
302:             */
303:            public ClosableIterator<VersionedModel> getAllVersionedModel() {
304:                return Base.getAll(this .model, this .getResource(),
305:                        VERSIONEDMODEL, VersionedModel.class);
306:            }
307:
308:            /**
309:             * Get all values of property VersionedModel as a ReactorResult of VersionedModel 
310:             * @return a ReactorResult of $type which can conveniently be converted to iterator, list or array
311:             *
312:             * [Generated from RDFReactor template rule #get12dynamic-reactorresult] 
313:             */
314:            public ReactorResult<VersionedModel> getAllVersionedModel_as() {
315:                return Base.getAll_as(this .model, this .getResource(),
316:                        VERSIONEDMODEL, VersionedModel.class);
317:            }
318:
319:            /**
320:             * Adds a value to property VersionedModel as an RDF2Go node 
321:             * @param model an RDF2Go model
322:             * @param resource an RDF2Go resource
323:             * @param value the value to be added
324:             *
325:             * [Generated from RDFReactor template rule #add1static] 
326:             */
327:            public static void addVersionedModel(Model model,
328:                    org.ontoware.rdf2go.model.node.Resource instanceResource,
329:                    org.ontoware.rdf2go.model.node.Node value) {
330:                Base.add(model, instanceResource, VERSIONEDMODEL, value);
331:            }
332:
333:            /**
334:             * Adds a value to property VersionedModel as an RDF2Go node 
335:             * @param value the value to be added
336:             *
337:             * [Generated from RDFReactor template rule #add1dynamic] 
338:             */
339:            public void addVersionedModel(
340:                    org.ontoware.rdf2go.model.node.Node value) {
341:                Base.add(this .model, this .getResource(), VERSIONEDMODEL, value);
342:            }
343:
344:            /**
345:             * Adds a value to property VersionedModel from an instance of VersionedModel 
346:             * @param model an RDF2Go model
347:             * @param resource an RDF2Go resource
348:             *
349:             * [Generated from RDFReactor template rule #add3static] 
350:             */
351:            public static void addVersionedModel(Model model,
352:                    org.ontoware.rdf2go.model.node.Resource instanceResource,
353:                    VersionedModel value) {
354:                Base.add(model, instanceResource, VERSIONEDMODEL, value);
355:            }
356:
357:            /**
358:             * Adds a value to property VersionedModel from an instance of VersionedModel 
359:             *
360:             * [Generated from RDFReactor template rule #add4dynamic] 
361:             */
362:            public void addVersionedModel(VersionedModel value) {
363:                Base.add(this .model, this .getResource(), VERSIONEDMODEL, value);
364:            }
365:
366:            /**
367:             * Sets a value of property VersionedModel from an RDF2Go node.
368:             * First, all existing values are removed, then this value is added.
369:             * Cardinality constraints are not checked, but this method exists only for properties with
370:             * no minCardinality or minCardinality == 1.
371:             * @param model an RDF2Go model
372:             * @param resource an RDF2Go resource
373:             * @param value the value to be set
374:             *
375:             * [Generated from RDFReactor template rule #set1static] 
376:             */
377:            public static void setVersionedModel(Model model,
378:                    org.ontoware.rdf2go.model.node.Resource instanceResource,
379:                    org.ontoware.rdf2go.model.node.Node value) {
380:                Base.set(model, instanceResource, VERSIONEDMODEL, value);
381:            }
382:
383:            /**
384:             * Sets a value of property VersionedModel from an RDF2Go node.
385:             * First, all existing values are removed, then this value is added.
386:             * Cardinality constraints are not checked, but this method exists only for properties with
387:             * no minCardinality or minCardinality == 1.
388:             * @param value the value to be added
389:             *
390:             * [Generated from RDFReactor template rule #set1dynamic] 
391:             */
392:            public void setVersionedModel(
393:                    org.ontoware.rdf2go.model.node.Node value) {
394:                Base.set(this .model, this .getResource(), VERSIONEDMODEL, value);
395:            }
396:
397:            /**
398:             * Sets a value of property VersionedModel from an instance of VersionedModel 
399:             * First, all existing values are removed, then this value is added.
400:             * Cardinality constraints are not checked, but this method exists only for properties with
401:             * no minCardinality or minCardinality == 1.
402:             * @param model an RDF2Go model
403:             * @param resource an RDF2Go resource
404:             * @param value the value to be added
405:             *
406:             * [Generated from RDFReactor template rule #set3static] 
407:             */
408:            public static void setVersionedModel(Model model,
409:                    org.ontoware.rdf2go.model.node.Resource instanceResource,
410:                    VersionedModel value) {
411:                Base.set(model, instanceResource, VERSIONEDMODEL, value);
412:            }
413:
414:            /**
415:             * Sets a value of property VersionedModel from an instance of VersionedModel 
416:             * First, all existing values are removed, then this value is added.
417:             * Cardinality constraints are not checked, but this method exists only for properties with
418:             * no minCardinality or minCardinality == 1.
419:             * @param value the value to be added
420:             *
421:             * [Generated from RDFReactor template rule #set4dynamic] 
422:             */
423:            public void setVersionedModel(VersionedModel value) {
424:                Base.set(this .model, this .getResource(), VERSIONEDMODEL, value);
425:            }
426:
427:            /**
428:             * Removes a value of property VersionedModel as an RDF2Go node 
429:             * @param model an RDF2Go model
430:             * @param resource an RDF2Go resource
431:             * @param value the value to be removed
432:             *
433:             * [Generated from RDFReactor template rule #remove1static] 
434:             */
435:            public static void removeVersionedModel(Model model,
436:                    org.ontoware.rdf2go.model.node.Resource instanceResource,
437:                    org.ontoware.rdf2go.model.node.Node value) {
438:                Base.remove(model, instanceResource, VERSIONEDMODEL, value);
439:            }
440:
441:            /**
442:             * Removes a value of property VersionedModel as an RDF2Go node
443:             * @param value the value to be removed
444:             *
445:             * [Generated from RDFReactor template rule #remove1dynamic] 
446:             */
447:            public void removeVersionedModel(
448:                    org.ontoware.rdf2go.model.node.Node value) {
449:                Base.remove(this .model, this .getResource(), VERSIONEDMODEL,
450:                        value);
451:            }
452:
453:            /**
454:             * Removes a value of property VersionedModel given as an instance of VersionedModel 
455:             * @param model an RDF2Go model
456:             * @param resource an RDF2Go resource
457:             * @param value the value to be removed
458:             *
459:             * [Generated from RDFReactor template rule #remove3static] 
460:             */
461:            public static void removeVersionedModel(Model model,
462:                    org.ontoware.rdf2go.model.node.Resource instanceResource,
463:                    VersionedModel value) {
464:                Base.remove(model, instanceResource, VERSIONEDMODEL, value);
465:            }
466:
467:            /**
468:             * Removes a value of property VersionedModel given as an instance of VersionedModel 
469:             * @param value the value to be removed
470:             *
471:             * [Generated from RDFReactor template rule #remove4dynamic] 
472:             */
473:            public void removeVersionedModel(VersionedModel value) {
474:                Base.remove(this .model, this .getResource(), VERSIONEDMODEL,
475:                        value);
476:            }
477:
478:            /**
479:             * Removes all values of property VersionedModel     * @param model an RDF2Go model
480:             * @param resource an RDF2Go resource
481:             *
482:             * [Generated from RDFReactor template rule #removeall1static] 
483:             */
484:            public static void removeAllVersionedModel(Model model,
485:                    org.ontoware.rdf2go.model.node.Resource instanceResource) {
486:                Base.removeAll(model, instanceResource, VERSIONEDMODEL);
487:            }
488:
489:            /**
490:             * Removes all values of property VersionedModel	 *
491:             * [Generated from RDFReactor template rule #removeall1dynamic] 
492:             */
493:            public void addVersionedModel() {
494:                Base.removeAll(this.model, this.getResource(), VERSIONEDMODEL);
495:            }
496:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.