1 /* 2 * Copyright 2001-2008 The Apache Software Foundation. 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 * 16 */ 17 18 19 package org.w3._2000._09.xmldsig_; 20 21 import java.util.ArrayList; 22 import java.util.List; 23 import javax.xml.bind.annotation.XmlAccessType; 24 import javax.xml.bind.annotation.XmlAccessorType; 25 import javax.xml.bind.annotation.XmlAttribute; 26 import javax.xml.bind.annotation.XmlElement; 27 import javax.xml.bind.annotation.XmlID; 28 import javax.xml.bind.annotation.XmlSchemaType; 29 import javax.xml.bind.annotation.XmlType; 30 import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; 31 import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; 32 33 34 /** 35 * <p>Java class for ManifestType complex type. 36 * 37 * <p>The following schema fragment specifies the expected content contained within this class. 38 * 39 * <pre> 40 * <complexType name="ManifestType"> 41 * <complexContent> 42 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 43 * <sequence> 44 * <element ref="{http://www.w3.org/2000/09/xmldsig#}Reference" maxOccurs="unbounded"/> 45 * </sequence> 46 * <attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" /> 47 * </restriction> 48 * </complexContent> 49 * </complexType> 50 * </pre> 51 * 52 * 53 */ 54 @XmlAccessorType(XmlAccessType.FIELD) 55 @XmlType(name = "ManifestType", propOrder = { 56 "reference" 57 }) 58 public class ManifestType { 59 60 @XmlElement(name = "Reference", required = true) 61 protected List<ReferenceType> reference; 62 @XmlAttribute(name = "Id") 63 @XmlJavaTypeAdapter(CollapsedStringAdapter.class) 64 @XmlID 65 @XmlSchemaType(name = "ID") 66 protected String id; 67 68 /** 69 * Gets the value of the reference property. 70 * 71 * <p> 72 * This accessor method returns a reference to the live list, 73 * not a snapshot. Therefore any modification you make to the 74 * returned list will be present inside the JAXB object. 75 * This is why there is not a <CODE>set</CODE> method for the reference property. 76 * 77 * <p> 78 * For example, to add a new item, do as follows: 79 * <pre> 80 * getReference().add(newItem); 81 * </pre> 82 * 83 * 84 * <p> 85 * Objects of the following type(s) are allowed in the list 86 * {@link ReferenceType } 87 * 88 * 89 */ 90 public List<ReferenceType> getReference() { 91 if (reference == null) { 92 reference = new ArrayList<ReferenceType>(); 93 } 94 return this.reference; 95 } 96 97 /** 98 * Gets the value of the id property. 99 * 100 * @return 101 * possible object is 102 * {@link String } 103 * 104 */ 105 public String getId() { 106 return id; 107 } 108 109 /** 110 * Sets the value of the id property. 111 * 112 * @param value 113 * allowed object is 114 * {@link String } 115 * 116 */ 117 public void setId(String value) { 118 this.id = value; 119 } 120 121 }