1 19 20 23 package org.netbeans.modules.xml.wsdl.model.extensions.bpel.impl; 24 25 import org.netbeans.modules.xml.wsdl.model.WSDLModel; 26 import org.netbeans.modules.xml.wsdl.model.extensions.bpel.Documentation; 27 import org.netbeans.modules.xml.wsdl.model.extensions.bpel.PartnerLinkType; 28 import org.netbeans.modules.xml.wsdl.model.extensions.bpel.Role; 29 import org.netbeans.modules.xml.wsdl.model.spi.GenericExtensibilityElement; 30 import org.netbeans.modules.xml.xam.Component; 31 import org.w3c.dom.Element ; 32 33 34 38 public class DocumentationImpl extends GenericExtensibilityElement implements Documentation { 39 40 public DocumentationImpl( WSDLModel model, Element e ) { 41 super(model, e); 42 } 43 44 48 49 52 public String getContent() { 53 return getText(); 54 } 55 56 59 public void setContent( String value ) { 60 setText( CONTENT_PROPERTY, value ); 61 } 62 63 66 public void accept( Visitor v ) { 67 v.visit( this ); 68 } 69 70 73 public String getSource() { 74 return getAttribute(BPELAttribute.SOURCE); 75 } 76 77 80 public void setSource( String value ) { 81 setAttribute( SOURCE , BPELAttribute.SOURCE , value ); 82 } 83 84 87 public void removeSource() { 88 setAttribute( SOURCE , BPELAttribute.SOURCE , null ); 89 } 90 91 94 public String getLang() { 95 return getAttribute( BPELAttribute.LANG ); 96 } 97 98 101 public void removeLang() { 102 setAttribute( LANG , BPELAttribute.LANG, null ); 103 } 104 105 108 public void setLang( String value ) { 109 setAttribute( LANG , BPELAttribute.LANG, value ); 110 } 111 112 @Override 113 public boolean canBeAddedTo(Component target) { 114 if (target instanceof PartnerLinkType || target instanceof Role) { 115 return true; 116 } 117 return false; 118 } 119 } 120 | Popular Tags |