| 1 | /** |
| 2 | * Copyright (C) 2006 NetMind Consulting Bt. |
| 3 | * |
| 4 | * This library is free software; you can redistribute it and/or |
| 5 | * modify it under the terms of the GNU Lesser General Public |
| 6 | * License as published by the Free Software Foundation; either |
| 7 | * version 3 of the License, or (at your option) any later version. |
| 8 | * |
| 9 | * 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 | */ |
| 18 | |
| 19 | package hu.netmind.beankeeper.parser; |
| 20 | |
| 21 | /** |
| 22 | * Specifies a simple attribute (part of a term). It has three attributes: |
| 23 | * <ul> |
| 24 | * <li><strong>identifier</strong>: The identifier of the attribute (name).</li> |
| 25 | * <li><strong>className</strong>: The class of this attribute as given |
| 26 | * by the term.</li> |
| 27 | * <li><strong>keyname</strong>: If this attribute is a map, then there |
| 28 | * can be a key name to this attribute.</li> |
| 29 | * </ul> |
| 30 | * @author Brautigam Robert |
| 31 | * @version Revision: $Revision$ |
| 32 | */ |
| 33 | public class AttributeSpecifier |
| 34 | { |
| 35 | private String identifier; |
| 36 | private String className; |
| 37 | private String keyname; |
| 38 | |
| 39 | public AttributeSpecifier(String identifier, String className, String keyname) |
| 40 | { |
| 41 | setIdentifier(identifier); |
| 42 | setClassName(className); |
| 43 | setKeyname(keyname); |
| 44 | } |
| 45 | |
| 46 | public String getIdentifier() |
| 47 | { |
| 48 | return identifier; |
| 49 | } |
| 50 | public void setIdentifier(String identifier) |
| 51 | { |
| 52 | this.identifier=identifier; |
| 53 | } |
| 54 | |
| 55 | public String getClassName() |
| 56 | { |
| 57 | return className; |
| 58 | } |
| 59 | public void setClassName(String className) |
| 60 | { |
| 61 | this.className=className; |
| 62 | } |
| 63 | |
| 64 | public String getKeyname() |
| 65 | { |
| 66 | return keyname; |
| 67 | } |
| 68 | public void setKeyname(String keyname) |
| 69 | { |
| 70 | this.keyname=keyname; |
| 71 | } |
| 72 | |
| 73 | } |
| 74 | |
| 75 | |