source: java/main/src/main/java/com/framsticks/test/TestChild.java @ 193

Last change on this file since 193 was 193, checked in by Maciej Komosinski, 10 years ago

Set svn:eol-style native for all textual files

  • Property svn:eol-style set to native
File size: 745 bytes
Line 
1package com.framsticks.test;
2
3import com.framsticks.params.AbstractUniqueObject;
4import com.framsticks.params.annotations.FramsClassAnnotation;
5import com.framsticks.params.annotations.ParamAnnotation;
6
7@FramsClassAnnotation
8public class TestChild extends AbstractUniqueObject {
9
10        protected String name = "child";
11
12        protected TestClass parent;
13
14        /**
15         *
16         */
17        public TestChild() {
18        }
19
20        /**
21         * @return the name
22         */
23        @ParamAnnotation
24        public String getName() {
25                return name;
26        }
27
28        /**00:10:00
29         * @param name the name to set
30         */
31        @ParamAnnotation
32        public void setName(String name) {
33                this.name = name;
34                if (parent != null) {
35                        parent.children.modify(this);
36                }
37        }
38
39        @Override
40        public String toString() {
41                return "test child " + name;
42        }
43
44}
Note: See TracBrowser for help on using the repository browser.