Source Code Cross Referenced for Agent.java in  » Search-Engine » semweb4j » org » rdfs » sioc » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Search Engine » semweb4j » org.rdfs.sioc 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /**
002:         * generated by http://RDFReactor.semweb4j.org ($Id: CodeGenerator.java 785 2007-05-31 15:47:01Z voelkel $) on 01.06.07 18:30
003:         */package org.rdfs.sioc;
004:
005:        import org.ontoware.rdf2go.model.Model;
006:        import org.ontoware.rdf2go.model.node.BlankNode;
007:        import org.ontoware.rdf2go.model.node.URI;
008:        import org.ontoware.rdf2go.model.node.impl.URIImpl;
009:        import org.ontoware.rdf2go.exception.ModelRuntimeException;
010:
011:        /**
012:         * This class was generated by <a href="http://RDFReactor.semweb4j.org">RDFReactor</a> on 01.06.07 18:30
013:         */
014:        public class Agent extends Thing {
015:
016:            /** http://xmlns.com/foaf/0.1/Agent */
017:            public static final URI RDFS_CLASS = new URIImpl(
018:                    "http://xmlns.com/foaf/0.1/Agent", false);
019:
020:            /** all property-URIs with this class as domain */
021:            public static final URI[] MANAGED_URIS = {
022:
023:            };
024:
025:            // protected constructors needed for inheritance
026:
027:            /**
028:             * Returns a Java wrapper over an RDF object, identified by URI.
029:             * Creating two wrappers for the same instanceURI is legal.
030:             * @param model RDF2GO Model implementation, see http://rdf2go.semweb4j.org
031:             * @param classURI URI of RDFS class
032:             * @param instanceIdentifier Resource that identifies this instance
033:             * @param write if true, the statement (this, rdf:type, TYPE) is written to the model
034:             */
035:            protected Agent(Model model, URI classURI,
036:                    org.ontoware.rdf2go.model.node.Resource instanceIdentifier,
037:                    boolean write) {
038:                super (model, classURI, instanceIdentifier, write);
039:            }
040:
041:            // public constructors
042:
043:            /**
044:             * Returns a Java wrapper over an RDF object, identified by URI.
045:             * Creating two wrappers for the same instanceURI is legal.
046:             * @param model RDF2GO Model implementation, see http://rdf2go.ontoware.org
047:             * @param instanceIdentifier an RDF2Go Resource identifying this instance
048:             * @param write if true, the statement (this, rdf:type, TYPE) is written to the model
049:             */
050:            public Agent(Model model,
051:                    org.ontoware.rdf2go.model.node.Resource instanceIdentifier,
052:                    boolean write) {
053:                super (model, RDFS_CLASS, instanceIdentifier, write);
054:            }
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:             * The statement (this, rdf:type, TYPE) is written to the model
060:             * @param model RDF2GO Model implementation, see http://rdf2go.ontoware.org
061:             * @param uri URI of this instance
062:             */
063:            public Agent(Model model, URI uri) {
064:                this (model, uri, true);
065:            }
066:
067:            /**
068:             * Returns a Java wrapper over an RDF object, identified by URI.
069:             * Creating two wrappers for the same instanceURI is legal.
070:             * The statement (this, rdf:type, TYPE) is written to the model
071:             * @param model RDF2GO Model implementation, see http://rdf2go.ontoware.org
072:             * @param uriString A URI of this instance, represented as a String
073:             * @throws ModelRuntimeException if URI syntax is wrong
074:             */
075:            public Agent(Model model, String uriString)
076:                    throws ModelRuntimeException {
077:                this (model, new URIImpl(uriString), true);
078:            }
079:
080:            /**
081:             * Returns a Java wrapper over an RDF object, identified by a blank node.
082:             * Creating two wrappers for the same blank node is legal.
083:             * The statement (this, rdf:type, TYPE) is written to the model
084:             * @param model RDF2GO Model implementation, see http://rdf2go.ontoware.org
085:             * @param bnode BlankNode of this instance
086:             */
087:            public Agent(Model model, BlankNode bnode) {
088:                this (model, bnode, true);
089:            }
090:
091:            /**
092:             * Returns a Java wrapper over an RDF object, identified by 
093:             * a randomly generated URI.
094:             * Creating two wrappers results in different URIs.
095:             * The statement (this, rdf:type, TYPE) is written to the model
096:             * @param model RDF2GO Model implementation, see http://rdf2go.ontoware.org
097:             */
098:            public Agent(Model model) {
099:                this (model, model.newRandomUniqueURI(), true);
100:            }
101:
102:            ///////////////////////////////////////////////////////////////////
103:            // getters, setters, ...
104:
105:            /**
106:             * @param model RDF2Go model
107:             * @param uri instance identifier
108:             * @return an instance of Agent or null if none existst
109:             * @throws Exception if Model causes problems
110:             */
111:            public static Agent getInstance(Model model, URI uri)
112:                    throws Exception {
113:                return (Agent) getInstance(model, uri, Agent.class);
114:            }
115:
116:            /**
117:             * @param model
118:             * @param uri
119:             * @return true if uri is an instance of this class in the model
120:             */
121:            public static boolean hasInstance(Model model, URI uri) {
122:                return hasInstance(model, uri, RDFS_CLASS);
123:            }
124:
125:            /**
126:             * @return all instances of this class
127:             */
128:            public Agent[] getAllInstances() {
129:                return (Agent[]) getAllInstances(super .model, Agent.class);
130:            }
131:
132:            /**
133:             * @return all instances of this class in the given Model
134:             * @param model an RDF2Go model
135:             */
136:            public static Agent[] getAllInstances(Model model) {
137:                return (Agent[]) getAllInstances(model, Agent.class);
138:            }
139:
140:            /**
141:             * @return all A's that have a relation 'Accountof' to this Agent instance
142:             */
143:            public User[] getAllSiocAccountof_Inverse() {
144:                return (User[]) getAll_Inverse(User.ACCOUNTOF, this 
145:                        .getResource(), User.class);
146:            }
147:
148:            /**
149:             * add 'Accountof'-Inverse
150:             * @param value
151:             */
152:            public void addSiocAccountof_Inverse(User value) {
153:                value.add(User.ACCOUNTOF, this);
154:            }
155:
156:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.