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

All Superinterfaces:
Component<WSDLComponent>, DocumentComponent<WSDLComponent>, WSDLComponent
All Known Subinterfaces:
BPELExtensibilityComponent, CorrelationProperty, Documentation, ExtensibilityElement.EmbeddedModel, ExtensibilityElement.ParentSelector, ExtensibilityElement.UpdaterProvider, PartnerLinkType, PropertyAlias, Query, ReferenceableExtensibilityElement, Role
All Known Implementing Classes:
CorrelationPropertyImpl, DocumentationImpl, org.netbeans.modules.xml.wsdl.model.spi.GenericExtensibilityElement, org.netbeans.modules.xml.wsdl.model.spi.NamedExtensibilityElementBase, PartnerLinkTypeImpl, PropertyAliasImpl, QueryImpl, RoleImpl

public interface ExtensibilityElement
extends WSDLComponent

Interface for wsdl extensibility elements

Author:
rico, Nam Nguyen

Nested Class Summary
static interface ExtensibilityElement.EmbeddedModel
          Interface for an extensibility element that is a root of an embedded model.
static interface ExtensibilityElement.ParentSelector
          An extensibility element with ability to select parent to be added to.
static interface ExtensibilityElement.UpdaterProvider
          Interface for an extensibility element that could provide update visitor to be used during sync from source.
 
Field Summary
static java.lang.String CONTENT_FRAGMENT_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
 void addAnyElement(ExtensibilityElement anyElement, int index)
          Adds child extensibility elements of unknown type.
 java.lang.String getAnyAttribute(javax.xml.namespace.QName attr)
          Set/get attribute defined in given namespace.
 java.util.List<ExtensibilityElement> getAnyElements()
           
 java.lang.String getAttribute(java.lang.String attribute)
          Set/get attribute value.
 java.lang.String getContentFragment()
          Set/get content as XML fragment.
 javax.xml.namespace.QName getQName()
          Returns QName of the backing DOM element.
 void removeAnyElement(ExtensibilityElement any)
          Removes child extensibility element of unknown type.
 void setAnyAttribute(javax.xml.namespace.QName attr, java.lang.String value)
           
 void setAttribute(java.lang.String attribute, java.lang.String value)
           
 void setContentFragment(java.lang.String fragment)
           
 
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_FRAGMENT_PROPERTY

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

getAttribute

java.lang.String getAttribute(java.lang.String attribute)
Set/get attribute value.


setAttribute

void setAttribute(java.lang.String attribute,
                  java.lang.String value)

getAnyAttribute

java.lang.String getAnyAttribute(javax.xml.namespace.QName attr)
Set/get attribute defined in given namespace.


setAnyAttribute

void setAnyAttribute(javax.xml.namespace.QName attr,
                     java.lang.String value)

getContentFragment

java.lang.String getContentFragment()
Set/get content as XML fragment. 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.

setContentFragment

void setContentFragment(java.lang.String fragment)
                        throws java.io.IOException
Throws:
java.io.IOException

addAnyElement

void addAnyElement(ExtensibilityElement anyElement,
                   int index)
Adds child extensibility elements of unknown type.

Parameters:
anyElement - any child component to add
index - absolute index position in children list.

removeAnyElement

void removeAnyElement(ExtensibilityElement any)
Removes child extensibility element of unknown type.


getAnyElements

java.util.List<ExtensibilityElement> getAnyElements()

getQName

javax.xml.namespace.QName getQName()
Returns QName of the backing DOM element.