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