View Javadoc
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 just a container class. Its only purpose ist to put the inner 22 * classes in the right package. 23 * 24 * @author <a href="mailto:carsten.krebs@team-konzept.de">Carsten Krebs</a> 25 * @version $Revision: 1.2 $ 26 * 27 */ 28 public final class Collections { 29 30 /*** 31 * {@inheritDoc} 32 * 33 * @author <a href="mailto:carsten.krebs@team-konzept.de">Carsten Krebs</a> 34 * @version $Revision: 1.2 $ 35 * 36 */ 37 public static class UnmodifiableSetXMLBeanInfo extends SetXMLBeanInfo { 38 } 39 40 /*** 41 * This is the default XMLBeanInfo defining how a collection will be 42 * represented. 43 * <p> 44 * Every java.util.Collections$UnmodifiableCollection object will be 45 * represented as follows: 46 * <p> 47 * <ul> 48 * <li>the element content is a collection of elements. Each element is 49 * named by the name returned by the getItemName() method of the 50 * corresponding XMLBeanInfo object. Also the item itself is 51 * represened by means of the corresponding XMLBeanInfo object. 52 * <p> 53 * Example: A collection of integer-objects will be represented like 54 * this: 55 * <p> 56 * <items> <item>1</item> <item>2</item> 57 * <item>3</item> </items> 58 * <p> 59 * whereby the sourrounding element <items> may differ. 60 * </li> 61 * <li>as empty attribute value</li> 62 * <li>which contributes no attributes</li> 63 * <li>if the object is an item in a collection, the surrounding element 64 * name is the item name specified by COLLECTION_ITEM_NAME</li> 65 * </ul> 66 * 67 * @author <a href="mailto:carsten.krebs@team-konzept.de">Carsten Krebs</a> 68 * @version $Revision: 1.2 $ 69 * 70 * @see CollectionXMLBeanInfo#COLLECTION_ITEM_NAME 71 * 72 */ 73 public static class UnmodifiableCollectionXMLBeanInfo 74 extends CollectionXMLBeanInfo { 75 } 76 77 /*** 78 * This is the default XMLBeanInfo defining how a list will be 79 * represented. 80 * <p> 81 * Every java.util.List object will be represented as follows: 82 * <p> 83 * <ul> 84 * <li>the element content is a collection of elements. Each element is 85 * named by the name returned by the getItemName() method of the 86 * corresponding XMLBeanInfo object. Also the item itself is 87 * represented by means of the corresponding XMLBeanInfo object. 88 * <p> 89 * Example: A collection of integer-objects will be represented like 90 * this: 91 * <p> 92 * <items> <item>1</item> <item>2</item> 93 * <item>3</item> </items> 94 * <p> 95 * whereby the sourrounding element <items> may differ. 96 * </li> 97 * <li>as empty attribute value</li> 98 * <li>which contributes no attributes</li> 99 * <li>if the object is an item in a collection, the surrounding element 100 * name is the item name specified by 101 * CollectionXMLBeanInfo#COLLECTION_ITEM_NAME</li> 102 * </ul> 103 * 104 * @author <a href="mailto:carsten.krebs@team-konzept.de">Carsten Krebs</a> 105 * @version $Revision: 1.2 $ 106 * 107 * @see CollectionXMLBeanInfo#COLLECTION_ITEM_NAME 108 * 109 */ 110 public static class UnmodifiableListXMLBeanInfo extends ListXMLBeanInfo { 111 } 112 113 /*** 114 * {@inheritDoc} 115 * 116 * @author <a href="mailto:carsten.krebs@team-konzept.de">Carsten Krebs</a> 117 * @version $Revision: 1.2 $ 118 * 119 */ 120 public static class UnmodifiableMapXMLBeanInfo extends MapXMLBeanInfo { 121 } 122 123 /*** 124 * {@inheritDoc} 125 * 126 * @author <a href="mailto:carsten.krebs@team-konzept.de">Carsten Krebs</a> 127 * @version $Revision: 1.2 $ 128 * 129 */ 130 public static class EmptyListXMLBeanInfo extends ListXMLBeanInfo { 131 } 132 }

This page was automatically generated by Maven