1 19 20 package org.netbeans.modules.websvc.wsitmodelext.security.tokens.impl; 21 22 import java.util.Collections ; 23 import org.netbeans.modules.websvc.wsitmodelext.policy.Policy; 24 import org.netbeans.modules.websvc.wsitmodelext.security.tokens.TokensQName; 25 import org.netbeans.modules.xml.wsdl.model.WSDLComponent; 26 import org.netbeans.modules.xml.wsdl.model.WSDLModel; 27 import org.netbeans.modules.xml.wsdl.model.spi.GenericExtensibilityElement; 28 import org.netbeans.modules.xml.wsdl.model.visitor.WSDLVisitor; 29 import org.w3c.dom.Element ; 30 31 35 public abstract class TokensComponentImpl extends GenericExtensibilityElement { 36 37 40 public TokensComponentImpl(WSDLModel model, Element e) { 41 super(model, e); 42 } 43 44 @Override 45 public abstract void accept(WSDLVisitor visitor); 46 47 @Override 48 protected String getNamespaceURI() { 49 return TokensQName.SECPOLICY_UTILITY; 50 } 51 52 @Override 53 public String getAttribute(String attribute) { 54 throw new UnsupportedOperationException (); 55 } 56 57 @Override 58 public void setAttribute(String attribute, String value) { 59 throw new UnsupportedOperationException (); 60 } 61 62 public void setPolicy(Policy policy) { 63 java.util.List <Class <? extends WSDLComponent>> classes = Collections.emptyList(); 64 setChild(Policy.class, Policy.POLICY_PROPERTY, policy, classes); 65 } 66 67 public Policy getPolicy() { 68 return getChild(Policy.class); 69 } 70 71 public void removePolicy(Policy policy) { 72 removeChild(Policy.POLICY_PROPERTY, policy); 73 } 74 } 75 | Popular Tags |