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


0001:        /**
0002:         * generated by http://RDFReactor.semweb4j.org ($Id: CodeGenerator.java 870 2007-11-07 17:30:59Z max.at.xam.de $) on 25.01.08 23:14
0003:         */package org.ontoware.rdfreactor.schema.bootstrap;
0004:
0005:        import java.util.List;
0006:
0007:        import org.ontoware.aifbcommons.collection.ClosableIterator;
0008:        import org.ontoware.rdf2go.exception.ModelRuntimeException;
0009:        import org.ontoware.rdf2go.model.Model;
0010:        import org.ontoware.rdf2go.model.node.BlankNode;
0011:        import org.ontoware.rdf2go.model.node.URI;
0012:        import org.ontoware.rdf2go.model.node.impl.URIImpl;
0013:        import org.ontoware.rdfreactor.runtime.Base;
0014:        import org.ontoware.rdfreactor.runtime.ReactorResult;
0015:
0016:        /**
0017:         * This class manages access to these properties:
0018:         * <ul>
0019:         *   <li> Domain </li>
0020:         *   <li> Range </li>
0021:         *   <li> SubPropertyOf </li>
0022:         * </ul>
0023:         *
0024:         * This class was generated by <a href="http://RDFReactor.semweb4j.org">RDFReactor</a> on 25.01.08 23:14
0025:         */
0026:        public class Property extends Resource {
0027:
0028:            /** http://www.w3.org/1999/02/22-rdf-syntax-ns#Property */
0029:            public static final URI RDFS_CLASS = new URIImpl(
0030:                    "http://www.w3.org/1999/02/22-rdf-syntax-ns#Property",
0031:                    false);
0032:
0033:            /** http://www.w3.org/2000/01/rdf-schema#domain */
0034:            public static final URI DOMAIN = new URIImpl(
0035:                    "http://www.w3.org/2000/01/rdf-schema#domain", false);
0036:
0037:            /** http://www.w3.org/2000/01/rdf-schema#range */
0038:            public static final URI RANGE = new URIImpl(
0039:                    "http://www.w3.org/2000/01/rdf-schema#range", false);
0040:
0041:            /** http://www.w3.org/2000/01/rdf-schema#subPropertyOf */
0042:            public static final URI SUBPROPERTYOF = new URIImpl(
0043:                    "http://www.w3.org/2000/01/rdf-schema#subPropertyOf", false);
0044:
0045:            /** all property-URIs with this class as domain */
0046:            public static final URI[] MANAGED_URIS = {
0047:                    new URIImpl("http://www.w3.org/2000/01/rdf-schema#domain",
0048:                            false),
0049:                    new URIImpl("http://www.w3.org/2000/01/rdf-schema#range",
0050:                            false),
0051:                    new URIImpl(
0052:                            "http://www.w3.org/2000/01/rdf-schema#subPropertyOf",
0053:                            false) };
0054:
0055:            // protected constructors needed for inheritance
0056:
0057:            /**
0058:             * Returns a Java wrapper over an RDF object, identified by URI.
0059:             * Creating two wrappers for the same instanceURI is legal.
0060:             * @param model RDF2GO Model implementation, see http://rdf2go.semweb4j.org
0061:             * @param classURI URI of RDFS class
0062:             * @param instanceIdentifier Resource that identifies this instance
0063:             * @param write if true, the statement (this, rdf:type, TYPE) is written to the model
0064:             *
0065:             * [Generated from RDFReactor template rule #c1] 
0066:             */
0067:            protected Property(Model model, URI classURI,
0068:                    org.ontoware.rdf2go.model.node.Resource instanceIdentifier,
0069:                    boolean write) {
0070:                super (model, classURI, instanceIdentifier, write);
0071:            }
0072:
0073:            // public constructors
0074:
0075:            /**
0076:             * Returns a Java wrapper over an RDF object, identified by URI.
0077:             * Creating two wrappers for the same instanceURI is legal.
0078:             * @param model RDF2GO Model implementation, see http://rdf2go.ontoware.org
0079:             * @param instanceIdentifier an RDF2Go Resource identifying this instance
0080:             * @param write if true, the statement (this, rdf:type, TYPE) is written to the model
0081:             *
0082:             * [Generated from RDFReactor template rule #c2] 
0083:             */
0084:            public Property(Model model,
0085:                    org.ontoware.rdf2go.model.node.Resource instanceIdentifier,
0086:                    boolean write) {
0087:                super (model, RDFS_CLASS, instanceIdentifier, write);
0088:            }
0089:
0090:            /**
0091:             * Returns a Java wrapper over an RDF object, identified by a URI, given as a String.
0092:             * Creating two wrappers for the same URI is legal.
0093:             * @param model RDF2GO Model implementation, see http://rdf2go.ontoware.org
0094:             * @param uriString a URI given as a String
0095:             * @param write if true, the statement (this, rdf:type, TYPE) is written to the model
0096:             * @throws ModelRuntimeException if URI syntax is wrong
0097:             *
0098:             * [Generated from RDFReactor template rule #c7] 
0099:             */
0100:            public Property(Model model, String uriString, boolean write)
0101:                    throws ModelRuntimeException {
0102:                super (model, RDFS_CLASS, new URIImpl(uriString, false), write);
0103:            }
0104:
0105:            /**
0106:             * Returns a Java wrapper over an RDF object, identified by a blank node.
0107:             * Creating two wrappers for the same blank node is legal.
0108:             * @param model RDF2GO Model implementation, see http://rdf2go.ontoware.org
0109:             * @param bnode BlankNode of this instance
0110:             * @param write if true, the statement (this, rdf:type, TYPE) is written to the model
0111:             *
0112:             * [Generated from RDFReactor template rule #c8] 
0113:             */
0114:            public Property(Model model, BlankNode bnode, boolean write) {
0115:                super (model, RDFS_CLASS, bnode, write);
0116:            }
0117:
0118:            /**
0119:             * Returns a Java wrapper over an RDF object, identified by 
0120:             * a randomly generated URI.
0121:             * Creating two wrappers results in different URIs.
0122:             * @param model RDF2GO Model implementation, see http://rdf2go.ontoware.org
0123:             * @param write if true, the statement (this, rdf:type, TYPE) is written to the model
0124:             *
0125:             * [Generated from RDFReactor template rule #c9] 
0126:             */
0127:            public Property(Model model, boolean write) {
0128:                super (model, RDFS_CLASS, model.newRandomUniqueURI(), write);
0129:            }
0130:
0131:            ///////////////////////////////////////////////////////////////////
0132:            // typing
0133:
0134:            /**
0135:             * Create a new instance of this class in the model. 
0136:             * That is, create the statement (instanceResource, RDF.type, http://www.w3.org/1999/02/22-rdf-syntax-ns#Property).
0137:             * @param model an RDF2Go model
0138:             * @param instanceResource an RDF2Go resource
0139:             *
0140:             * [Generated from RDFReactor template rule #1] 
0141:             */
0142:            public static void createInstance(Model model,
0143:                    org.ontoware.rdf2go.model.node.Resource instanceResource) {
0144:                Base.createInstance(model, RDFS_CLASS, instanceResource);
0145:            }
0146:
0147:            /**
0148:             * @param model an RDF2Go model
0149:             * @param instanceResource an RDF2Go resource
0150:             * @return true if instanceResource is an instance of this class in the model
0151:             *
0152:             * [Generated from RDFReactor template rule #2] 
0153:             */
0154:            public static boolean hasInstance(Model model,
0155:                    org.ontoware.rdf2go.model.node.Resource instanceResource) {
0156:                return Base.hasInstance(model, RDFS_CLASS, instanceResource);
0157:            }
0158:
0159:            /**
0160:             * @param model an RDF2Go model
0161:             * @return all instances of this class in Model 'model' as RDF resources
0162:             *
0163:             * [Generated from RDFReactor template rule #3] 
0164:             */
0165:            public static ClosableIterator<org.ontoware.rdf2go.model.node.Resource> getAllInstancesAsRdf2GoResources(
0166:                    Model model) {
0167:                return Base.getAllInstances(model, RDFS_CLASS,
0168:                        org.ontoware.rdf2go.model.node.Resource.class);
0169:            }
0170:
0171:            /**
0172:             * Delete all rdf:type from this instance. Other triples are not affected.
0173:             * @param model an RDF2Go model
0174:             * @param instanceResource an RDF2Go resource
0175:             *
0176:             * [Generated from RDFReactor template rule #4] 
0177:             */
0178:            public static void deleteInstance(Model model,
0179:                    org.ontoware.rdf2go.model.node.Resource instanceResource) {
0180:                Base.deleteInstance(model, RDFS_CLASS, instanceResource);
0181:            }
0182:
0183:            ///////////////////////////////////////////////////////////////////
0184:            // property access methods
0185:
0186:            /**
0187:             * @param model an RDF2Go model
0188:             * @param objectValue
0189:             * @return all A's as RDF resources, that have a relation 'SubPropertyOf' to this Property instance
0190:             *
0191:             * [Generated from RDFReactor template rule #getallinverse1static] 
0192:             */
0193:            public static ClosableIterator<org.ontoware.rdf2go.model.node.Resource> getAllSubPropertyOf_Inverse(
0194:                    Model model, Object objectValue) {
0195:                return Base.getAll_Inverse(model, Property.SUBPROPERTYOF,
0196:                        objectValue);
0197:            }
0198:
0199:            /**
0200:             * Get all values of property Domain as an Iterator over RDF2Go nodes 
0201:             * @param model an RDF2Go model
0202:             * @param resource an RDF2Go resource
0203:             * @return a ClosableIterator of RDF2Go Nodes
0204:             *
0205:             * [Generated from RDFReactor template rule #get7static] 
0206:             */
0207:            public static ClosableIterator<org.ontoware.rdf2go.model.node.Node> getAllDomain_asNode(
0208:                    Model model,
0209:                    org.ontoware.rdf2go.model.node.Resource instanceResource) {
0210:                return (ClosableIterator<org.ontoware.rdf2go.model.node.Node>) Base
0211:                        .getAll_asNode(model, instanceResource, DOMAIN);
0212:            }
0213:
0214:            /**
0215:             * Get all values of property Domain as a List of RDF2Go nodes 
0216:             * @param model an RDF2Go model
0217:             * @param resource an RDF2Go resource
0218:             * @return a List of RDF2Go Nodes
0219:             *
0220:             * [Generated from RDFReactor template rule #get7static-list] 
0221:             */
0222:            public static java.util.List<org.ontoware.rdf2go.model.node.Node> getAllDomain_asNodeList(
0223:                    Model model,
0224:                    org.ontoware.rdf2go.model.node.Resource instanceResource) {
0225:                return (java.util.List<org.ontoware.rdf2go.model.node.Node>) Base
0226:                        .getAll_asNodeList(model, instanceResource, DOMAIN);
0227:            }
0228:
0229:            /**
0230:             * Get all values of property Domain as an Iterator over RDF2Go nodes 
0231:             * @return a ClosableIterator of RDF2Go Nodes
0232:             *
0233:             * [Generated from RDFReactor template rule #get8dynamic] 
0234:             */
0235:            public ClosableIterator<org.ontoware.rdf2go.model.node.Node> getAllDomain_asNode() {
0236:                return (ClosableIterator<org.ontoware.rdf2go.model.node.Node>) Base
0237:                        .getAll_asNode(this .model, this .getResource(), DOMAIN);
0238:            }
0239:
0240:            /**
0241:             * Get all values of property Domain as a List of RDF2Go nodes 
0242:             * @return a List of RDF2Go Nodes
0243:             *
0244:             * [Generated from RDFReactor template rule #get8dynamic-list] 
0245:             */
0246:            public java.util.List<org.ontoware.rdf2go.model.node.Node> getAllDomain_asNodeList() {
0247:                return (java.util.List<org.ontoware.rdf2go.model.node.Node>) Base
0248:                        .getAll_asNodeList(this .model, this .getResource(),
0249:                                DOMAIN);
0250:            }
0251:
0252:            /**
0253:             * Get all values of property Domain     * @param model an RDF2Go model
0254:             * @param resource an RDF2Go resource
0255:             * @return a ClosableIterator of $type
0256:             *
0257:             * [Generated from RDFReactor template rule #get11static] 
0258:             */
0259:            public static ClosableIterator<Class> getAllDomain(Model model,
0260:                    org.ontoware.rdf2go.model.node.Resource instanceResource) {
0261:                return Base
0262:                        .getAll(model, instanceResource, DOMAIN, Class.class);
0263:            }
0264:
0265:            /**
0266:             * Get all values of property Domain as a List of Class 
0267:             * @param model an RDF2Go model
0268:             * @param resource an RDF2Go resource
0269:             * @return a ClosableIterator of $type
0270:             *
0271:             * [Generated from RDFReactor template rule #get11static-list] 
0272:             */
0273:            public static java.util.List<Class> getAllDomain_asList(
0274:                    Model model,
0275:                    org.ontoware.rdf2go.model.node.Resource instanceResource) {
0276:                return Base.getAll_asList(model, instanceResource, DOMAIN,
0277:                        Class.class);
0278:            }
0279:
0280:            /**
0281:             * Get all values of property Domain     * @return a ClosableIterator of $type
0282:             *
0283:             * [Generated from RDFReactor template rule #get12dynamic] 
0284:             */
0285:            public ClosableIterator<Class> getAllDomain() {
0286:                return Base.getAll(this .model, this .getResource(), DOMAIN,
0287:                        Class.class);
0288:            }
0289:
0290:            /**
0291:             * Get all values of property Domain as a List of Class 
0292:             * @return a List of $type
0293:             *
0294:             * [Generated from RDFReactor template rule #get12dynamic-list] 
0295:             */
0296:            public java.util.List<Class> getAllDomain_asList() {
0297:                return Base.getAll_asList(this .model, this .getResource(),
0298:                        DOMAIN, Class.class);
0299:            }
0300:
0301:            /**
0302:             * Adds a value to property Domain as an RDF2Go node 
0303:             * @param model an RDF2Go model
0304:             * @param resource an RDF2Go resource
0305:             * @param value the value to be added
0306:             *
0307:             * [Generated from RDFReactor template rule #add1static] 
0308:             */
0309:            public static void addDomain(Model model,
0310:                    org.ontoware.rdf2go.model.node.Resource instanceResource,
0311:                    org.ontoware.rdf2go.model.node.Node value) {
0312:                Base.add(model, instanceResource, DOMAIN, value);
0313:            }
0314:
0315:            /**
0316:             * Adds a value to property Domain as an RDF2Go node 
0317:             * @param value the value to be added
0318:             *
0319:             * [Generated from RDFReactor template rule #add1dynamic] 
0320:             */
0321:            public void addDomain(org.ontoware.rdf2go.model.node.Node value) {
0322:                Base.add(this .model, this .getResource(), DOMAIN, value);
0323:            }
0324:
0325:            /**
0326:             * Adds a value to property Domain from an instance of Class 
0327:             * @param model an RDF2Go model
0328:             * @param resource an RDF2Go resource
0329:             *
0330:             * [Generated from RDFReactor template rule #add3static] 
0331:             */
0332:            public static void addDomain(Model model,
0333:                    org.ontoware.rdf2go.model.node.Resource instanceResource,
0334:                    Class value) {
0335:                Base.add(model, instanceResource, DOMAIN, value);
0336:            }
0337:
0338:            /**
0339:             * Adds a value to property Domain from an instance of Class 
0340:             *
0341:             * [Generated from RDFReactor template rule #add4dynamic] 
0342:             */
0343:            public void addDomain(Class value) {
0344:                Base.add(this .model, this .getResource(), DOMAIN, value);
0345:            }
0346:
0347:            /**
0348:             * Sets a value of property Domain from an RDF2Go node.
0349:             * First, all existing values are removed, then this value is added.
0350:             * Cardinality constraints are not checked, but this method exists only for properties with
0351:             * no minCardinality or minCardinality == 1.
0352:             * @param model an RDF2Go model
0353:             * @param resource an RDF2Go resource
0354:             * @param value the value to be set
0355:             *
0356:             * [Generated from RDFReactor template rule #set1static] 
0357:             */
0358:            public static void setDomain(Model model,
0359:                    org.ontoware.rdf2go.model.node.Resource instanceResource,
0360:                    org.ontoware.rdf2go.model.node.Node value) {
0361:                Base.set(model, instanceResource, DOMAIN, value);
0362:            }
0363:
0364:            /**
0365:             * Sets a value of property Domain from an RDF2Go node.
0366:             * First, all existing values are removed, then this value is added.
0367:             * Cardinality constraints are not checked, but this method exists only for properties with
0368:             * no minCardinality or minCardinality == 1.
0369:             * @param value the value to be added
0370:             *
0371:             * [Generated from RDFReactor template rule #set1dynamic] 
0372:             */
0373:            public void setDomain(org.ontoware.rdf2go.model.node.Node value) {
0374:                Base.set(this .model, this .getResource(), DOMAIN, value);
0375:            }
0376:
0377:            /**
0378:             * Sets a value of property Domain from an instance of Class 
0379:             * First, all existing values are removed, then this value is added.
0380:             * Cardinality constraints are not checked, but this method exists only for properties with
0381:             * no minCardinality or minCardinality == 1.
0382:             * @param model an RDF2Go model
0383:             * @param resource an RDF2Go resource
0384:             * @param value the value to be added
0385:             *
0386:             * [Generated from RDFReactor template rule #set3static] 
0387:             */
0388:            public static void setDomain(Model model,
0389:                    org.ontoware.rdf2go.model.node.Resource instanceResource,
0390:                    Class value) {
0391:                Base.set(model, instanceResource, DOMAIN, value);
0392:            }
0393:
0394:            /**
0395:             * Sets a value of property Domain from an instance of Class 
0396:             * First, all existing values are removed, then this value is added.
0397:             * Cardinality constraints are not checked, but this method exists only for properties with
0398:             * no minCardinality or minCardinality == 1.
0399:             * @param value the value to be added
0400:             *
0401:             * [Generated from RDFReactor template rule #set4dynamic] 
0402:             */
0403:            public void setDomain(Class value) {
0404:                Base.set(this .model, this .getResource(), DOMAIN, value);
0405:            }
0406:
0407:            /**
0408:             * Removes a value of property Domain as an RDF2Go node 
0409:             * @param model an RDF2Go model
0410:             * @param resource an RDF2Go resource
0411:             * @param value the value to be removed
0412:             *
0413:             * [Generated from RDFReactor template rule #remove1static] 
0414:             */
0415:            public static void removeDomain(Model model,
0416:                    org.ontoware.rdf2go.model.node.Resource instanceResource,
0417:                    org.ontoware.rdf2go.model.node.Node value) {
0418:                Base.remove(model, instanceResource, DOMAIN, value);
0419:            }
0420:
0421:            /**
0422:             * Removes a value of property Domain as an RDF2Go node
0423:             * @param value the value to be removed
0424:             *
0425:             * [Generated from RDFReactor template rule #remove1dynamic] 
0426:             */
0427:            public void removeDomain(org.ontoware.rdf2go.model.node.Node value) {
0428:                Base.remove(this .model, this .getResource(), DOMAIN, value);
0429:            }
0430:
0431:            /**
0432:             * Removes a value of property Domain given as an instance of Class 
0433:             * @param model an RDF2Go model
0434:             * @param resource an RDF2Go resource
0435:             * @param value the value to be removed
0436:             *
0437:             * [Generated from RDFReactor template rule #remove3static] 
0438:             */
0439:            public static void removeDomain(Model model,
0440:                    org.ontoware.rdf2go.model.node.Resource instanceResource,
0441:                    Class value) {
0442:                Base.remove(model, instanceResource, DOMAIN, value);
0443:            }
0444:
0445:            /**
0446:             * Removes a value of property Domain given as an instance of Class 
0447:             * @param value the value to be removed
0448:             *
0449:             * [Generated from RDFReactor template rule #remove4dynamic] 
0450:             */
0451:            public void removeDomain(Class value) {
0452:                Base.remove(this .model, this .getResource(), DOMAIN, value);
0453:            }
0454:
0455:            /**
0456:             * Removes all values of property Domain     * @param model an RDF2Go model
0457:             * @param resource an RDF2Go resource
0458:             *
0459:             * [Generated from RDFReactor template rule #removeall1static] 
0460:             */
0461:            public static void removeAllDomain(Model model,
0462:                    org.ontoware.rdf2go.model.node.Resource instanceResource) {
0463:                Base.removeAll(model, instanceResource, DOMAIN);
0464:            }
0465:
0466:            /**
0467:             * Removes all values of property Domain	 *
0468:             * [Generated from RDFReactor template rule #removeall1dynamic] 
0469:             */
0470:            public void addDomain() {
0471:                Base.removeAll(this .model, this .getResource(), DOMAIN);
0472:            }
0473:
0474:            /**
0475:             * Get all values of property Range as an Iterator over RDF2Go nodes 
0476:             * @param model an RDF2Go model
0477:             * @param resource an RDF2Go resource
0478:             * @return a ClosableIterator of RDF2Go Nodes
0479:             *
0480:             * [Generated from RDFReactor template rule #get7static] 
0481:             */
0482:            public static ClosableIterator<org.ontoware.rdf2go.model.node.Node> getAllRange_asNode(
0483:                    Model model,
0484:                    org.ontoware.rdf2go.model.node.Resource instanceResource) {
0485:                return (ClosableIterator<org.ontoware.rdf2go.model.node.Node>) Base
0486:                        .getAll_asNode(model, instanceResource, RANGE);
0487:            }
0488:
0489:            /**
0490:             * Get all values of property Range as a List of RDF2Go nodes 
0491:             * @param model an RDF2Go model
0492:             * @param resource an RDF2Go resource
0493:             * @return a List of RDF2Go Nodes
0494:             *
0495:             * [Generated from RDFReactor template rule #get7static-list] 
0496:             */
0497:            public static java.util.List<org.ontoware.rdf2go.model.node.Node> getAllRange_asNodeList(
0498:                    Model model,
0499:                    org.ontoware.rdf2go.model.node.Resource instanceResource) {
0500:                return (java.util.List<org.ontoware.rdf2go.model.node.Node>) Base
0501:                        .getAll_asNodeList(model, instanceResource, RANGE);
0502:            }
0503:
0504:            /**
0505:             * Get all values of property Range as an Iterator over RDF2Go nodes 
0506:             * @return a ClosableIterator of RDF2Go Nodes
0507:             *
0508:             * [Generated from RDFReactor template rule #get8dynamic] 
0509:             */
0510:            public ClosableIterator<org.ontoware.rdf2go.model.node.Node> getAllRange_asNode() {
0511:                return (ClosableIterator<org.ontoware.rdf2go.model.node.Node>) Base
0512:                        .getAll_asNode(this .model, this .getResource(), RANGE);
0513:            }
0514:
0515:            /**
0516:             * Get all values of property Range as a List of RDF2Go nodes 
0517:             * @return a List of RDF2Go Nodes
0518:             *
0519:             * [Generated from RDFReactor template rule #get8dynamic-list] 
0520:             */
0521:            public java.util.List<org.ontoware.rdf2go.model.node.Node> getAllRange_asNodeList() {
0522:                return (java.util.List<org.ontoware.rdf2go.model.node.Node>) Base
0523:                        .getAll_asNodeList(this .model, this .getResource(),
0524:                                RANGE);
0525:            }
0526:
0527:            /**
0528:             * Get all values of property Range     * @param model an RDF2Go model
0529:             * @param resource an RDF2Go resource
0530:             * @return a ClosableIterator of $type
0531:             *
0532:             * [Generated from RDFReactor template rule #get11static] 
0533:             */
0534:            public static ClosableIterator<Class> getAllRange(Model model,
0535:                    org.ontoware.rdf2go.model.node.Resource instanceResource) {
0536:                return Base.getAll(model, instanceResource, RANGE, Class.class);
0537:            }
0538:
0539:            /**
0540:             * Get all values of property Range as a List of Class 
0541:             * @param model an RDF2Go model
0542:             * @param resource an RDF2Go resource
0543:             * @return a ClosableIterator of $type
0544:             *
0545:             * [Generated from RDFReactor template rule #get11static-list] 
0546:             */
0547:            public static java.util.List<Class> getAllRange_asList(Model model,
0548:                    org.ontoware.rdf2go.model.node.Resource instanceResource) {
0549:                return Base.getAll_asList(model, instanceResource, RANGE,
0550:                        Class.class);
0551:            }
0552:
0553:            /**
0554:             * Get all values of property Range     * @return a ClosableIterator of $type
0555:             *
0556:             * [Generated from RDFReactor template rule #get12dynamic] 
0557:             */
0558:            public ClosableIterator<Class> getAllRange() {
0559:                return Base.getAll(this .model, this .getResource(), RANGE,
0560:                        Class.class);
0561:            }
0562:
0563:            /**
0564:             * Get all values of property Range as a List of Class 
0565:             * @return a List of $type
0566:             *
0567:             * [Generated from RDFReactor template rule #get12dynamic-list] 
0568:             */
0569:            public java.util.List<Class> getAllRange_asList() {
0570:                return Base.getAll_asList(this .model, this .getResource(),
0571:                        RANGE, Class.class);
0572:            }
0573:
0574:            /**
0575:             * Adds a value to property Range as an RDF2Go node 
0576:             * @param model an RDF2Go model
0577:             * @param resource an RDF2Go resource
0578:             * @param value the value to be added
0579:             *
0580:             * [Generated from RDFReactor template rule #add1static] 
0581:             */
0582:            public static void addRange(Model model,
0583:                    org.ontoware.rdf2go.model.node.Resource instanceResource,
0584:                    org.ontoware.rdf2go.model.node.Node value) {
0585:                Base.add(model, instanceResource, RANGE, value);
0586:            }
0587:
0588:            /**
0589:             * Adds a value to property Range as an RDF2Go node 
0590:             * @param value the value to be added
0591:             *
0592:             * [Generated from RDFReactor template rule #add1dynamic] 
0593:             */
0594:            public void addRange(org.ontoware.rdf2go.model.node.Node value) {
0595:                Base.add(this .model, this .getResource(), RANGE, value);
0596:            }
0597:
0598:            /**
0599:             * Adds a value to property Range from an instance of Class 
0600:             * @param model an RDF2Go model
0601:             * @param resource an RDF2Go resource
0602:             *
0603:             * [Generated from RDFReactor template rule #add3static] 
0604:             */
0605:            public static void addRange(Model model,
0606:                    org.ontoware.rdf2go.model.node.Resource instanceResource,
0607:                    Class value) {
0608:                Base.add(model, instanceResource, RANGE, value);
0609:            }
0610:
0611:            /**
0612:             * Adds a value to property Range from an instance of Class 
0613:             *
0614:             * [Generated from RDFReactor template rule #add4dynamic] 
0615:             */
0616:            public void addRange(Class value) {
0617:                Base.add(this .model, this .getResource(), RANGE, value);
0618:            }
0619:
0620:            /**
0621:             * Sets a value of property Range from an RDF2Go node.
0622:             * First, all existing values are removed, then this value is added.
0623:             * Cardinality constraints are not checked, but this method exists only for properties with
0624:             * no minCardinality or minCardinality == 1.
0625:             * @param model an RDF2Go model
0626:             * @param resource an RDF2Go resource
0627:             * @param value the value to be set
0628:             *
0629:             * [Generated from RDFReactor template rule #set1static] 
0630:             */
0631:            public static void setRange(Model model,
0632:                    org.ontoware.rdf2go.model.node.Resource instanceResource,
0633:                    org.ontoware.rdf2go.model.node.Node value) {
0634:                Base.set(model, instanceResource, RANGE, value);
0635:            }
0636:
0637:            /**
0638:             * Sets a value of property Range from an RDF2Go node.
0639:             * First, all existing values are removed, then this value is added.
0640:             * Cardinality constraints are not checked, but this method exists only for properties with
0641:             * no minCardinality or minCardinality == 1.
0642:             * @param value the value to be added
0643:             *
0644:             * [Generated from RDFReactor template rule #set1dynamic] 
0645:             */
0646:            public void setRange(org.ontoware.rdf2go.model.node.Node value) {
0647:                Base.set(this .model, this .getResource(), RANGE, value);
0648:            }
0649:
0650:            /**
0651:             * Sets a value of property Range from an instance of Class 
0652:             * First, all existing values are removed, then this value is added.
0653:             * Cardinality constraints are not checked, but this method exists only for properties with
0654:             * no minCardinality or minCardinality == 1.
0655:             * @param model an RDF2Go model
0656:             * @param resource an RDF2Go resource
0657:             * @param value the value to be added
0658:             *
0659:             * [Generated from RDFReactor template rule #set3static] 
0660:             */
0661:            public static void setRange(Model model,
0662:                    org.ontoware.rdf2go.model.node.Resource instanceResource,
0663:                    Class value) {
0664:                Base.set(model, instanceResource, RANGE, value);
0665:            }
0666:
0667:            /**
0668:             * Sets a value of property Range from an instance of Class 
0669:             * First, all existing values are removed, then this value is added.
0670:             * Cardinality constraints are not checked, but this method exists only for properties with
0671:             * no minCardinality or minCardinality == 1.
0672:             * @param value the value to be added
0673:             *
0674:             * [Generated from RDFReactor template rule #set4dynamic] 
0675:             */
0676:            public void setRange(Class value) {
0677:                Base.set(this .model, this .getResource(), RANGE, value);
0678:            }
0679:
0680:            /**
0681:             * Removes a value of property Range as an RDF2Go node 
0682:             * @param model an RDF2Go model
0683:             * @param resource an RDF2Go resource
0684:             * @param value the value to be removed
0685:             *
0686:             * [Generated from RDFReactor template rule #remove1static] 
0687:             */
0688:            public static void removeRange(Model model,
0689:                    org.ontoware.rdf2go.model.node.Resource instanceResource,
0690:                    org.ontoware.rdf2go.model.node.Node value) {
0691:                Base.remove(model, instanceResource, RANGE, value);
0692:            }
0693:
0694:            /**
0695:             * Removes a value of property Range as an RDF2Go node
0696:             * @param value the value to be removed
0697:             *
0698:             * [Generated from RDFReactor template rule #remove1dynamic] 
0699:             */
0700:            public void removeRange(org.ontoware.rdf2go.model.node.Node value) {
0701:                Base.remove(this .model, this .getResource(), RANGE, value);
0702:            }
0703:
0704:            /**
0705:             * Removes a value of property Range given as an instance of Class 
0706:             * @param model an RDF2Go model
0707:             * @param resource an RDF2Go resource
0708:             * @param value the value to be removed
0709:             *
0710:             * [Generated from RDFReactor template rule #remove3static] 
0711:             */
0712:            public static void removeRange(Model model,
0713:                    org.ontoware.rdf2go.model.node.Resource instanceResource,
0714:                    Class value) {
0715:                Base.remove(model, instanceResource, RANGE, value);
0716:            }
0717:
0718:            /**
0719:             * Removes a value of property Range given as an instance of Class 
0720:             * @param value the value to be removed
0721:             *
0722:             * [Generated from RDFReactor template rule #remove4dynamic] 
0723:             */
0724:            public void removeRange(Class value) {
0725:                Base.remove(this .model, this .getResource(), RANGE, value);
0726:            }
0727:
0728:            /**
0729:             * Removes all values of property Range     * @param model an RDF2Go model
0730:             * @param resource an RDF2Go resource
0731:             *
0732:             * [Generated from RDFReactor template rule #removeall1static] 
0733:             */
0734:            public static void removeAllRange(Model model,
0735:                    org.ontoware.rdf2go.model.node.Resource instanceResource) {
0736:                Base.removeAll(model, instanceResource, RANGE);
0737:            }
0738:
0739:            /**
0740:             * Removes all values of property Range	 *
0741:             * [Generated from RDFReactor template rule #removeall1dynamic] 
0742:             */
0743:            public void addRange() {
0744:                Base.removeAll(this .model, this .getResource(), RANGE);
0745:            }
0746:
0747:            /**
0748:             * Get all values of property SubPropertyOf as an Iterator over RDF2Go nodes 
0749:             * @param model an RDF2Go model
0750:             * @param resource an RDF2Go resource
0751:             * @return a ClosableIterator of RDF2Go Nodes
0752:             *
0753:             * [Generated from RDFReactor template rule #get7static] 
0754:             */
0755:            public static ClosableIterator<org.ontoware.rdf2go.model.node.Node> getAllSubPropertyOf_asNode(
0756:                    Model model,
0757:                    org.ontoware.rdf2go.model.node.Resource instanceResource) {
0758:                return (ClosableIterator<org.ontoware.rdf2go.model.node.Node>) Base
0759:                        .getAll_asNode(model, instanceResource, SUBPROPERTYOF);
0760:            }
0761:
0762:            /**
0763:             * Get all values of property SubPropertyOf as a List of RDF2Go nodes 
0764:             * @param model an RDF2Go model
0765:             * @param resource an RDF2Go resource
0766:             * @return a List of RDF2Go Nodes
0767:             *
0768:             * [Generated from RDFReactor template rule #get7static-list] 
0769:             */
0770:            public static java.util.List<org.ontoware.rdf2go.model.node.Node> getAllSubPropertyOf_asNodeList(
0771:                    Model model,
0772:                    org.ontoware.rdf2go.model.node.Resource instanceResource) {
0773:                return (java.util.List<org.ontoware.rdf2go.model.node.Node>) Base
0774:                        .getAll_asNodeList(model, instanceResource,
0775:                                SUBPROPERTYOF);
0776:            }
0777:
0778:            /**
0779:             * Get all values of property SubPropertyOf as an Iterator over RDF2Go nodes 
0780:             * @return a ClosableIterator of RDF2Go Nodes
0781:             *
0782:             * [Generated from RDFReactor template rule #get8dynamic] 
0783:             */
0784:            public ClosableIterator<org.ontoware.rdf2go.model.node.Node> getAllSubPropertyOf_asNode() {
0785:                return (ClosableIterator<org.ontoware.rdf2go.model.node.Node>) Base
0786:                        .getAll_asNode(this .model, this .getResource(),
0787:                                SUBPROPERTYOF);
0788:            }
0789:
0790:            /**
0791:             * Get all values of property SubPropertyOf as a List of RDF2Go nodes 
0792:             * @return a List of RDF2Go Nodes
0793:             *
0794:             * [Generated from RDFReactor template rule #get8dynamic-list] 
0795:             */
0796:            public java.util.List<org.ontoware.rdf2go.model.node.Node> getAllSubPropertyOf_asNodeList() {
0797:                return (java.util.List<org.ontoware.rdf2go.model.node.Node>) Base
0798:                        .getAll_asNodeList(this .model, this .getResource(),
0799:                                SUBPROPERTYOF);
0800:            }
0801:
0802:            /**
0803:             * Get all values of property SubPropertyOf     * @param model an RDF2Go model
0804:             * @param resource an RDF2Go resource
0805:             * @return a ClosableIterator of $type
0806:             *
0807:             * [Generated from RDFReactor template rule #get11static] 
0808:             */
0809:            public static ClosableIterator<Property> getAllSubPropertyOf(
0810:                    Model model,
0811:                    org.ontoware.rdf2go.model.node.Resource instanceResource) {
0812:                return Base.getAll(model, instanceResource, SUBPROPERTYOF,
0813:                        Property.class);
0814:            }
0815:
0816:            /**
0817:             * Get all values of property SubPropertyOf as a List of Property 
0818:             * @param model an RDF2Go model
0819:             * @param resource an RDF2Go resource
0820:             * @return a ClosableIterator of $type
0821:             *
0822:             * [Generated from RDFReactor template rule #get11static-list] 
0823:             */
0824:            public static java.util.List<Property> getAllSubPropertyOf_asList(
0825:                    Model model,
0826:                    org.ontoware.rdf2go.model.node.Resource instanceResource) {
0827:                return Base.getAll_asList(model, instanceResource,
0828:                        SUBPROPERTYOF, Property.class);
0829:            }
0830:
0831:            /**
0832:             * Get all values of property SubPropertyOf     * @return a ClosableIterator of $type
0833:             *
0834:             * [Generated from RDFReactor template rule #get12dynamic] 
0835:             */
0836:            public ClosableIterator<Property> getAllSubPropertyOf() {
0837:                return Base.getAll(this .model, this .getResource(),
0838:                        SUBPROPERTYOF, Property.class);
0839:            }
0840:
0841:            /**
0842:             * Get all values of property SubPropertyOf as a List of Property 
0843:             * @return a List of $type
0844:             *
0845:             * [Generated from RDFReactor template rule #get12dynamic-list] 
0846:             */
0847:            public java.util.List<Property> getAllSubPropertyOf_asList() {
0848:                return Base.getAll_asList(this .model, this .getResource(),
0849:                        SUBPROPERTYOF, Property.class);
0850:            }
0851:
0852:            /**
0853:             * Adds a value to property SubPropertyOf as an RDF2Go node 
0854:             * @param model an RDF2Go model
0855:             * @param resource an RDF2Go resource
0856:             * @param value the value to be added
0857:             *
0858:             * [Generated from RDFReactor template rule #add1static] 
0859:             */
0860:            public static void addSubPropertyOf(Model model,
0861:                    org.ontoware.rdf2go.model.node.Resource instanceResource,
0862:                    org.ontoware.rdf2go.model.node.Node value) {
0863:                Base.add(model, instanceResource, SUBPROPERTYOF, value);
0864:            }
0865:
0866:            /**
0867:             * Adds a value to property SubPropertyOf as an RDF2Go node 
0868:             * @param value the value to be added
0869:             *
0870:             * [Generated from RDFReactor template rule #add1dynamic] 
0871:             */
0872:            public void addSubPropertyOf(
0873:                    org.ontoware.rdf2go.model.node.Node value) {
0874:                Base.add(this .model, this .getResource(), SUBPROPERTYOF, value);
0875:            }
0876:
0877:            /**
0878:             * Adds a value to property SubPropertyOf from an instance of Property 
0879:             * @param model an RDF2Go model
0880:             * @param resource an RDF2Go resource
0881:             *
0882:             * [Generated from RDFReactor template rule #add3static] 
0883:             */
0884:            public static void addSubPropertyOf(Model model,
0885:                    org.ontoware.rdf2go.model.node.Resource instanceResource,
0886:                    Property value) {
0887:                Base.add(model, instanceResource, SUBPROPERTYOF, value);
0888:            }
0889:
0890:            /**
0891:             * Adds a value to property SubPropertyOf from an instance of Property 
0892:             *
0893:             * [Generated from RDFReactor template rule #add4dynamic] 
0894:             */
0895:            public void addSubPropertyOf(Property value) {
0896:                Base.add(this .model, this .getResource(), SUBPROPERTYOF, value);
0897:            }
0898:
0899:            /**
0900:             * Sets a value of property SubPropertyOf from an RDF2Go node.
0901:             * First, all existing values are removed, then this value is added.
0902:             * Cardinality constraints are not checked, but this method exists only for properties with
0903:             * no minCardinality or minCardinality == 1.
0904:             * @param model an RDF2Go model
0905:             * @param resource an RDF2Go resource
0906:             * @param value the value to be set
0907:             *
0908:             * [Generated from RDFReactor template rule #set1static] 
0909:             */
0910:            public static void setSubPropertyOf(Model model,
0911:                    org.ontoware.rdf2go.model.node.Resource instanceResource,
0912:                    org.ontoware.rdf2go.model.node.Node value) {
0913:                Base.set(model, instanceResource, SUBPROPERTYOF, value);
0914:            }
0915:
0916:            /**
0917:             * Sets a value of property SubPropertyOf from an RDF2Go node.
0918:             * First, all existing values are removed, then this value is added.
0919:             * Cardinality constraints are not checked, but this method exists only for properties with
0920:             * no minCardinality or minCardinality == 1.
0921:             * @param value the value to be added
0922:             *
0923:             * [Generated from RDFReactor template rule #set1dynamic] 
0924:             */
0925:            public void setSubPropertyOf(
0926:                    org.ontoware.rdf2go.model.node.Node value) {
0927:                Base.set(this .model, this .getResource(), SUBPROPERTYOF, value);
0928:            }
0929:
0930:            /**
0931:             * Sets a value of property SubPropertyOf from an instance of Property 
0932:             * First, all existing values are removed, then this value is added.
0933:             * Cardinality constraints are not checked, but this method exists only for properties with
0934:             * no minCardinality or minCardinality == 1.
0935:             * @param model an RDF2Go model
0936:             * @param resource an RDF2Go resource
0937:             * @param value the value to be added
0938:             *
0939:             * [Generated from RDFReactor template rule #set3static] 
0940:             */
0941:            public static void setSubPropertyOf(Model model,
0942:                    org.ontoware.rdf2go.model.node.Resource instanceResource,
0943:                    Property value) {
0944:                Base.set(model, instanceResource, SUBPROPERTYOF, value);
0945:            }
0946:
0947:            /**
0948:             * Sets a value of property SubPropertyOf from an instance of Property 
0949:             * First, all existing values are removed, then this value is added.
0950:             * Cardinality constraints are not checked, but this method exists only for properties with
0951:             * no minCardinality or minCardinality == 1.
0952:             * @param value the value to be added
0953:             *
0954:             * [Generated from RDFReactor template rule #set4dynamic] 
0955:             */
0956:            public void setSubPropertyOf(Property value) {
0957:                Base.set(this .model, this .getResource(), SUBPROPERTYOF, value);
0958:            }
0959:
0960:            /**
0961:             * Removes a value of property SubPropertyOf as an RDF2Go node 
0962:             * @param model an RDF2Go model
0963:             * @param resource an RDF2Go resource
0964:             * @param value the value to be removed
0965:             *
0966:             * [Generated from RDFReactor template rule #remove1static] 
0967:             */
0968:            public static void removeSubPropertyOf(Model model,
0969:                    org.ontoware.rdf2go.model.node.Resource instanceResource,
0970:                    org.ontoware.rdf2go.model.node.Node value) {
0971:                Base.remove(model, instanceResource, SUBPROPERTYOF, value);
0972:            }
0973:
0974:            /**
0975:             * Removes a value of property SubPropertyOf as an RDF2Go node
0976:             * @param value the value to be removed
0977:             *
0978:             * [Generated from RDFReactor template rule #remove1dynamic] 
0979:             */
0980:            public void removeSubPropertyOf(
0981:                    org.ontoware.rdf2go.model.node.Node value) {
0982:                Base.remove(this .model, this .getResource(), SUBPROPERTYOF,
0983:                        value);
0984:            }
0985:
0986:            /**
0987:             * Removes a value of property SubPropertyOf given as an instance of Property 
0988:             * @param model an RDF2Go model
0989:             * @param resource an RDF2Go resource
0990:             * @param value the value to be removed
0991:             *
0992:             * [Generated from RDFReactor template rule #remove3static] 
0993:             */
0994:            public static void removeSubPropertyOf(Model model,
0995:                    org.ontoware.rdf2go.model.node.Resource instanceResource,
0996:                    Property value) {
0997:                Base.remove(model, instanceResource, SUBPROPERTYOF, value);
0998:            }
0999:
1000:            /**
1001:             * Removes a value of property SubPropertyOf given as an instance of Property 
1002:             * @param value the value to be removed
1003:             *
1004:             * [Generated from RDFReactor template rule #remove4dynamic] 
1005:             */
1006:            public void removeSubPropertyOf(Property value) {
1007:                Base.remove(this .model, this .getResource(), SUBPROPERTYOF,
1008:                        value);
1009:            }
1010:
1011:            /**
1012:             * Removes all values of property SubPropertyOf     * @param model an RDF2Go model
1013:             * @param resource an RDF2Go resource
1014:             *
1015:             * [Generated from RDFReactor template rule #removeall1static] 
1016:             */
1017:            public static void removeAllSubPropertyOf(Model model,
1018:                    org.ontoware.rdf2go.model.node.Resource instanceResource) {
1019:                Base.removeAll(model, instanceResource, SUBPROPERTYOF);
1020:            }
1021:
1022:            /**
1023:             * Removes all values of property SubPropertyOf	 *
1024:             * [Generated from RDFReactor template rule #removeall1dynamic] 
1025:             */
1026:            public void addSubPropertyOf() {
1027:                Base.removeAll(this .model, this .getResource(), SUBPROPERTYOF);
1028:            }
1029:
1030:            public static List<Property> getAllInstances_asList(Model m) {
1031:                return Base.getAllInstances_asList(m, RDFS_CLASS,
1032:                        Property.class);
1033:            }
1034:
1035:            public static Property[] getAllInstances_asArray(Model m) {
1036:                return Base.getAllInstances_asArray(m, RDFS_CLASS,
1037:                        Property.class);
1038:            }
1039:
1040:            public static ReactorResult<? extends Property> getAllInstance_as(
1041:                    Model model) {
1042:                return Base.getAllInstances_as(model, RDFS_CLASS,
1043:                        Property.class);
1044:            }
1045:
1046:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.