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.XmlAnyElement; 26 import javax.xml.bind.annotation.XmlAttribute; 27 import javax.xml.bind.annotation.XmlID; 28 import javax.xml.bind.annotation.XmlMixed; 29 import javax.xml.bind.annotation.XmlSchemaType; 30 import javax.xml.bind.annotation.XmlType; 31 import javax.xml.bind.annotation.adapters.CollapsedStringAdapter; 32 import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter; 33 import org.w3c.dom.Element; 34 35 36 /** 37 * <p>Java class for ObjectType complex type. 38 * 39 * <p>The following schema fragment specifies the expected content contained within this class. 40 * 41 * <pre> 42 * <complexType name="ObjectType"> 43 * <complexContent> 44 * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> 45 * <sequence maxOccurs="unbounded" minOccurs="0"> 46 * <any/> 47 * </sequence> 48 * <attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" /> 49 * <attribute name="MimeType" type="{http://www.w3.org/2001/XMLSchema}string" /> 50 * <attribute name="Encoding" type="{http://www.w3.org/2001/XMLSchema}anyURI" /> 51 * </restriction> 52 * </complexContent> 53 * </complexType> 54 * </pre> 55 * 56 * 57 */ 58 @XmlAccessorType(XmlAccessType.FIELD) 59 @XmlType(name = "ObjectType", propOrder = { 60 "content" 61 }) 62 public class ObjectType { 63 64 @XmlMixed 65 @XmlAnyElement(lax = true) 66 protected List<Object> content; 67 @XmlAttribute(name = "Id") 68 @XmlJavaTypeAdapter(CollapsedStringAdapter.class) 69 @XmlID 70 @XmlSchemaType(name = "ID") 71 protected String id; 72 @XmlAttribute(name = "MimeType") 73 protected String mimeType; 74 @XmlAttribute(name = "Encoding") 75 @XmlSchemaType(name = "anyURI") 76 protected String encoding; 77 78 /** 79 * Gets the value of the content property. 80 * 81 * <p> 82 * This accessor method returns a reference to the live list, 83 * not a snapshot. Therefore any modification you make to the 84 * returned list will be present inside the JAXB object. 85 * This is why there is not a <CODE>set</CODE> method for the content property. 86 * 87 * <p> 88 * For example, to add a new item, do as follows: 89 * <pre> 90 * getContent().add(newItem); 91 * </pre> 92 * 93 * 94 * <p> 95 * Objects of the following type(s) are allowed in the list 96 * {@link String } 97 * {@link Object } 98 * {@link Element } 99 * 100 * 101 */ 102 public List<Object> getContent() { 103 if (content == null) { 104 content = new ArrayList<Object>(); 105 } 106 return this.content; 107 } 108 109 /** 110 * Gets the value of the id property. 111 * 112 * @return 113 * possible object is 114 * {@link String } 115 * 116 */ 117 public String getId() { 118 return id; 119 } 120 121 /** 122 * Sets the value of the id property. 123 * 124 * @param value 125 * allowed object is 126 * {@link String } 127 * 128 */ 129 public void setId(String value) { 130 this.id = value; 131 } 132 133 /** 134 * Gets the value of the mimeType property. 135 * 136 * @return 137 * possible object is 138 * {@link String } 139 * 140 */ 141 public String getMimeType() { 142 return mimeType; 143 } 144 145 /** 146 * Sets the value of the mimeType property. 147 * 148 * @param value 149 * allowed object is 150 * {@link String } 151 * 152 */ 153 public void setMimeType(String value) { 154 this.mimeType = value; 155 } 156 157 /** 158 * Gets the value of the encoding property. 159 * 160 * @return 161 * possible object is 162 * {@link String } 163 * 164 */ 165 public String getEncoding() { 166 return encoding; 167 } 168 169 /** 170 * Sets the value of the encoding property. 171 * 172 * @param value 173 * allowed object is 174 * {@link String } 175 * 176 */ 177 public void setEncoding(String value) { 178 this.encoding = value; 179 } 180 181 }