org.netbeans.modules.bpel.model.ext.logging.impl
Class LoggingEntityFactory

java.lang.Object
  extended by org.netbeans.modules.bpel.model.ext.logging.impl.LoggingEntityFactory
All Implemented Interfaces:
EntityFactory

public class LoggingEntityFactory
extends java.lang.Object
implements EntityFactory

Author:
zgursky

Constructor Summary
LoggingEntityFactory()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoggingEntityFactory

public LoggingEntityFactory()
Method Detail

isApplicable

public boolean isApplicable(java.lang.String namespaceUri)
Description copied from interface: EntityFactory
Checks either namespaceUri is applicable for this factory.

Specified by:
isApplicable in interface EntityFactory
Parameters:
namespaceUri - Namespace for check.
Returns:
true if this factory is applicable.

getElementQNames

public java.util.Set<javax.xml.namespace.QName> getElementQNames()
Specified by:
getElementQNames in interface EntityFactory
Returns:
Set with qNames of elements that this factory supports.

create

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

Specified by:
create in interface EntityFactory
Parameters:
container - Parent object.
element - DOM low level element.
Returns:
instantiated model entity.

create

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

Specified by:
create in interface EntityFactory
Type Parameters:
T - Class OM entity.
clazz - Type for entity that will be created.
Returns:
instantiated model entity.

canExtend

public boolean canExtend(ExtensibleElements extensible,
                         java.lang.Class<? extends BpelEntity> extensionType)
Specified by:
canExtend in interface EntityFactory