01: /**
02: * Copyright (C) 2006 NetMind Consulting Bt.
03: *
04: * This library is free software; you can redistribute it and/or
05: * modify it under the terms of the GNU Lesser General Public
06: * License as published by the Free Software Foundation; either
07: * version 3 of the License, or (at your option) any later version.
08: *
09: * This library is distributed in the hope that it will be useful,
10: * but WITHOUT ANY WARRANTY; without even the implied warranty of
11: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12: * Lesser General Public License for more details.
13: *
14: * You should have received a copy of the GNU Lesser General Public
15: * License along with this library; if not, write to the Free Software
16: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17: */package hu.netmind.persistence.parser;
18:
19: /**
20: * Specifies a simple attribute (part of a term). It has three attributes:
21: * <ul>
22: * <li><strong>identifier</strong>: The identifier of the attribute (name).</li>
23: * <li><strong>className</strong>: The class of this attribute as given
24: * by the term.</li>
25: * <li><strong>keyname</strong>: If this attribute is a map, then there
26: * can be a key name to this attribute.</li>
27: * </ul>
28: * @author Brautigam Robert
29: * @version Revision: $Revision$
30: */
31: public class AttributeSpecifier {
32: private String identifier;
33: private String className;
34: private String keyname;
35:
36: public AttributeSpecifier(String identifier, String className,
37: String keyname) {
38: setIdentifier(identifier);
39: setClassName(className);
40: setKeyname(keyname);
41: }
42:
43: public String getIdentifier() {
44: return identifier;
45: }
46:
47: public void setIdentifier(String identifier) {
48: this .identifier = identifier;
49: }
50:
51: public String getClassName() {
52: return className;
53: }
54:
55: public void setClassName(String className) {
56: this .className = className;
57: }
58:
59: public String getKeyname() {
60: return keyname;
61: }
62:
63: public void setKeyname(String keyname) {
64: this.keyname = keyname;
65: }
66:
67: }
|