001: package org.w3._2001._04.xmlenc_;
002:
003: import java.io.Serializable;
004: import java.util.ArrayList;
005: import java.util.List;
006: import javax.xml.bind.JAXBElement;
007: import javax.xml.bind.annotation.XmlAccessType;
008: import javax.xml.bind.annotation.XmlAccessorType;
009: import javax.xml.bind.annotation.XmlAttribute;
010: import javax.xml.bind.annotation.XmlElementRef;
011: import javax.xml.bind.annotation.XmlElementRefs;
012: import javax.xml.bind.annotation.XmlMixed;
013: import javax.xml.bind.annotation.XmlSchemaType;
014: import javax.xml.bind.annotation.XmlType;
015: import org.w3._2000._09.xmldsig_.DigestMethodType;
016: import org.w3._2000._09.xmldsig_.KeyInfoType;
017:
018: /**
019: * <p>Java class for AgreementMethodType complex type.
020: *
021: * <p>The following schema fragment specifies the expected content contained within this class.
022: *
023: * <pre>
024: * <complexType name="AgreementMethodType">
025: * <complexContent>
026: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
027: * <sequence>
028: * <element name="KA-Nonce" type="{http://www.w3.org/2001/XMLSchema}base64Binary" minOccurs="0"/>
029: * <element ref="{http://www.w3.org/2000/09/xmldsig#}DigestMethod" minOccurs="0"/>
030: * <element name="OriginatorKeyInfo" type="{http://www.w3.org/2000/09/xmldsig#}KeyInfoType" minOccurs="0"/>
031: * <element name="RecipientKeyInfo" type="{http://www.w3.org/2000/09/xmldsig#}KeyInfoType" minOccurs="0"/>
032: * </sequence>
033: * <attribute name="Algorithm" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
034: * </restriction>
035: * </complexContent>
036: * </complexType>
037: * </pre>
038: *
039: *
040: */
041: @XmlAccessorType(XmlAccessType.FIELD)
042: @XmlType(name="AgreementMethodType",propOrder={"content"})
043: public class AgreementMethodType {
044:
045: @XmlElementRefs({@XmlElementRef(name="OriginatorKeyInfo",namespace="http://www.w3.org/2001/04/xmlenc#",type=JAXBElement.class),@XmlElementRef(name="RecipientKeyInfo",namespace="http://www.w3.org/2001/04/xmlenc#",type=JAXBElement.class),@XmlElementRef(name="KA-Nonce",namespace="http://www.w3.org/2001/04/xmlenc#",type=JAXBElement.class),@XmlElementRef(name="DigestMethod",namespace="http://www.w3.org/2000/09/xmldsig#",type=JAXBElement.class)})
046: @XmlMixed
047: protected List<Serializable> content;
048: @XmlAttribute(name="Algorithm",required=true)
049: @XmlSchemaType(name="anyURI")
050: protected String algorithm;
051:
052: /**
053: * Gets the value of the content property.
054: *
055: * <p>
056: * This accessor method returns a reference to the live list,
057: * not a snapshot. Therefore any modification you make to the
058: * returned list will be present inside the JAXB object.
059: * This is why there is not a <CODE>set</CODE> method for the content property.
060: *
061: * <p>
062: * For example, to add a new item, do as follows:
063: * <pre>
064: * getContent().add(newItem);
065: * </pre>
066: *
067: *
068: * <p>
069: * Objects of the following type(s) are allowed in the list
070: * {@link String }
071: * {@link JAXBElement }{@code <}{@link KeyInfoType }{@code >}
072: * {@link JAXBElement }{@code <}{@link byte[]}{@code >}
073: * {@link JAXBElement }{@code <}{@link DigestMethodType }{@code >}
074: * {@link JAXBElement }{@code <}{@link KeyInfoType }{@code >}
075: *
076: *
077: */
078: public List<Serializable> getContent() {
079: if (content == null) {
080: content = new ArrayList<Serializable>();
081: }
082: return this .content;
083: }
084:
085: /**
086: * Gets the value of the algorithm property.
087: *
088: * @return
089: * possible object is
090: * {@link String }
091: *
092: */
093: public String getAlgorithm() {
094: return algorithm;
095: }
096:
097: /**
098: * Sets the value of the algorithm property.
099: *
100: * @param value
101: * allowed object is
102: * {@link String }
103: *
104: */
105: public void setAlgorithm(String value) {
106: this.algorithm = value;
107: }
108:
109: }
|