PageRenderTime 22ms CodeModel.GetById 16ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 1ms

/hudson-core/src/main/java/hudson/matrix/TextAxis.java

http://github.com/hudson/hudson
Java | 34 lines | 23 code | 6 blank | 5 comment | 0 complexity | 948c509736591f03c3206d2c0c949d6c MD5 | raw file
 1package hudson.matrix;
 2
 3import hudson.Extension;
 4import org.kohsuke.stapler.DataBoundConstructor;
 5
 6import java.util.List;
 7
 8/**
 9 * User-defined plain text axis.
10 * 
11 * @author Kohsuke Kawaguchi
12 */
13public class TextAxis extends Axis {
14    public TextAxis(String name, List<String> values) {
15        super(name, values);
16    }
17
18    public TextAxis(String name, String... values) {
19        super(name, values);
20    }
21
22    @DataBoundConstructor
23    public TextAxis(String name, String valueString) {
24        super(name, valueString);
25    }
26
27    @Extension
28    public static class DescriptorImpl extends AxisDescriptor {
29        @Override
30        public String getDisplayName() {
31            return Messages.TextArea_DisplayName();
32        }
33    }
34}