org.netbeans.modules.bpel.model.spi
Interface EntityFactory

All Known Implementing Classes:
LoggingEntityFactory

public interface EntityFactory

Author:
ads

Method Summary
 boolean canExtend(ExtensibleElements extensible, java.lang.Class<? extends BpelEntity> extensionType)
           
<T extends BpelEntity>
T
create(BpelBuilderImpl builder, java.lang.Class<T> clazz)
          Creates unattached OM entity with specified clazz.
 BpelEntity create(BpelContainer container, org.w3c.dom.Element element)
          Creates new entity for specified element inside parent container.
 java.util.Set<javax.xml.namespace.QName> getElementQNames()
           
 boolean isApplicable(java.lang.String namespaceUri)
          Checks either namespaceUri is applicable for this factory.
 

Method Detail

isApplicable

boolean isApplicable(java.lang.String namespaceUri)
Checks either namespaceUri is applicable for this factory.

Parameters:
namespaceUri - Namespace for check.
Returns:
true if this factory is applicable.

getElementQNames

java.util.Set<javax.xml.namespace.QName> getElementQNames()
Returns:
Set with qNames of elements that this factory supports.

create

BpelEntity create(BpelContainer container,
                  org.w3c.dom.Element element)
Creates new entity for specified element inside parent container. This method is used inside OM when it parses XML.

Parameters:
container - Parent object.
element - DOM low level element.
Returns:
instantiated model entity.

create

<T extends BpelEntity> T create(BpelBuilderImpl builder,
                                java.lang.Class<T> clazz)
Creates unattached OM entity with specified clazz. This method used by builder for creation element by client.

Type Parameters:
T - Class OM entity.
Parameters:
clazz - Type for entity that will be created.
Returns:
instantiated model entity.

canExtend

boolean canExtend(ExtensibleElements extensible,
                  java.lang.Class<? extends BpelEntity> extensionType)