1 8 9 package com.sun.xml.ws.policy.impl.bindings; 10 11 import java.util.ArrayList ; 12 import java.util.HashMap ; 13 import java.util.List ; 14 import java.util.Map ; 15 import javax.xml.bind.annotation.XmlAccessType; 16 import javax.xml.bind.annotation.XmlAccessorType; 17 import javax.xml.bind.annotation.XmlAnyAttribute; 18 import javax.xml.bind.annotation.XmlAnyElement; 19 import javax.xml.bind.annotation.XmlElement; 20 import javax.xml.bind.annotation.XmlElements; 21 import javax.xml.bind.annotation.XmlRootElement; 22 import javax.xml.bind.annotation.XmlType; 23 import javax.xml.namespace.QName ; 24 import com.sun.xml.ws.policy.impl.bindings.AppliesTo; 25 import com.sun.xml.ws.policy.impl.bindings.Policy; 26 import com.sun.xml.ws.policy.impl.bindings.PolicyAttachment; 27 import com.sun.xml.ws.policy.impl.bindings.PolicyReference; 28 import org.w3c.dom.Element ; 29 30 31 57 @XmlAccessorType(XmlAccessType.FIELD) 58 @XmlType(name = "", propOrder = { 59 "appliesTo", 60 "policyOrPolicyReference", 61 "any" 62 }) 63 @XmlRootElement(name = "PolicyAttachment") 64 public class PolicyAttachment { 65 66 @XmlElement(name = "AppliesTo", namespace = "http://schemas.xmlsoap.org/ws/2004/09/policy") 67 protected AppliesTo appliesTo; 68 @XmlElements({ 69 @XmlElement(name = "Policy", namespace = "http://schemas.xmlsoap.org/ws/2004/09/policy", type = Policy.class), 70 @XmlElement(name = "PolicyReference", namespace = "http://schemas.xmlsoap.org/ws/2004/09/policy", type = PolicyReference.class) 71 }) 72 protected List <Object > policyOrPolicyReference; 73 @XmlAnyElement(lax = true) 74 protected List <Object > any; 75 @XmlAnyAttribute 76 private Map <QName , String > otherAttributes = new HashMap <QName , String >(); 77 78 86 public AppliesTo getAppliesTo() { 87 return appliesTo; 88 } 89 90 98 public void setAppliesTo(AppliesTo value) { 99 this.appliesTo = value; 100 } 101 102 125 public List <Object > getPolicyOrPolicyReference() { 126 if (policyOrPolicyReference == null) { 127 policyOrPolicyReference = new ArrayList <Object >(); 128 } 129 return this.policyOrPolicyReference; 130 } 131 132 155 public List <Object > getAny() { 156 if (any == null) { 157 any = new ArrayList <Object >(); 158 } 159 return this.any; 160 } 161 162 176 public Map <QName , String > getOtherAttributes() { 177 return otherAttributes; 178 } 179 180 } 181 | Popular Tags |