| 1 | |
|
| 2 | |
|
| 3 | |
|
| 4 | |
|
| 5 | |
|
| 6 | |
|
| 7 | |
|
| 8 | |
|
| 9 | |
|
| 10 | |
|
| 11 | |
|
| 12 | |
|
| 13 | |
|
| 14 | |
|
| 15 | |
|
| 16 | |
package org.kuali.student.r2.core.room.dto; |
| 17 | |
|
| 18 | |
import org.kuali.student.r2.common.dto.HasAttributesAndMetaInfo; |
| 19 | |
import org.kuali.student.r2.core.room.infc.RoomFixedResource; |
| 20 | |
import org.w3c.dom.Element; |
| 21 | |
|
| 22 | |
import javax.xml.bind.annotation.*; |
| 23 | |
import java.io.Serializable; |
| 24 | |
import java.util.List; |
| 25 | |
|
| 26 | |
|
| 27 | |
|
| 28 | |
|
| 29 | |
|
| 30 | |
|
| 31 | |
@XmlAccessorType(XmlAccessType.FIELD) |
| 32 | |
@XmlType(name = "RoomFixedResourceInfo", propOrder = {"id", "quantity", "resourceTypeKey", "meta", "attributes", "_futureElements"}) |
| 33 | |
|
| 34 | |
public class RoomFixedResourceInfo |
| 35 | |
extends HasAttributesAndMetaInfo |
| 36 | |
implements RoomFixedResource, Serializable { |
| 37 | |
|
| 38 | |
@XmlElement |
| 39 | |
private String id; |
| 40 | |
|
| 41 | |
@XmlElement |
| 42 | |
private Integer quantity; |
| 43 | |
|
| 44 | |
@XmlElement |
| 45 | |
private String resourceTypeKey; |
| 46 | |
|
| 47 | |
@XmlAnyElement |
| 48 | |
private List<Element> _futureElements; |
| 49 | |
|
| 50 | 0 | public RoomFixedResourceInfo() { |
| 51 | 0 | } |
| 52 | |
|
| 53 | 0 | public RoomFixedResourceInfo(RoomFixedResource roomFixedResource) { |
| 54 | 0 | if (null != roomFixedResource) { |
| 55 | 0 | this.id = roomFixedResource.getId(); |
| 56 | 0 | this.quantity = roomFixedResource.getQuantity(); |
| 57 | 0 | this.resourceTypeKey = roomFixedResource.getResourceTypeKey(); |
| 58 | |
} |
| 59 | 0 | } |
| 60 | |
|
| 61 | |
@Override |
| 62 | |
public String getId() { |
| 63 | 0 | return this.id; |
| 64 | |
} |
| 65 | |
|
| 66 | |
public void setId(String id) { |
| 67 | 0 | this.id = id; |
| 68 | 0 | } |
| 69 | |
|
| 70 | |
@Override |
| 71 | |
public Integer getQuantity() { |
| 72 | 0 | return this.quantity; |
| 73 | |
} |
| 74 | |
|
| 75 | |
@Override |
| 76 | |
public String getResourceTypeKey() { |
| 77 | 0 | return this.resourceTypeKey; |
| 78 | |
} |
| 79 | |
} |