Project

General

Profile

« Previous | Next » 

Revision 3144

As part of a patch fix for:

http://bugzilla.ecoinformatics.org/show_bug.cgi?id=2469

I've added the complimentary setter methods to the getter methods
that are already present in the class:

setNodeId()
setNodeName()
setParentNodeId()
setNodePrefix()
setNodeIndex()
setNodeType()
setNodeData()
setNodeDataNumerical()

Only a couple of these methods are used in DocumentImpl.java, but I thought
I'd round out the rest of them.

View differences:

src/edu/ucsb/nceas/metacat/NodeRecord.java
111 111
  {
112 112
    return nodedatanumerical;
113 113
  }
114
  
115
  /** Setter methods **/
116
  
117
  /**
118
   * A method used to set the node id of the current node
119
   *
120
   * @param id  the new value of the id
121
   */
122
  public void setNodeId (long id){
123
    this.nodeid = id;
124
  }
125
  
126
  /**
127
   * A method used to set the node parent id of the current node
128
   *
129
   * @param parentid  the new value of the parent id
130
   */
131
  public void setParentNodeId (long parentid){
132
    this.parentnodeid = parentid;
133
  }
134
  
135
  /**
136
   * A method used to set the node name of the current node
137
   *
138
   * @param name  the new value of the node name
139
   */
140
  public void setNodeName (String name){
141
    this.nodename = name;
142
  }
143
  
144
  /**
145
   * A method used to set the node prefix of the current node
146
   *
147
   * @param prefix  the new value of the node prefix
148
   */
149
  public void setNodePrefix (String prefix){
150
    this.nodeprefix = prefix;
151
  }
152
  
153
  /**
154
   * A method used to set the node index of the current node
155
   *
156
   * @param index  the new value of the node index
157
   */
158
  public void setNodeIndex (long index){
159
    this.nodeindex = index;
160
  }
161
  
162
  /**
163
   * A method used to set the node type of the current node
164
   *
165
   * @param type  the new value of the node type
166
   */ 
167
  public void setNodeType (String type){
168
    this.nodetype = type;
169
  }
170
  
171
  /**
172
   * A method used to set the node data of the current node
173
   *
174
   * @param data  the new value of the node data
175
   */
176
  public void setNodeData (String data){
177
    this.nodedata = data;
178
  }
179
  
180
  /**
181
   * A method used to set the numerical node data of the current node
182
   *
183
   * @param datanumerical  the new value of the numerical node data
184
   */     
185
  public void setNodeDataNumerical (float datanumerical){
186
    this.nodedatanumerical = datanumerical;
187
  }
188
  
114 189
  /** Method compare two records */
115 190
  public boolean contentEquals(NodeRecord record)
116 191
  {

Also available in: Unified diff