API Overview API Index Package Overview Direct link to this page
JavaOnTracks 0.1.2
  net.jot.web. JOTFlowDirective View Javadoc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63

/*
------------------------------------
JavaOnTracks          Thibaut Colar
tcolar-jot AT colar DOT net
Artistic Licence 2.0
http://www.javaontracks.net
------------------------------------
 */
package net.jot.web;

import java.util.Vector;

/**
 * Object representation of a flow directive, from flow.conf
 * @author thibautc
 */
public class JOTFlowDirective extends Vector
{

  private static final long serialVersionUID = 1L;
  public static final int UNSET = 0;
  public static final int DIRECTIVE_REQUEST = 1;
  public static final int DIRECTIVE_CONTROLLER = 2;
  public static final int DIRECTIVE_CONTROLLER_BUNDLE = 3;
  //public static final int DIRECTIVE_FORM=4;

  public int type = UNSET;
  public String[] args = null;
  public Vector markersToKeep = new Vector();
  private int lineNumber = 0;

  public JOTFlowDirective(int lineNumber, int type, String[] args)
  {
    this.lineNumber = lineNumber;
    this.type = type;
    this.args = args;
  }

  public int getLineNumber()
  {
    return lineNumber;
  }

  public int getType()
  {
    return type;
  }

  public String[] getArgs()
  {
    return args;
  }

  public void keepMarker(String markerName)
  {
    markersToKeep.add(markerName);
  }

  public Vector getMarkersToKeep()
  {
    return markersToKeep;
  }
}

Generated By: JavaOnTracks Doclet 0.1.5     ©Thibaut Colar