01: // You can redistribute this software and/or modify it under the terms of
02: // the Ozone Core License version 1 published by ozone-db.org.
03: //
04: // The original code and portions created by SMB are
05: // Copyright (C) 1997-@year@ by SMB GmbH. All rights reserved.
06: //
07: // $Id: ValueElement.java,v 1.1 2001/12/18 10:31:31 per_nyfelt Exp $
08:
09: package org.ozoneDB.core.xml;
10:
11: import org.xml.sax.*;
12:
13: /**
14: * This class saves all attributes of the valueElement.
15: *
16: * @version $Revision: 1.1 $
17: * @author <a href="http://www.softwarebuero.de">SMB</a>
18: */
19: public class ValueElement implements Consts {
20:
21: //
22: // member
23: //
24:
25: /**
26: * The type of the value.
27: */
28: private String type;
29:
30: /**
31: * The id of the value.
32: */
33: private String id;
34:
35: /**
36: * Value as a String.
37: */
38: private String strValue;
39:
40: //
41: // constructor
42: //
43:
44: /**
45: * @param atts (the attributes)
46: */
47: ValueElement(Attributes atts) {
48: type = atts.getValue(ATTR_TYPE);
49: id = atts.getValue(ATTR_ID);
50: }
51:
52: //
53: // methods
54: //
55:
56: /**
57: */
58: public void setStrValue(String strValue) {
59: this .strValue = strValue;
60: }
61:
62: /**
63: */
64: public String getType() {
65: return type;
66: }
67:
68: /**
69: */
70: public String getId() {
71: return id;
72: }
73:
74: /**
75: */
76: public String getStrValue() {
77: return strValue;
78: }
79:
80: /**
81: */
82: public String toString() {
83: return ("ValueElement: " + type);
84: }
85: }
|