Source Code Cross Referenced for Tag.java in  » Search-Engine » semweb4j » org » ontoware » semweb4j » lessons » lesson5 » gen » 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.semweb4j.lessons.lesson5.gen 
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 02.07.07 21:37
003:         */package org.ontoware.semweb4j.lessons.lesson5.gen;
004:
005:        import org.ontoware.rdf2go.exception.ModelRuntimeException;
006:        import org.ontoware.rdf2go.model.Model;
007:        import org.ontoware.rdf2go.model.node.BlankNode;
008:        import org.ontoware.rdf2go.model.node.URI;
009:        import org.ontoware.rdf2go.model.node.impl.URIImpl;
010:        import org.ontoware.rdfreactor.runtime.RDFDataException;
011:
012:        /**
013:         * the tags which are assigned to people
014:         *  
015:         * This class manages access to these properties:
016:         * <ul>
017:         *   <li> Name </li>
018:         * </ul>
019:         *
020:         * This class was generated by <a href="http://RDFReactor.semweb4j.org">RDFReactor</a> on 02.07.07 21:37
021:         */
022:        public class Tag extends Thing {
023:
024:            /** http://example.com/semweb4j#Tag */
025:            public static final URI RDFS_CLASS = new URIImpl(
026:                    "http://example.com/semweb4j#Tag", false);
027:
028:            /** http://example.com/semweb4j#name */
029:            public static final URI NAME = new URIImpl(
030:                    "http://example.com/semweb4j#name", false);
031:
032:            /** all property-URIs with this class as domain */
033:            public static final URI[] MANAGED_URIS = { new URIImpl(
034:                    "http://example.com/semweb4j#name", 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:            protected Tag(Model model, URI classURI,
047:                    org.ontoware.rdf2go.model.node.Resource instanceIdentifier,
048:                    boolean write) {
049:                super (model, classURI, instanceIdentifier, write);
050:            }
051:
052:            // public constructors
053:
054:            /**
055:             * Returns a Java wrapper over an RDF object, identified by URI.
056:             * Creating two wrappers for the same instanceURI is legal.
057:             * @param model RDF2GO Model implementation, see http://rdf2go.ontoware.org
058:             * @param instanceIdentifier an RDF2Go Resource identifying this instance
059:             * @param write if true, the statement (this, rdf:type, TYPE) is written to the model
060:             */
061:            public Tag(Model model,
062:                    org.ontoware.rdf2go.model.node.Resource instanceIdentifier,
063:                    boolean write) {
064:                super (model, RDFS_CLASS, instanceIdentifier, write);
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 uri URI of this instance
073:             */
074:            public Tag(Model model, URI uri) {
075:                this (model, uri, true);
076:            }
077:
078:            /**
079:             * Returns a Java wrapper over an RDF object, identified by URI.
080:             * Creating two wrappers for the same instanceURI is legal.
081:             * The statement (this, rdf:type, TYPE) is written to the model
082:             * @param model RDF2GO Model implementation, see http://rdf2go.ontoware.org
083:             * @param uriString A URI of this instance, represented as a String
084:             * @throws ModelRuntimeException if URI syntax is wrong
085:             */
086:            public Tag(Model model, String uriString)
087:                    throws ModelRuntimeException {
088:                this (model, new URIImpl(uriString), true);
089:            }
090:
091:            /**
092:             * Returns a Java wrapper over an RDF object, identified by a blank node.
093:             * Creating two wrappers for the same blank node is legal.
094:             * The statement (this, rdf:type, TYPE) is written to the model
095:             * @param model RDF2GO Model implementation, see http://rdf2go.ontoware.org
096:             * @param bnode BlankNode of this instance
097:             */
098:            public Tag(Model model, BlankNode bnode) {
099:                this (model, bnode, true);
100:            }
101:
102:            /**
103:             * Returns a Java wrapper over an RDF object, identified by 
104:             * a randomly generated URI.
105:             * Creating two wrappers results in different URIs.
106:             * The statement (this, rdf:type, TYPE) is written to the model
107:             * @param model RDF2GO Model implementation, see http://rdf2go.ontoware.org
108:             */
109:            public Tag(Model model) {
110:                this (model, model.newRandomUniqueURI(), true);
111:            }
112:
113:            ///////////////////////////////////////////////////////////////////
114:            // getters, setters, ...
115:
116:            /**
117:             * @param model RDF2Go model
118:             * @param uri instance identifier
119:             * @return an instance of Tag or null if none existst
120:             * @throws Exception if Model causes problems
121:             */
122:            public static Tag getInstance(Model model, URI uri)
123:                    throws Exception {
124:                return (Tag) getInstance(model, uri, Tag.class);
125:            }
126:
127:            /**
128:             * @param model
129:             * @param uri
130:             * @return true if uri is an instance of this class in the model
131:             */
132:            public static boolean hasInstance(Model model, URI uri) {
133:                return hasInstance(model, uri, RDFS_CLASS);
134:            }
135:
136:            /**
137:             * @return all instances of this class
138:             */
139:            public Tag[] getAllInstances() {
140:                return (Tag[]) getAllInstances(super .model, Tag.class);
141:            }
142:
143:            /**
144:             * @return all instances of this class in the given Model
145:             * @param model an RDF2Go model
146:             */
147:            public static Tag[] getAllInstances(Model model) {
148:                return (Tag[]) getAllInstances(model, Tag.class);
149:            }
150:
151:            /**
152:             * @return all A's that have a relation 'Tag' to this Tag instance
153:             */
154:            public Person[] getAllTag_Inverse() {
155:                return (Person[]) getAll_Inverse(Person.TAG,
156:                        this .getResource(), Person.class);
157:            }
158:
159:            /**
160:             * add 'Tag'-Inverse
161:             * @param value
162:             */
163:            public void addTag_Inverse(Person value) {
164:                value.add(Person.TAG, this );
165:            }
166:
167:            /**
168:             * Schema Comment: a name of a person or tag
169:             * @return the only value. null if none is found
170:             * @throws RDFDataException, if the property has multiple values
171:             */
172:            public java.lang.String getName() {
173:                return (java.lang.String) get(NAME, java.lang.String.class);
174:            }
175:
176:            /**
177:             * removes all values and sets this one
178:             * @param value the value to be set
179:             * Schema Comment: a name of a person or tag
180:             */
181:            public void setName(java.lang.String value) {
182:                set(NAME, value);
183:            }
184:
185:            /**
186:             * removes current value(s)
187:             * Schema Comment: a name of a person or tag
188:             */
189:            public void removeName() {
190:                removeAll(NAME);
191:            }
192:
193:            /**
194:             * removes a value
195:             * @param value the value to be removed
196:             * Schema Comment: a name of a person or tag
197:             */
198:            public void removeName(java.lang.String value) {
199:                remove(NAME, value);
200:            }
201:
202:            /**
203:             * removes all values
204:             * Schema Comment: a name of a person or tag
205:             */
206:            public void removeAllName() {
207:                removeAll(NAME);
208:            }
209:
210:            /**
211:             * @param value
212:             * @return true if the model contains a statement (this, NAME, value)
213:             */
214:            public boolean hasName(java.lang.String value) {
215:                return hasValue(NAME, value);
216:            }
217:
218:            /**
219:             * @return true if the model contains a statement (this, NAME, *)
220:             */
221:            public boolean hasName() {
222:                return hasValue(NAME);
223:            }
224:
225:            /**
226:             * adds a value
227:             * @param value the value to be added
228:             * Schema Comment: a name of a person or tag
229:             */
230:            public void addName(java.lang.String value) {
231:                add(NAME, value);
232:            }
233:
234:            /**
235:             * @return all values
236:             * Schema Comment: a name of a person or tag
237:             */
238:            public java.lang.String[] getAllName() {
239:                return (java.lang.String[]) getAll(NAME, java.lang.String.class);
240:            }
241:
242:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.