| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| AttributeSetList | 
  | 
  | 1.5;1.5 | 
| 1 |  /* | |
| 2 |   * Copyright 2007 Sun Microsystems, Inc. | |
| 3 |   * All rights reserved.  You may not modify, use, | |
| 4 |   * reproduce, or distribute this software except in | |
| 5 |   * compliance with  the terms of the License at: | |
| 6 |   * http://developer.sun.com/berkeley_license.html | |
| 7 |   */ | |
| 8 | ||
| 9 | ||
| 10 |  /* | |
| 11 |   * The contents of this file are subject to the terms | |
| 12 |   * of the Common Development and Distribution License | |
| 13 |   * (the "License").  You may not use this file except | |
| 14 |   * in compliance with the License. | |
| 15 |   * | |
| 16 |   * You can obtain a copy of the license at | |
| 17 |   * https://jwsdp.dev.java.net/CDDLv1.0.html | |
| 18 |   * See the License for the specific language governing | |
| 19 |   * permissions and limitations under the License. | |
| 20 |   * | |
| 21 |   * When distributing Covered Code, include this CDDL | |
| 22 |   * HEADER in each file and include the License file at | |
| 23 |   * https://jwsdp.dev.java.net/CDDLv1.0.html  If applicable, | |
| 24 |   * add the following below this CDDL HEADER, with the | |
| 25 |   * fields enclosed by brackets "[]" replaced with your | |
| 26 |   * own identifying information: Portions Copyright [yyyy] | |
| 27 |   * [name of copyright owner] | |
| 28 |   */ | |
| 29 |  package org.kuali.rice.core.xml.dto; | |
| 30 | ||
| 31 |  import java.util.List; | |
| 32 |  import java.util.Vector; | |
| 33 |  import java.util.HashMap; | |
| 34 |  import javax.xml.bind.annotation.XmlRootElement; | |
| 35 |  import javax.xml.bind.annotation.XmlElement; | |
| 36 |  import javax.xml.bind.annotation.XmlType; | |
| 37 | ||
| 38 |  import org.kuali.rice.core.xml.CoreNamespaceConstants; | |
| 39 | ||
| 40 | ||
| 41 | ||
| 42 |  //@XmlRootElement | |
| 43 |  @XmlType(name = "AttributeSetListType", namespace = CoreNamespaceConstants.CORE) | |
| 44 | public class AttributeSetList {  | |
| 45 |      //- this must be a public field for the adapter to function | |
| 46 |      //- When it is public the generated xml uses the variable name | |
| 47 |      //- as the element tag. | |
| 48 |      //- If the entry is not public the generic identifier is used | |
| 49 |      //- as the element tag.  Settter/getter methods would be | |
| 50 |      //- needed. | |
| 51 |          @XmlElement(name = "attribute", namespace = CoreNamespaceConstants.CORE) | |
| 52 |      public List<AttributeEntry> entry; | |
| 53 | ||
| 54 | 0 |      public AttributeSetList() { | 
| 55 | 0 |          entry = new Vector<AttributeEntry>(); | 
| 56 | 0 |      } | 
| 57 | ||
| 58 |      public String toString() { | |
| 59 | 0 |          StringBuilder buf = new StringBuilder(); | 
| 60 | 0 |          int cnt = entry.size(); | 
| 61 | ||
| 62 | 0 |          for (int i = 0; i < cnt; i++) { | 
| 63 | 0 |              buf.append(entry.get(i).toString()); | 
| 64 | 0 |              buf.append("\n"); | 
| 65 | }  | |
| 66 | ||
| 67 | 0 |          return buf.toString(); | 
| 68 | }  | |
| 69 | }  |