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.02.03 at 04:10:33 PM IST
028: //
029:
030: package com.sun.xml.security.core.xenc;
031:
032: import java.util.ArrayList;
033: import java.util.HashMap;
034: import java.util.List;
035: import java.util.Map;
036: import javax.xml.bind.annotation.XmlAccessType;
037: import javax.xml.bind.annotation.XmlAccessorType;
038: import javax.xml.bind.annotation.XmlAnyAttribute;
039: import javax.xml.bind.annotation.XmlAnyElement;
040: import javax.xml.bind.annotation.XmlAttribute;
041: import javax.xml.bind.annotation.XmlID;
042: import javax.xml.bind.annotation.XmlMixed;
043: import javax.xml.bind.annotation.XmlType;
044: import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
045: import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
046: import javax.xml.namespace.QName;
047:
048: /**
049: * <p>Java class for EncryptionPropertyType complex type.
050: *
051: * <p>The following schema fragment specifies the expected content contained within this class.
052: *
053: * <pre>
054: * <complexType name="EncryptionPropertyType">
055: * <complexContent>
056: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
057: * <choice maxOccurs="unbounded">
058: * <any/>
059: * </choice>
060: * <attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" />
061: * <attribute name="Target" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
062: * </restriction>
063: * </complexContent>
064: * </complexType>
065: * </pre>
066: *
067: *
068: */
069: @XmlAccessorType(XmlAccessType.FIELD)
070: @XmlType(name="EncryptionPropertyType",propOrder={"content"})
071: public class EncryptionPropertyType {
072:
073: @XmlMixed
074: @XmlAnyElement(lax=true)
075: protected List<Object> content;
076: @XmlAttribute(name="Id")
077: @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
078: @XmlID
079: protected String id;
080: @XmlAttribute(name="Target")
081: protected String target;
082: @XmlAnyAttribute
083: private Map<QName, String> otherAttributes = new HashMap<QName, String>();
084:
085: /**
086: * Gets the value of the content property.
087: *
088: * <p>
089: * This accessor method returns a reference to the live list,
090: * not a snapshot. Therefore any modification you make to the
091: * returned list will be present inside the JAXB object.
092: * This is why there is not a <CODE>set</CODE> method for the content property.
093: *
094: * <p>
095: * For example, to add a new item, do as follows:
096: * <pre>
097: * getContent().add(newItem);
098: * </pre>
099: *
100: *
101: * <p>
102: * Objects of the following type(s) are allowed in the list
103: * {@link Object }
104: * {@link Element }
105: * {@link String }
106: *
107: *
108: */
109: public List<Object> getContent() {
110: if (content == null) {
111: content = new ArrayList<Object>();
112: }
113: return this .content;
114: }
115:
116: public void setContent(List<Object> content) {
117: this .content = content;
118: }
119:
120: /**
121: * Gets the value of the id property.
122: *
123: * @return
124: * possible object is
125: * {@link String }
126: *
127: */
128: public String getId() {
129: return id;
130: }
131:
132: /**
133: * Sets the value of the id property.
134: *
135: * @param value
136: * allowed object is
137: * {@link String }
138: *
139: */
140: public void setId(String value) {
141: this .id = value;
142: }
143:
144: /**
145: * Gets the value of the target property.
146: *
147: * @return
148: * possible object is
149: * {@link String }
150: *
151: */
152: public String getTarget() {
153: return target;
154: }
155:
156: /**
157: * Sets the value of the target property.
158: *
159: * @param value
160: * allowed object is
161: * {@link String }
162: *
163: */
164: public void setTarget(String value) {
165: this .target = value;
166: }
167:
168: /**
169: * Gets a map that contains attributes that aren't bound to any typed property on this class.
170: *
171: * <p>
172: * the map is keyed by the name of the attribute and
173: * the value is the string value of the attribute.
174: *
175: * the map returned by this method is live, and you can add new attribute
176: * by updating the map directly. Because of this design, there's no setter.
177: *
178: *
179: * @return
180: * always non-null
181: */
182: public Map<QName, String> getOtherAttributes() {
183: return otherAttributes;
184: }
185:
186: public void setOtherAttributes(Map<QName, String> otherAttributes) {
187: this.otherAttributes = otherAttributes;
188: }
189:
190: }
|