001: /*
002: * The contents of this file are subject to the terms
003: * of the Common Development and Distribution License
004: * (the License). You may not use this file except in
005: * compliance with the License.
006: *
007: * You can obtain a copy of the license at
008: * https://glassfish.dev.java.net/public/CDDLv1.0.html.
009: * See the License for the specific language governing
010: * permissions and limitations under the License.
011: *
012: * When distributing Covered Code, include this CDDL
013: * Header Notice in each file and include the License file
014: * at https://glassfish.dev.java.net/public/CDDLv1.0.html.
015: * If applicable, add the following below the CDDL Header,
016: * with the fields enclosed by brackets [] replaced by
017: * you own identifying information:
018: * "Portions Copyrighted [year] [name of copyright owner]"
019: *
020: * Copyright 2006 Sun Microsystems Inc. All Rights Reserved
021: */
022:
023: //
024: // This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.0-b24-ea3
025: // See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a>
026: // Any modifications to this file will be lost upon recompilation of the source schema.
027: // Generated on: 2006.01.20 at 03:59:03 PM IST
028: //
029:
030: package com.sun.xml.security.core.dsig;
031:
032: import java.util.ArrayList;
033: import java.util.List;
034: import javax.xml.bind.annotation.XmlAccessType;
035: import javax.xml.bind.annotation.XmlAccessorType;
036: import javax.xml.bind.annotation.XmlAnyElement;
037: import javax.xml.bind.annotation.XmlAttribute;
038: import javax.xml.bind.annotation.XmlMixed;
039: import javax.xml.bind.annotation.XmlRootElement;
040: import javax.xml.bind.annotation.XmlType;
041:
042: /**
043: * <p>Java class for DigestMethodType complex type.
044: *
045: * <p>The following schema fragment specifies the expected content contained within this class.
046: *
047: * <pre>
048: * <complexType name="DigestMethodType">
049: * <complexContent>
050: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
051: * <sequence>
052: * <any/>
053: * </sequence>
054: * <attribute name="Algorithm" use="required" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
055: * </restriction>
056: * </complexContent>
057: * </complexType>
058: * </pre>
059: *
060: *
061: */
062: @XmlRootElement(name="DigestMethod")
063: @XmlAccessorType(XmlAccessType.FIELD)
064: @XmlType(name="DigestMethodType",propOrder={"content"})
065: public class DigestMethodType {
066:
067: @XmlMixed
068: @XmlAnyElement(lax=true)
069: protected List<Object> content;
070: @XmlAttribute(name="Algorithm",required=true)
071: protected String algorithm;
072:
073: /**
074: * Gets the value of the content property.
075: *
076: * <p>
077: * This accessor method returns a reference to the live list,
078: * not a snapshot. Therefore any modification you make to the
079: * returned list will be present inside the JAXB object.
080: * This is why there is not a <CODE>set</CODE> method for the content property.
081: *
082: * <p>
083: * For example, to add a new item, do as follows:
084: * <pre>
085: * getContent().add(newItem);
086: * </pre>
087: *
088: *
089: * <p>
090: * Objects of the following type(s) are allowed in the list
091: * {@link Object }
092: * {@link String }
093: * {@link Element }
094: *
095: *
096: */
097: public List<Object> getContent() {
098: if (content == null) {
099: content = new ArrayList<Object>();
100: }
101: return this .content;
102: }
103:
104: /**
105: * Gets the value of the algorithm property.
106: *
107: * @return
108: * possible object is
109: * {@link String }
110: *
111: */
112: public String getAlgorithm() {
113: return algorithm;
114: }
115:
116: /**
117: * Sets the value of the algorithm property.
118: *
119: * @param value
120: * allowed object is
121: * {@link String }
122: *
123: */
124: public void setAlgorithm(String value) {
125: this.algorithm = value;
126: }
127:
128: }
|