Revision 187 org.gvsig.toolbox/trunk/org.gvsig.toolbox/org.gvsig.toolbox.core/src/main/java/es/unex/sextante/outputs/OutputVectorLayer.java

View differences:

OutputVectorLayer.java
5 5

  
6 6
/**
7 7
 * An output representing a vector layer
8
 * 
8
 *
9 9
 * @author volaya
10
 * 
10
 *
11 11
 */
12 12
public class OutputVectorLayer
13 13
         extends
......
19 19
   public static final int SHAPE_TYPE_UNDEFINED = -1;
20 20

  
21 21
   private int             m_iShapeType;
22
   private int             m_subType;
22 23
   private String          m_sInputLayerToOverwrite;
23 24

  
24 25

  
......
47 48

  
48 49
   /**
49 50
    * Returns the shape type of this output vector layer
50
    * 
51
    *
51 52
    * @return the shape type of this output vector layer
52 53
    */
53 54
   public int getShapeType() {
......
59 60

  
60 61
   /**
61 62
    * Sets the shape type of this output vector layer
62
    * 
63
    *
63 64
    * @param shapeType
64 65
    *                The shape type of this output
65 66
    */
......
76 77
      final Output out = super.getNewInstance();
77 78
      ((OutputVectorLayer) out).setShapeType(m_iShapeType);
78 79
      ((OutputVectorLayer) out).setInputLayerToOverwrite(m_sInputLayerToOverwrite);
80
      ((OutputVectorLayer) out).setSubType(m_subType);
79 81

  
80 82
      return out;
81 83

  
......
88 90
      super.setObjectData(output);
89 91
      if (output instanceof OutputVectorLayer) {
90 92
         this.setShapeType(((OutputVectorLayer) output).getShapeType());
93
         this.setSubType(((OutputVectorLayer) output).getSubType());
91 94
      }
92 95

  
93 96
   }
......
103 106

  
104 107
   /**
105 108
    * Returns the name of the input parameter that this output can overwrite
106
    * 
109
    *
107 110
    * @return the name of the input parameter that this output can overwrite
108 111
    */
109 112
   public String getInputLayerToOverwrite() {
......
115 118

  
116 119
   /**
117 120
    * Sets the name of the input parameter that this output can overwrite. Returns null if it cannot overwrite.
118
    * 
121
    *
119 122
    * @param inputLayerToOverwrite
120 123
    *                the name of the input parameter that this output can overwrite
121 124
    */
......
133 136
   }
134 137

  
135 138

  
139
/**
140
 * @return the m_subType
141
 */
142
public int getSubType() {
143
    return m_subType;
136 144
}
145

  
146

  
147
/**
148
 * @param m_subType the m_subType to set
149
 */
150
public void setSubType(int m_subType) {
151
    this.m_subType = m_subType;
152
}
153

  
154

  
155
}

Also available in: Unified diff