Last change
on this file since 437 was
437,
checked in by Mateusz Poszwa, 9 years ago
|
Added Framclipse as developed by Bartosz Kukawka and Tomek Maciejewski in 2010
|
-
Property svn:eol-style set to
native
|
File size:
860 bytes
|
Line | |
---|
1 | package com.framsticks.framclipse.script.context; |
---|
2 | |
---|
3 | import java.util.Collections; |
---|
4 | import java.util.List; |
---|
5 | |
---|
6 | import com.thoughtworks.xstream.annotations.XStreamAsAttribute; |
---|
7 | import com.thoughtworks.xstream.annotations.XStreamImplicit; |
---|
8 | |
---|
9 | public class Code { |
---|
10 | |
---|
11 | @XStreamAsAttribute |
---|
12 | private String object; |
---|
13 | |
---|
14 | @XStreamAsAttribute |
---|
15 | private String member; |
---|
16 | |
---|
17 | @XStreamImplicit(itemFieldName = "context") |
---|
18 | private List<Context> contexts; |
---|
19 | |
---|
20 | public String getObject() { |
---|
21 | return object; |
---|
22 | } |
---|
23 | |
---|
24 | public void setObject(String object) { |
---|
25 | this.object = object; |
---|
26 | } |
---|
27 | |
---|
28 | public String getMember() { |
---|
29 | return member; |
---|
30 | } |
---|
31 | |
---|
32 | public void setMember(String member) { |
---|
33 | this.member = member; |
---|
34 | } |
---|
35 | |
---|
36 | public List<Context> getContexts() { |
---|
37 | return contexts != null ? contexts : Collections.<Context> emptyList(); |
---|
38 | } |
---|
39 | |
---|
40 | public void setContexts(List<Context> contexts) { |
---|
41 | this.contexts = contexts; |
---|
42 | } |
---|
43 | |
---|
44 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.