Source Code Cross Referenced for ObjectProperty.java in  » Search-Engine » semweb4j » org » ontoware » rdfreactor » schema » owl » 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.rdfreactor.schema.owl 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /**
002:         * generated by http://RDFReactor.semweb4j.org ($Id: CodeGenerator.java 870 2007-11-07 17:30:59Z max.at.xam.de $) on 26.01.08 12:47
003:         */package org.ontoware.rdfreactor.schema.owl;
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> InverseOf </li>
018:         * </ul>
019:         *
020:         * This class was generated by <a href="http://RDFReactor.semweb4j.org">RDFReactor</a> on 26.01.08 12:47
021:         */
022:        public class ObjectProperty extends OwlProperty {
023:
024:            /** http://www.w3.org/2002/07/owl#ObjectProperty */
025:            public static final URI RDFS_CLASS = new URIImpl(
026:                    "http://www.w3.org/2002/07/owl#ObjectProperty", false);
027:
028:            /** http://www.w3.org/2002/07/owl#inverseOf */
029:            public static final URI INVERSEOF = new URIImpl(
030:                    "http://www.w3.org/2002/07/owl#inverseOf", false);
031:
032:            /** all property-URIs with this class as domain */
033:            public static final URI[] MANAGED_URIS = { new URIImpl(
034:                    "http://www.w3.org/2002/07/owl#inverseOf", 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 ObjectProperty(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 ObjectProperty(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 ObjectProperty(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 ObjectProperty(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 ObjectProperty(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/2002/07/owl#ObjectProperty).
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 ObjectProperty> getAllInstance_as(
160:                    Model model) {
161:                return Base.getAllInstances_as(model, RDFS_CLASS,
162:                        ObjectProperty.class);
163:            }
164:
165:            /**
166:             * Delete all rdf:type from this instance. Other triples are not affected.
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:            // property access methods
179:
180:            /**
181:             * @param model an RDF2Go model
182:             * @param objectValue
183:             * @return all A's as RDF resources, that have a relation 'InverseOf' to this ObjectProperty instance
184:             *
185:             * [Generated from RDFReactor template rule #getallinverse1static] 
186:             */
187:            public static ClosableIterator<org.ontoware.rdf2go.model.node.Resource> getAllInverseOf_Inverse(
188:                    Model model, Object objectValue) {
189:                return Base.getAll_Inverse(model, ObjectProperty.INVERSEOF,
190:                        objectValue);
191:            }
192:
193:            /**
194:             * Get all values of property InverseOf as an Iterator over RDF2Go nodes 
195:             * @param model an RDF2Go model
196:             * @param resource an RDF2Go resource
197:             * @return a ClosableIterator of RDF2Go Nodes
198:             *
199:             * [Generated from RDFReactor template rule #get7static] 
200:             */
201:            public static ClosableIterator<org.ontoware.rdf2go.model.node.Node> getAllInverseOf_asNode(
202:                    Model model,
203:                    org.ontoware.rdf2go.model.node.Resource instanceResource) {
204:                return (ClosableIterator<org.ontoware.rdf2go.model.node.Node>) Base
205:                        .getAll_asNode(model, instanceResource, INVERSEOF);
206:            }
207:
208:            /**
209:             * Get all values of property InverseOf as a ReactorResult of RDF2Go nodes 
210:             * @param model an RDF2Go model
211:             * @param resource an RDF2Go resource
212:             * @return a List of RDF2Go Nodes
213:             *
214:             * [Generated from RDFReactor template rule #get7static-reactor-result] 
215:             */
216:            public static ReactorResult<org.ontoware.rdf2go.model.node.Node> getAllInverseOf_asNode_(
217:                    Model model,
218:                    org.ontoware.rdf2go.model.node.Resource instanceResource) {
219:                return (ReactorResult<org.ontoware.rdf2go.model.node.Node>) Base
220:                        .getAll_as(model, instanceResource, INVERSEOF,
221:                                org.ontoware.rdf2go.model.node.Node.class);
222:            }
223:
224:            /**
225:             * Get all values of property InverseOf as an Iterator over RDF2Go nodes 
226:             * @return a ClosableIterator of RDF2Go Nodes
227:             *
228:             * [Generated from RDFReactor template rule #get8dynamic] 
229:             */
230:            public ClosableIterator<org.ontoware.rdf2go.model.node.Node> getAllInverseOf_asNode() {
231:                return (ClosableIterator<org.ontoware.rdf2go.model.node.Node>) Base
232:                        .getAll_asNode(this .model, this .getResource(),
233:                                INVERSEOF);
234:            }
235:
236:            /**
237:             * Get all values of property InverseOf as a ReactorResult of RDF2Go nodes 
238:             * @return a List of RDF2Go Nodes
239:             *
240:             * [Generated from RDFReactor template rule #get8dynamic-reactor-result] 
241:             */
242:            public ReactorResult<org.ontoware.rdf2go.model.node.Node> getAllInverseOf_asNode_() {
243:                return (ReactorResult<org.ontoware.rdf2go.model.node.Node>) Base
244:                        .getAll_as(this .model, this .getResource(), INVERSEOF,
245:                                org.ontoware.rdf2go.model.node.Node.class);
246:            }
247:
248:            /**
249:             * Get all values of property InverseOf     * @param model an RDF2Go model
250:             * @param resource an RDF2Go resource
251:             * @return a ClosableIterator of $type
252:             *
253:             * [Generated from RDFReactor template rule #get11static] 
254:             */
255:            public static ClosableIterator<ObjectProperty> getAllInverseOf(
256:                    Model model,
257:                    org.ontoware.rdf2go.model.node.Resource instanceResource) {
258:                return Base.getAll(model, instanceResource, INVERSEOF,
259:                        ObjectProperty.class);
260:            }
261:
262:            /**
263:             * Get all values of property InverseOf as a ReactorResult of ObjectProperty 
264:             * @param model an RDF2Go model
265:             * @param resource an RDF2Go resource
266:             * @return a ReactorResult of $type which can conveniently be converted to iterator, list or array
267:             *
268:             * [Generated from RDFReactor template rule #get11static-reactorresult] 
269:             */
270:            public static ReactorResult<ObjectProperty> getAllInverseOf_as(
271:                    Model model,
272:                    org.ontoware.rdf2go.model.node.Resource instanceResource) {
273:                return Base.getAll_as(model, instanceResource, INVERSEOF,
274:                        ObjectProperty.class);
275:            }
276:
277:            /**
278:             * Get all values of property InverseOf     * @return a ClosableIterator of $type
279:             *
280:             * [Generated from RDFReactor template rule #get12dynamic] 
281:             */
282:            public ClosableIterator<ObjectProperty> getAllInverseOf() {
283:                return Base.getAll(this .model, this .getResource(), INVERSEOF,
284:                        ObjectProperty.class);
285:            }
286:
287:            /**
288:             * Get all values of property InverseOf as a ReactorResult of ObjectProperty 
289:             * @return a ReactorResult of $type which can conveniently be converted to iterator, list or array
290:             *
291:             * [Generated from RDFReactor template rule #get12dynamic-reactorresult] 
292:             */
293:            public ReactorResult<ObjectProperty> getAllInverseOf_as() {
294:                return Base.getAll_as(this .model, this .getResource(),
295:                        INVERSEOF, ObjectProperty.class);
296:            }
297:
298:            /**
299:             * Adds a value to property InverseOf as an RDF2Go node 
300:             * @param model an RDF2Go model
301:             * @param resource an RDF2Go resource
302:             * @param value the value to be added
303:             *
304:             * [Generated from RDFReactor template rule #add1static] 
305:             */
306:            public static void addInverseOf(Model model,
307:                    org.ontoware.rdf2go.model.node.Resource instanceResource,
308:                    org.ontoware.rdf2go.model.node.Node value) {
309:                Base.add(model, instanceResource, INVERSEOF, value);
310:            }
311:
312:            /**
313:             * Adds a value to property InverseOf as an RDF2Go node 
314:             * @param value the value to be added
315:             *
316:             * [Generated from RDFReactor template rule #add1dynamic] 
317:             */
318:            public void addInverseOf(org.ontoware.rdf2go.model.node.Node value) {
319:                Base.add(this .model, this .getResource(), INVERSEOF, value);
320:            }
321:
322:            /**
323:             * Adds a value to property InverseOf from an instance of ObjectProperty 
324:             * @param model an RDF2Go model
325:             * @param resource an RDF2Go resource
326:             *
327:             * [Generated from RDFReactor template rule #add3static] 
328:             */
329:            public static void addInverseOf(Model model,
330:                    org.ontoware.rdf2go.model.node.Resource instanceResource,
331:                    ObjectProperty value) {
332:                Base.add(model, instanceResource, INVERSEOF, value);
333:            }
334:
335:            /**
336:             * Adds a value to property InverseOf from an instance of ObjectProperty 
337:             *
338:             * [Generated from RDFReactor template rule #add4dynamic] 
339:             */
340:            public void addInverseOf(ObjectProperty value) {
341:                Base.add(this .model, this .getResource(), INVERSEOF, value);
342:            }
343:
344:            /**
345:             * Sets a value of property InverseOf from an RDF2Go node.
346:             * First, all existing values are removed, then this value is added.
347:             * Cardinality constraints are not checked, but this method exists only for properties with
348:             * no minCardinality or minCardinality == 1.
349:             * @param model an RDF2Go model
350:             * @param resource an RDF2Go resource
351:             * @param value the value to be set
352:             *
353:             * [Generated from RDFReactor template rule #set1static] 
354:             */
355:            public static void setInverseOf(Model model,
356:                    org.ontoware.rdf2go.model.node.Resource instanceResource,
357:                    org.ontoware.rdf2go.model.node.Node value) {
358:                Base.set(model, instanceResource, INVERSEOF, value);
359:            }
360:
361:            /**
362:             * Sets a value of property InverseOf from an RDF2Go node.
363:             * First, all existing values are removed, then this value is added.
364:             * Cardinality constraints are not checked, but this method exists only for properties with
365:             * no minCardinality or minCardinality == 1.
366:             * @param value the value to be added
367:             *
368:             * [Generated from RDFReactor template rule #set1dynamic] 
369:             */
370:            public void setInverseOf(org.ontoware.rdf2go.model.node.Node value) {
371:                Base.set(this .model, this .getResource(), INVERSEOF, value);
372:            }
373:
374:            /**
375:             * Sets a value of property InverseOf from an instance of ObjectProperty 
376:             * First, all existing values are removed, then this value is added.
377:             * Cardinality constraints are not checked, but this method exists only for properties with
378:             * no minCardinality or minCardinality == 1.
379:             * @param model an RDF2Go model
380:             * @param resource an RDF2Go resource
381:             * @param value the value to be added
382:             *
383:             * [Generated from RDFReactor template rule #set3static] 
384:             */
385:            public static void setInverseOf(Model model,
386:                    org.ontoware.rdf2go.model.node.Resource instanceResource,
387:                    ObjectProperty value) {
388:                Base.set(model, instanceResource, INVERSEOF, value);
389:            }
390:
391:            /**
392:             * Sets a value of property InverseOf from an instance of ObjectProperty 
393:             * First, all existing values are removed, then this value is added.
394:             * Cardinality constraints are not checked, but this method exists only for properties with
395:             * no minCardinality or minCardinality == 1.
396:             * @param value the value to be added
397:             *
398:             * [Generated from RDFReactor template rule #set4dynamic] 
399:             */
400:            public void setInverseOf(ObjectProperty value) {
401:                Base.set(this .model, this .getResource(), INVERSEOF, value);
402:            }
403:
404:            /**
405:             * Removes a value of property InverseOf as an RDF2Go node 
406:             * @param model an RDF2Go model
407:             * @param resource an RDF2Go resource
408:             * @param value the value to be removed
409:             *
410:             * [Generated from RDFReactor template rule #remove1static] 
411:             */
412:            public static void removeInverseOf(Model model,
413:                    org.ontoware.rdf2go.model.node.Resource instanceResource,
414:                    org.ontoware.rdf2go.model.node.Node value) {
415:                Base.remove(model, instanceResource, INVERSEOF, value);
416:            }
417:
418:            /**
419:             * Removes a value of property InverseOf as an RDF2Go node
420:             * @param value the value to be removed
421:             *
422:             * [Generated from RDFReactor template rule #remove1dynamic] 
423:             */
424:            public void removeInverseOf(
425:                    org.ontoware.rdf2go.model.node.Node value) {
426:                Base.remove(this .model, this .getResource(), INVERSEOF, value);
427:            }
428:
429:            /**
430:             * Removes a value of property InverseOf given as an instance of ObjectProperty 
431:             * @param model an RDF2Go model
432:             * @param resource an RDF2Go resource
433:             * @param value the value to be removed
434:             *
435:             * [Generated from RDFReactor template rule #remove3static] 
436:             */
437:            public static void removeInverseOf(Model model,
438:                    org.ontoware.rdf2go.model.node.Resource instanceResource,
439:                    ObjectProperty value) {
440:                Base.remove(model, instanceResource, INVERSEOF, value);
441:            }
442:
443:            /**
444:             * Removes a value of property InverseOf given as an instance of ObjectProperty 
445:             * @param value the value to be removed
446:             *
447:             * [Generated from RDFReactor template rule #remove4dynamic] 
448:             */
449:            public void removeInverseOf(ObjectProperty value) {
450:                Base.remove(this .model, this .getResource(), INVERSEOF, value);
451:            }
452:
453:            /**
454:             * Removes all values of property InverseOf     * @param model an RDF2Go model
455:             * @param resource an RDF2Go resource
456:             *
457:             * [Generated from RDFReactor template rule #removeall1static] 
458:             */
459:            public static void removeAllInverseOf(Model model,
460:                    org.ontoware.rdf2go.model.node.Resource instanceResource) {
461:                Base.removeAll(model, instanceResource, INVERSEOF);
462:            }
463:
464:            /**
465:             * Removes all values of property InverseOf	 *
466:             * [Generated from RDFReactor template rule #removeall1dynamic] 
467:             */
468:            public void addInverseOf() {
469:                Base.removeAll(this.model, this.getResource(), INVERSEOF);
470:            }
471:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.