001: package org.w3._2001._04.xmlenc_;
002:
003: import java.util.ArrayList;
004: import java.util.HashMap;
005: import java.util.List;
006: import java.util.Map;
007: import javax.xml.bind.annotation.XmlAccessType;
008: import javax.xml.bind.annotation.XmlAccessorType;
009: import javax.xml.bind.annotation.XmlAnyAttribute;
010: import javax.xml.bind.annotation.XmlAnyElement;
011: import javax.xml.bind.annotation.XmlAttribute;
012: import javax.xml.bind.annotation.XmlID;
013: import javax.xml.bind.annotation.XmlMixed;
014: import javax.xml.bind.annotation.XmlSchemaType;
015: import javax.xml.bind.annotation.XmlType;
016: import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
017: import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
018: import javax.xml.namespace.QName;
019: import org.w3c.dom.Element;
020:
021: /**
022: * <p>Java class for EncryptionPropertyType complex type.
023: *
024: * <p>The following schema fragment specifies the expected content contained within this class.
025: *
026: * <pre>
027: * <complexType name="EncryptionPropertyType">
028: * <complexContent>
029: * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
030: * <choice maxOccurs="unbounded">
031: * <any/>
032: * </choice>
033: * <attribute name="Target" type="{http://www.w3.org/2001/XMLSchema}anyURI" />
034: * <attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" />
035: * </restriction>
036: * </complexContent>
037: * </complexType>
038: * </pre>
039: *
040: *
041: */
042: @XmlAccessorType(XmlAccessType.FIELD)
043: @XmlType(name="EncryptionPropertyType",propOrder={"content"})
044: public class EncryptionPropertyType {
045:
046: @XmlMixed
047: @XmlAnyElement(lax=true)
048: protected List<Object> content;
049: @XmlAttribute(name="Target")
050: @XmlSchemaType(name="anyURI")
051: protected String target;
052: @XmlAttribute(name="Id")
053: @XmlJavaTypeAdapter(CollapsedStringAdapter.class)
054: @XmlID
055: @XmlSchemaType(name="ID")
056: protected String id;
057: @XmlAnyAttribute
058: private Map<QName, String> otherAttributes = new HashMap<QName, String>();
059:
060: /**
061: * Gets the value of the content property.
062: *
063: * <p>
064: * This accessor method returns a reference to the live list,
065: * not a snapshot. Therefore any modification you make to the
066: * returned list will be present inside the JAXB object.
067: * This is why there is not a <CODE>set</CODE> method for the content property.
068: *
069: * <p>
070: * For example, to add a new item, do as follows:
071: * <pre>
072: * getContent().add(newItem);
073: * </pre>
074: *
075: *
076: * <p>
077: * Objects of the following type(s) are allowed in the list
078: * {@link String }
079: * {@link Element }
080: * {@link Object }
081: *
082: *
083: */
084: public List<Object> getContent() {
085: if (content == null) {
086: content = new ArrayList<Object>();
087: }
088: return this .content;
089: }
090:
091: /**
092: * Gets the value of the target property.
093: *
094: * @return
095: * possible object is
096: * {@link String }
097: *
098: */
099: public String getTarget() {
100: return target;
101: }
102:
103: /**
104: * Sets the value of the target property.
105: *
106: * @param value
107: * allowed object is
108: * {@link String }
109: *
110: */
111: public void setTarget(String value) {
112: this .target = value;
113: }
114:
115: /**
116: * Gets the value of the id property.
117: *
118: * @return
119: * possible object is
120: * {@link String }
121: *
122: */
123: public String getId() {
124: return id;
125: }
126:
127: /**
128: * Sets the value of the id property.
129: *
130: * @param value
131: * allowed object is
132: * {@link String }
133: *
134: */
135: public void setId(String value) {
136: this .id = value;
137: }
138:
139: /**
140: * Gets a map that contains attributes that aren't bound to any typed property on this class.
141: *
142: * <p>
143: * the map is keyed by the name of the attribute and
144: * the value is the string value of the attribute.
145: *
146: * the map returned by this method is live, and you can add new attribute
147: * by updating the map directly. Because of this design, there's no setter.
148: *
149: *
150: * @return
151: * always non-null
152: */
153: public Map<QName, String> getOtherAttributes() {
154: return otherAttributes;
155: }
156:
157: }
|