| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| PGPDataType | 
 | 
 | 2.0;2 | 
| 1 | ||
| 2 |  package org.kuali.student.security.xmldsig.dto; | |
| 3 | ||
| 4 |  import java.util.ArrayList; | |
| 5 |  import java.util.List; | |
| 6 |  import javax.xml.bind.JAXBElement; | |
| 7 |  import javax.xml.bind.annotation.XmlAccessType; | |
| 8 |  import javax.xml.bind.annotation.XmlAccessorType; | |
| 9 |  import javax.xml.bind.annotation.XmlAnyElement; | |
| 10 |  import javax.xml.bind.annotation.XmlElementRef; | |
| 11 |  import javax.xml.bind.annotation.XmlElementRefs; | |
| 12 |  import javax.xml.bind.annotation.XmlType; | |
| 13 |  import org.w3c.dom.Element; | |
| 14 | ||
| 15 | ||
| 16 |  /** | |
| 17 |   * <p>Java class for PGPDataType complex type. | |
| 18 |   *  | |
| 19 |   * <p>The following schema fragment specifies the expected content contained within this class. | |
| 20 |   *  | |
| 21 |   * <pre> | |
| 22 |   * <complexType name="PGPDataType"> | |
| 23 |   *   <complexContent> | |
| 24 |   *     <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> | |
| 25 |   *       <choice> | |
| 26 |   *         <sequence> | |
| 27 |   *           <element name="PGPKeyID" type="{http://www.w3.org/2001/XMLSchema}base64Binary"/> | |
| 28 |   *           <element name="PGPKeyPacket" type="{http://www.w3.org/2001/XMLSchema}base64Binary" minOccurs="0"/> | |
| 29 |   *           <any processContents='lax' namespace='##other' maxOccurs="unbounded" minOccurs="0"/> | |
| 30 |   *         </sequence> | |
| 31 |   *         <sequence> | |
| 32 |   *           <element name="PGPKeyPacket" type="{http://www.w3.org/2001/XMLSchema}base64Binary"/> | |
| 33 |   *           <any processContents='lax' namespace='##other' maxOccurs="unbounded" minOccurs="0"/> | |
| 34 |   *         </sequence> | |
| 35 |   *       </choice> | |
| 36 |   *     </restriction> | |
| 37 |   *   </complexContent> | |
| 38 |   * </complexType> | |
| 39 |   * </pre> | |
| 40 |   *  | |
| 41 |   *  | |
| 42 |   */ | |
| 43 | @XmlAccessorType(XmlAccessType.FIELD) | |
| 44 |  @XmlType(name = "PGPDataType", propOrder = { | |
| 45 |      "content" | |
| 46 | }) | |
| 47 | 0 |  public class PGPDataType { | 
| 48 | ||
| 49 |      @XmlElementRefs({ | |
| 50 | @XmlElementRef(name = "PGPKeyID", namespace = "http://www.w3.org/2000/09/xmldsig#", type = JAXBElement.class), | |
| 51 | @XmlElementRef(name = "PGPKeyPacket", namespace = "http://www.w3.org/2000/09/xmldsig#", type = JAXBElement.class) | |
| 52 | }) | |
| 53 |      @XmlAnyElement(lax = true) | |
| 54 |      protected List<Object> content; | |
| 55 | ||
| 56 |      /** | |
| 57 |       * Gets the rest of the content model.  | |
| 58 |       *  | |
| 59 |       * <p> | |
| 60 |       * You are getting this "catch-all" property because of the following reason:  | |
| 61 |       * The field name "PGPKeyPacket" is used by two different parts of a schema. See:  | |
| 62 |       * line 0 of http://www.w3.org/TR/xmldsig-core/xmldsig-core-schema.xsd | |
| 63 |       * line 0 of http://www.w3.org/TR/xmldsig-core/xmldsig-core-schema.xsd | |
| 64 |       * <p> | |
| 65 |       * To get rid of this property, apply a property customization to one  | |
| 66 |       * of both of the following declarations to change their names:  | |
| 67 |       * Gets the value of the content property. | |
| 68 |       *  | |
| 69 |       * <p> | |
| 70 |       * This accessor method returns a reference to the live list, | |
| 71 |       * not a snapshot. Therefore any modification you make to the | |
| 72 |       * returned list will be present inside the JAXB object. | |
| 73 |       * This is why there is not a <CODE>set</CODE> method for the content property. | |
| 74 |       *  | |
| 75 |       * <p> | |
| 76 |       * For example, to add a new item, do as follows: | |
| 77 |       * <pre> | |
| 78 |       *    getContent().add(newItem); | |
| 79 |       * </pre> | |
| 80 |       *  | |
| 81 |       *  | |
| 82 |       * <p> | |
| 83 |       * Objects of the following type(s) are allowed in the list | |
| 84 |       * {@link Object } | |
| 85 |       * {@link JAXBElement }{@code <}{@link byte[]}{@code >} | |
| 86 |       * {@link Element } | |
| 87 |       * {@link JAXBElement }{@code <}{@link byte[]}{@code >} | |
| 88 |       *  | |
| 89 |       *  | |
| 90 |       */ | |
| 91 |      public List<Object> getContent() { | |
| 92 | 0 |          if (content == null) { | 
| 93 | 0 |              content = new ArrayList<Object>(); | 
| 94 | } | |
| 95 | 0 |          return this.content; | 
| 96 | } | |
| 97 | ||
| 98 | } |