Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
  // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.11 
  // See <a href=""></a> 
  // Any modifications to this file will be lost upon recompilation of the source schema. 
  // Generated on: 2015.01.02 at 12:33:41 PM CET 
  package org.w3._2000._09.xmldsig_;
 import java.util.List;

Java class for KeyInfoType complex type.

The following schema fragment specifies the expected content contained within this class.

 <complexType name="KeyInfoType">
     <restriction base="{}anyType">
       <choice maxOccurs="unbounded">
         <element ref="{}KeyName"/>
         <element ref="{}KeyValue"/>
         <element ref="{}RetrievalMethod"/>
         <element ref="{}X509Data"/>
         <element ref="{}PGPData"/>
         <element ref="{}SPKIData"/>
         <element ref="{}MgmtData"/>
         <any processContents='lax' namespace='##other'/>
       <attribute name="Id" type="{}ID" />
 @XmlType(name = "KeyInfoType", propOrder = {
 public class KeyInfoType {
         @XmlElementRef(name = "MgmtData", namespace = "", type = JAXBElement.class),
         @XmlElementRef(name = "PGPData", namespace = "", type = JAXBElement.class),
         @XmlElementRef(name = "KeyValue", namespace = "", type = JAXBElement.class),
         @XmlElementRef(name = "X509Data", namespace = "", type = JAXBElement.class),
         @XmlElementRef(name = "RetrievalMethod", namespace = "", type = JAXBElement.class),
         @XmlElementRef(name = "SPKIData", namespace = "", type = JAXBElement.class),
         @XmlElementRef(name = "KeyName", namespace = "", type = JAXBElement.class)
     @XmlAnyElement(lax = true)
     protected List<Objectcontent;
     @XmlAttribute(name = "Id")
     @XmlSchemaType(name = "ID")
     protected String id;

Default no-arg constructor
     public KeyInfoType() {

Fully-initialising value constructor
     public KeyInfoType(final List<Objectcontentfinal String id) {
         this. = content;
         this. = id;

Gets the value of the content property.

This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the content property.

For example, to add a new item, do as follows:


Objects of the following type(s) are allowed in the list <> <> <> <> <> <> <>

    public List<ObjectgetContent() {
        if ( == null) {
             = new ArrayList<Object>();
        return this.;

Gets the value of the id property.

possible object is
    public String getId() {
        return ;

Sets the value of the id property.

value allowed object is
    public void setId(String value) {
        this. = value;
New to GrepCode? Check out our FAQ X