org.netbeans.modules.xml.wsdl.model
Interface Documentation

All Superinterfaces:
Component<WSDLComponent>, DocumentComponent<WSDLComponent>, WSDLComponent
All Known Implementing Classes:
DocumentationImpl

public interface Documentation
extends WSDLComponent

Author:
rico, Nam Nguyen Represents the documentation element in a WSDL document

Field Summary
static java.lang.String CONTENT_PROPERTY
           
 
Fields inherited from interface org.netbeans.modules.xml.wsdl.model.WSDLComponent
DOCUMENTATION_PROPERTY, EXTENSIBILITY_ELEMENT_PROPERTY
 
Fields inherited from interface org.netbeans.modules.xml.xam.dom.DocumentComponent
TEXT_CONTENT_PROPERTY
 
Method Summary
 java.lang.String getAnyAttribute(javax.xml.namespace.QName attr)
          Returns string value of the attribute from different namespace.
 java.lang.String getContentFragment()
           
 org.w3c.dom.Element getDocumentationElement()
           
 java.lang.String getTextContent()
           
 void setAnyAttribute(javax.xml.namespace.QName attr, java.lang.String value)
          Set string value of the attribute identified by given QName.
 void setContentFragment(java.lang.String text)
          Sets the XML fragment text of documentation element content.
 void setDocumentationElement(org.w3c.dom.Element documentationElement)
          Sets the documentation element to the given element.
 void setTextContent(java.lang.String content)
          Set the documentation element content to a text node with the given string value.
 
Methods inherited from interface org.netbeans.modules.xml.wsdl.model.WSDLComponent
accept, addExtensibilityElement, createReferenceTo, createSchemaReference, getAttributeMap, getDocumentation, getExtensibilityElements, getExtensibilityElements, getModel, removeExtensibilityElement, setDocumentation
 
Methods inherited from interface org.netbeans.modules.xml.xam.dom.DocumentComponent
findAttributePosition, findChildComponent, findPosition, getAttribute, getPeer, isInDocumentModel, referencesSameNode, setAttribute
 
Methods inherited from interface org.netbeans.modules.xml.xam.Component
canPaste, copy, getChildren, getChildren, getChildren, getParent
 

Field Detail

CONTENT_PROPERTY

static final java.lang.String CONTENT_PROPERTY
See Also:
Constant Field Values
Method Detail

getTextContent

java.lang.String getTextContent()
Returns:
text representation of the documentation element content.

setTextContent

void setTextContent(java.lang.String content)
Set the documentation element content to a text node with the given string value.


getContentFragment

java.lang.String getContentFragment()
Returns:
XML fragment text of documentation element content.

setContentFragment

void setContentFragment(java.lang.String text)
                        throws java.io.IOException
Sets the XML fragment text of documentation element content. The XML fragment will be parsed and the resulting nodes will replace the current children of this documentation element.

Parameters:
text - XML fragment text.
Throws:
java.io.IOException - if the fragment text is not well-form.

getDocumentationElement

org.w3c.dom.Element getDocumentationElement()
Returns:
a mutable clone of the documentation element itself.

setDocumentationElement

void setDocumentationElement(org.w3c.dom.Element documentationElement)
Sets the documentation element to the given element.


getAnyAttribute

java.lang.String getAnyAttribute(javax.xml.namespace.QName attr)
Returns string value of the attribute from different namespace. If given QName has prefix, it will be ignored.

Parameters:
attr - non-null QName represents the attribute name.
Returns:
attribute value

setAnyAttribute

void setAnyAttribute(javax.xml.namespace.QName attr,
                     java.lang.String value)
Set string value of the attribute identified by given QName. This will fire property change event using attribute local name.

Parameters:
attr - non-null QName represents the attribute name.
value - string value for the attribute.