01: package org.ontoware.semversion.impl;
02:
03: import org.ontoware.rdf2go.model.Model;
04: import org.ontoware.rdf2go.model.node.URI;
05: import org.ontoware.semversion.User;
06:
07: /**
08: * This class was generated by <a
09: * href="http://RDFReactor.ontoware.org">RDFReactor</a> on 05.10.06 00:30 This
10: * class manages access to these properties:
11: * <ul>
12: * <li> Password </li>
13: * <li> Name </li>
14: * </ul>
15: * Schema Comment:
16: *
17: * @todo
18: */
19: public class UserImpl implements User {
20:
21: private org.ontoware.semversion.impl.generated.User user;
22:
23: public UserImpl(org.ontoware.semversion.impl.generated.User user) {
24: this .user = user;
25: }
26:
27: public UserImpl(Model mainModel, URI uri, String name, String pass) {
28: user = new org.ontoware.semversion.impl.generated.User(
29: mainModel, uri, true);
30: setName(name);
31: setPassword(pass);
32: }
33:
34: /* (non-Javadoc)
35: * @see org.ontoware.semversion.impl.IUser#getUser()
36: */
37: public org.ontoware.semversion.impl.generated.User getUser() {
38: return this .user;
39: }
40:
41: /* (non-Javadoc)
42: * @see org.ontoware.semversion.impl.IUser#getPassword()
43: */
44: public java.lang.String getPassword() {
45: return this .user.getPassword();
46: }
47:
48: /* (non-Javadoc)
49: * @see org.ontoware.semversion.impl.IUser#setPassword(java.lang.String)
50: */
51: public void setPassword(java.lang.String value) {
52: this .user.setPassword(value);
53: }
54:
55: /* (non-Javadoc)
56: * @see org.ontoware.semversion.impl.IUser#getName()
57: */
58: public java.lang.String getName() {
59: return this .user.getName();
60: }
61:
62: /* (non-Javadoc)
63: * @see org.ontoware.semversion.impl.IUser#setName(java.lang.String)
64: */
65: public void setName(java.lang.String value) {
66: this .user.setName(value);
67: }
68:
69: public URI getURI() {
70: return this.user.getResource().asURI();
71: }
72:
73: }
|