0,0 → 1,33 |
package dongfang.mkt.configuration; |
|
public class StaticByteEntry extends ParameterEntry { |
StaticByteEntry(String name) { |
super(name); |
} |
|
int value; |
|
int getByteCount() { |
return 1; |
} |
|
int getValue() { |
return value; |
} |
|
int setValue(int[] data, int offset) { |
this.value = data[offset]; |
return getByteCount(); |
} |
|
String toStringWithValues() { |
return name + ":\t" + value; |
} |
|
void toXML(StringBuilder result) { |
String s_value; |
s_value = Integer.toString(value); |
result.append(" <parameter name=\"" + name + "\" value=\"" |
+ s_value + "\"/>\n"); |
} |
} |