1 /*
2 * Copyright (C) 2002 Carsten Krebs (Team-Konzept GmbH & Co.KG)
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 2.1 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 package com.teamkonzept.dom4jb.beans.infos;
19
20 /***
21 * This is the default XMLBeanInfo defining how a class object will be
22 * represented.
23 * <p>
24 * Every java.lang.Class object will be represented as follows:
25 * <p>
26 * <ul>
27 * <li>as empty element content</li>
28 * <li>as empty attribute value</li>
29 * <li>which contributes no attributes</li>
30 * <li>if the object is an item in a collection, the surrounding element name
31 * is the item name specified by CLASS_ITEM_NAME</li>
32 * </ul>
33 *
34 * @author <a href="mailto:carsten.krebs@team-konzept.de">Carsten Krebs</a>
35 * @version $Revision: 1.2 $
36 *
37 * @see #CLASS_ITEM_NAME
38 *
39 */
40 public final class ClassXMLBeanInfo extends ObjectXMLBeanInfo {
41
42 /***
43 * the item name, returned by getItemName().
44 * @see #getItemName()
45 */
46 public static final String CLASS_ITEM_NAME = "class";
47
48 /***
49 * @see com.teamkonzept.dom4jb.beans.XMLBeanInfo#getItemName()
50 */
51 public String getItemName() {
52 return ClassXMLBeanInfo.CLASS_ITEM_NAME;
53 }
54 }
This page was automatically generated by Maven