org.netbeans.modules.xml.wsdl.model.impl
Class DocumentationImpl

java.lang.Object
  extended by org.netbeans.modules.xml.xam.AbstractComponent<C>
      extended by org.netbeans.modules.xml.xam.dom.AbstractDocumentComponent<WSDLComponent>
          extended by org.netbeans.modules.xml.wsdl.model.spi.WSDLComponentBase
              extended by org.netbeans.modules.xml.wsdl.model.impl.DocumentationImpl
All Implemented Interfaces:
Documentation, WSDLComponent, Component<WSDLComponent>, DocumentComponent<WSDLComponent>, DocumentModelAccess.NodeUpdater

public class DocumentationImpl
extends org.netbeans.modules.xml.wsdl.model.spi.WSDLComponentBase
implements Documentation

Author:
rico

Nested Class Summary
 
Nested classes/interfaces inherited from class org.netbeans.modules.xml.xam.dom.AbstractDocumentComponent
AbstractDocumentComponent.PrefixAttribute
 
Field Summary
 
Fields inherited from interface org.netbeans.modules.xml.wsdl.model.Documentation
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
 
Constructor Summary
DocumentationImpl(WSDLModel model)
           
DocumentationImpl(WSDLModel model, org.w3c.dom.Element e)
          Creates a new instance of DocumentationImpl
 
Method Summary
 void accept(org.netbeans.modules.xml.wsdl.model.visitor.WSDLVisitor visitor)
           
 java.lang.String getContentFragment()
           
 Documentation getDocumentation()
           
 org.w3c.dom.Element getDocumentationElement()
           
 java.lang.String getTextContent()
           
 void setContentFragment(java.lang.String text)
          Sets the XML fragment text of documentation element content.
 void setDocumentation(Documentation doc)
           
 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 class org.netbeans.modules.xml.wsdl.model.spi.WSDLComponentBase
addExtensibilityElement, canPaste, createNewElement, createPrefixedElement, createReferenceTo, createSchemaReference, getAttributeValueOf, getExtensibilityElements, getExtensibilityElements, getModel, getWSDLModel, populateChildren, removeExtensibilityElement, resolveGlobalReference, resolveSchemaReference, toString
 
Methods inherited from class org.netbeans.modules.xml.xam.dom.AbstractDocumentComponent
addPrefix, appendChildQuietly, copy, createPrefixAttribute, ensureUnique, ensureValueNamespaceDeclared, findAttributePosition, findChildComponent, findChildComponentByIdentity, findDomainIndex, findPosition, fireChildAdded, fireChildRemoved, firePropertyChange, fireValueChanged, getAccess, getAnyAttribute, getAttribute, getAttributeMap, getChildElement, getChildElementText, getEffectiveParent, getLeadingText, getNamespaceURI, getNodeIndexOf, getPeer, getPrefixedName, getPrefixedName, getPrefixedName, getPrefixes, getQName, getQName, getText, getText, getText, getTrailingText, getXmlFragment, getXmlFragmentInclusive, insertAtIndexQuietly, isInDocumentModel, lookupNamespaceURI, lookupNamespaceURI, lookupPrefix, referencesSameNode, removeAttributeQuietly, removeChildQuietly, removePrefix, resolveModel, setAnyAttribute, setAttribute, setAttributeQuietly, setChildElementText, setLeadingText, setQNameAttribute, setText, setText, setTrailingText, setXmlFragment, updatePeer, updateReference, updateReference, updateReference, verifyWrite
 
Methods inherited from class org.netbeans.modules.xml.xam.AbstractComponent
addAfter, addBefore, addPropertyChangeListener, appendChild, checkNullOrDuplicateChild, getChild, getChildren, getChildren, getChildren, getParent, insertAtIndex, insertAtIndex, isChildrenInitialized, removeChild, removeComponentListener, removePropertyChangeListener, setChild, setChild, setChildAfter, setChildBefore, setModel, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.netbeans.modules.xml.wsdl.model.Documentation
getAnyAttribute, setAnyAttribute
 
Methods inherited from interface org.netbeans.modules.xml.wsdl.model.WSDLComponent
addExtensibilityElement, createReferenceTo, createSchemaReference, getAttributeMap, getExtensibilityElements, getExtensibilityElements, getModel, removeExtensibilityElement
 
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
 

Constructor Detail

DocumentationImpl

public DocumentationImpl(WSDLModel model,
                         org.w3c.dom.Element e)
Creates a new instance of DocumentationImpl


DocumentationImpl

public DocumentationImpl(WSDLModel model)
Method Detail

accept

public void accept(org.netbeans.modules.xml.wsdl.model.visitor.WSDLVisitor visitor)
Specified by:
accept in interface WSDLComponent

setDocumentation

public void setDocumentation(Documentation doc)
Specified by:
setDocumentation in interface WSDLComponent
Overrides:
setDocumentation in class org.netbeans.modules.xml.wsdl.model.spi.WSDLComponentBase

getDocumentation

public Documentation getDocumentation()
Specified by:
getDocumentation in interface WSDLComponent
Overrides:
getDocumentation in class org.netbeans.modules.xml.wsdl.model.spi.WSDLComponentBase

setTextContent

public void setTextContent(java.lang.String content)
Description copied from interface: Documentation
Set the documentation element content to a text node with the given string value.

Specified by:
setTextContent in interface Documentation

getTextContent

public java.lang.String getTextContent()
Specified by:
getTextContent in interface Documentation
Returns:
text representation of the documentation element content.

getDocumentationElement

public org.w3c.dom.Element getDocumentationElement()
Specified by:
getDocumentationElement in interface Documentation
Returns:
a mutable clone of the documentation element itself.

setDocumentationElement

public void setDocumentationElement(org.w3c.dom.Element documentationElement)
Description copied from interface: Documentation
Sets the documentation element to the given element.

Specified by:
setDocumentationElement in interface Documentation

getContentFragment

public java.lang.String getContentFragment()
Specified by:
getContentFragment in interface Documentation
Returns:
XML fragment text of documentation element content.

setContentFragment

public void setContentFragment(java.lang.String text)
                        throws java.io.IOException
Description copied from interface: Documentation
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.

Specified by:
setContentFragment in interface Documentation
Parameters:
text - XML fragment text.
Throws:
java.io.IOException - if the fragment text is not well-form.