001 /** 002 * Copyright 2010 The Kuali Foundation Licensed under the 003 * Educational Community License, Version 2.0 (the "License"); you may 004 * not use this file except in compliance with the License. You may 005 * obtain a copy of the License at 006 * 007 * http://www.osedu.org/licenses/ECL-2.0 008 * 009 * Unless required by applicable law or agreed to in writing, 010 * software distributed under the License is distributed on an "AS IS" 011 * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express 012 * or implied. See the License for the specific language governing 013 * permissions and limitations under the License. 014 */ 015 016 // 017 // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, vJAXB 2.0 in JDK 1.6 018 // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> 019 // Any modifications to this file will be lost upon recompilation of the source schema. 020 // Generated on: 2008.10.21 at 02:14:18 PM PDT 021 // 022 023 024 package org.kuali.student.common.dictionary.old.dto; 025 026 import java.io.Serializable; 027 import java.util.ArrayList; 028 import java.util.List; 029 030 import javax.xml.bind.annotation.XmlAccessType; 031 import javax.xml.bind.annotation.XmlAccessorType; 032 import javax.xml.bind.annotation.XmlAttribute; 033 import javax.xml.bind.annotation.XmlElement; 034 035 036 /** 037 * <p>Java class for anonymous complex type. 038 * 039 * <p>The following schema fragment specifies the expected content contained within this class. 040 * 041 * <pre> 042 * <complexType> 043 * <complexContent> 044 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 045 * <sequence> 046 * <element ref="{http://www.dto.dictionary.student.kuali.org}type" maxOccurs="unbounded"/> 047 * </sequence> 048 * <attribute name="objectTypeKey" type="{http://www.w3.org/2001/XMLSchema}string" /> 049 * </restriction> 050 * </complexContent> 051 * </complexType> 052 * </pre> 053 * 054 * 055 */ 056 @XmlAccessorType(XmlAccessType.FIELD) 057 public class ObjectStructure implements Serializable{ 058 059 private static final long serialVersionUID = 1L; 060 061 @XmlAttribute(required = true) 062 protected String key; 063 064 @XmlAttribute 065 protected String id; 066 067 @XmlElement(required = true) 068 protected List<Type> type; 069 070 @XmlElement 071 protected String name; 072 073 @XmlElement 074 protected String desc; 075 076 /** 077 * Gets the value of the type property. 078 * 079 * <p> 080 * This accessor method returns a reference to the live list, 081 * not a snapshot. Therefore any modification you make to the 082 * returned list will be present inside the JAXB object. 083 * This is why there is not a <CODE>set</CODE> method for the type property. 084 * 085 * <p> 086 * For example, to add a new item, do as follows: 087 * <pre> 088 * getType().add(newItem); 089 * </pre> 090 * 091 * 092 * <p> 093 * Objects of the following type(s) are allowed in the list 094 * {@link Type } 095 * 096 * 097 */ 098 public List<Type> getType() { 099 if (type == null) { 100 type = new ArrayList<Type>(); 101 } 102 return this.type; 103 } 104 105 /** 106 * Gets the value of the key property. 107 * 108 * @return 109 * possible object is 110 * {@link String } 111 * 112 */ 113 public String getKey() { 114 return key; 115 } 116 117 /** 118 * Sets the value of the key property. 119 * 120 * @param value 121 * allowed object is 122 * {@link String } 123 * 124 */ 125 public void setKey(String value) { 126 this.key = value; 127 } 128 129 public void setType(List<Type> type) { 130 this.type = type; 131 } 132 133 public String getId() { 134 return id; 135 } 136 137 public void setId(String id) { 138 this.id = id; 139 } 140 141 public String getName() { 142 return name; 143 } 144 145 public void setName(String name) { 146 this.name = name; 147 } 148 149 public String getDesc() { 150 return desc; 151 } 152 153 public void setDesc(String desc) { 154 this.desc = desc; 155 } 156 }