FileDocCategorySizeDatePackage
EjbJarDDObjectFactory.javaAPI DocJBoss 4.2.144713Fri Jul 13 20:53:56 BST 2007org.jboss.ejb3.metamodel

EjbJarDDObjectFactory

public class EjbJarDDObjectFactory extends org.jboss.metamodel.descriptor.DDObjectFactory
org.jboss.xb.binding.ObjectModelFactory implementation that accepts data chuncks from unmarshaller and assembles them into an EjbJarDD instance.
author
William DeCoste
author
Anil.Saldhana@jboss.org
version
$Revision: 63839 $

Fields Summary
private static final Logger
log
Constructors Summary
Methods Summary
public voidaddChild(MessageDrivenBean parent, ActivationConfig config, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)
Called when parsing character is complete.

      parent.setActivationConfig(config);
   
public voidaddChild(MessageDrivenBean parent, org.jboss.metamodel.descriptor.EjbRef ref, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)
Called when parsing character is complete.

      parent.addEjbRef(ref);
   
public voidaddChild(MessageDrivenBean parent, org.jboss.metamodel.descriptor.EjbLocalRef ref, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)
Called when parsing character is complete.

      parent.addEjbLocalRef(ref);
   
public voidaddChild(MessageDrivenBean parent, org.jboss.metamodel.descriptor.EnvEntry entry, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)
Called when parsing character is complete.

      parent.addEnvEntry(entry);
   
public voidaddChild(MessageDrivenBean parent, org.jboss.metamodel.descriptor.ResourceEnvRef envRef, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)
Called when parsing character is complete.

      parent.addResourceEnvRef(envRef);
   
public voidaddChild(MessageDrivenBean parent, org.jboss.metamodel.descriptor.ResourceRef envRef, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)
Called when parsing character is complete.

      parent.addResourceRef(envRef);
   
public voidaddChild(MessageDrivenBean parent, org.jboss.ws.integration.ServiceRefMetaData envRef, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)

      parent.addServiceRef(envRef);
   
public voidaddChild(MessageDrivenBean parent, org.jboss.metamodel.descriptor.MessageDestinationRef ref, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)

      parent.addMessageDestinationRef(ref);
   
public voidaddChild(ActivationConfig parent, org.jboss.metamodel.descriptor.NameValuePair property, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)

      parent.addActivationConfigProperty(property);
   
public voidaddChild(EjbJarDD parent, EnterpriseBeans ejbs, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)

      parent.setEnterpriseBeans(ejbs);
   
public voidaddChild(EnterpriseBeans parent, EnterpriseBean ejb, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)
Called when parsing character is complete.

      parent.addEnterpriseBean(ejb);
   
public voidaddChild(SessionEnterpriseBean parent, org.jboss.metamodel.descriptor.SecurityRoleRef roleRef, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)

      parent.addSecurityRoleRef(roleRef);
   
public voidaddChild(SessionEnterpriseBean parent, SecurityIdentity si, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)

      parent.setSecurityIdentity(si);
   
public voidaddChild(SecurityIdentity parent, org.jboss.metamodel.descriptor.RunAs runAs, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)

      parent.setRunAs(runAs);
   
public voidaddChild(SessionEnterpriseBean parent, org.jboss.metamodel.descriptor.EjbLocalRef ref, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)

      parent.addEjbLocalRef(ref);
   
public voidaddChild(SessionEnterpriseBean parent, org.jboss.metamodel.descriptor.EjbRef ref, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)

      parent.addEjbRef(ref);
   
public voidaddChild(SessionEnterpriseBean parent, org.jboss.metamodel.descriptor.PersistenceContextRef ref, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)

      parent.addPersistenceContextRef(ref);
   
public voidaddChild(SessionEnterpriseBean parent, org.jboss.metamodel.descriptor.PersistenceUnitRef ref, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)
Called when parsing character is complete.

      parent.addPersistenceUnitRef(ref);
   
public voidaddChild(SessionEnterpriseBean parent, org.jboss.metamodel.descriptor.MessageDestinationRef ref, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)
Called when parsing character is complete.

      parent.addMessageDestinationRef(ref);
   
public voidaddChild(SessionEnterpriseBean parent, org.jboss.metamodel.descriptor.EnvEntry entry, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)
Called when parsing character is complete.

      parent.addEnvEntry(entry);
   
public voidaddChild(SessionEnterpriseBean parent, org.jboss.metamodel.descriptor.ResourceEnvRef envRef, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)
Called when parsing character is complete.

      parent.addResourceEnvRef(envRef);
   
public voidaddChild(SessionEnterpriseBean parent, org.jboss.metamodel.descriptor.ResourceRef envRef, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)
Called when parsing character is complete.

      parent.addResourceRef(envRef);
   
public voidaddChild(SessionEnterpriseBean parent, org.jboss.ws.integration.ServiceRefMetaData envRef, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)
Called when parsing character is complete.

      parent.addServiceRef(envRef);
   
public voidaddChild(SessionEnterpriseBean parent, Method method, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)
Called when parsing character is complete.

      if (localName.equals("around-invoke"))
      {
         parent.setAroundInvoke(method);
      }
      else if (localName.equals("post-construct"))
      {
         parent.setPostConstruct(method);
      }
      else if (localName.equals("pre-destroy"))
      {
         parent.setPreDestroy(method);
      }
      else if (localName.equals("post-activate"))
      {
         parent.setPostActivate(method);
      }
      else if (localName.equals("pre-passivate"))
      {
         parent.setPrePassivate(method);
      }
   
public voidaddChild(EntityEnterpriseBean parent, CmpField field, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)
Called when parsing character is complete.

      parent.addCmpField(field);
   
public voidaddChild(EntityEnterpriseBean parent, Query query, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)
Called when parsing character is complete.

      parent.addQuery(query);
   
public voidaddChild(EjbJarDD parent, Relationships relationships, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)
Called when parsing character is complete.

      parent.setRelationships(relationships);
   
public voidaddChild(Relationships parent, EjbRelation relation, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)
Called when parsing character is complete.

      parent.addEjbRelation(relation);
   
public voidaddChild(EjbRelation parent, EjbRelationshipRole role, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)
Called when parsing character is complete.

      parent.addEjbRelationshipRole(role);
   
public voidaddChild(EjbRelationshipRole parent, RelationshipRoleSource source, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)
Called when parsing character is complete.

      parent.setRelationshipRoleSource(source);
   
public voidaddChild(EjbRelationshipRole parent, CmrField field, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)
Called when parsing character is complete.

      parent.setCmrField(field);
   
public voidaddChild(EjbJarDD parent, AssemblyDescriptor descriptor, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)
Called when parsing character is complete.

      parent.setAssemblyDescriptor(descriptor);
   
public voidaddChild(AssemblyDescriptor parent, org.jboss.metamodel.descriptor.SecurityRole role, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)
Called when parsing character is complete.

      parent.addSecurityRole(role);
   
public voidaddChild(AssemblyDescriptor parent, MethodPermission permission, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)
Called when parsing character is complete.

      parent.addMethodPermission(permission);
   
public voidaddChild(AssemblyDescriptor parent, ExcludeList list, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)
Called when parsing character is complete.

      parent.setExcludeList(list);
   
public voidaddChild(AssemblyDescriptor parent, ApplicationException exception, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)
Called when parsing character is complete.

      parent.addApplicationException(exception);
   
public voidaddChild(AssemblyDescriptor parent, InitList list, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)
Called when parsing character is complete.

      parent.setInitList(list);
   
public voidaddChild(AssemblyDescriptor parent, Inject inject, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)
Called when parsing character is complete.

      parent.addInject(inject);
   
public voidaddChild(AssemblyDescriptor parent, InterceptorBinding binding, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)
Called when parsing character is complete.

      parent.addInterceptorBinding(binding);
   
public voidaddChild(ExcludeList parent, Method method, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)
Called when parsing character is complete.

      parent.addMethod(method);
   
public voidaddChild(InitList parent, Method method, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)
Called when parsing character is complete.

      parent.addMethod(method);
   
public voidaddChild(MethodPermission parent, Method method, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)
Called when parsing character is complete.

      parent.addMethod(method);
   
public voidaddChild(Inject parent, Method method, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)
Called when parsing character is complete.

      parent.addMethod(method);
   
public voidaddChild(EjbJarDD parent, Interceptors interceptors, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)

      parent.setInterceptors(interceptors);
   
public voidaddChild(Interceptors parent, Interceptor interceptor, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)

      parent.addInterceptor(interceptor);
   
public voidaddChild(Interceptor parent, org.jboss.metamodel.descriptor.EjbLocalRef ref, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)
Called when parsing character is complete.

      parent.addEjbLocalRef(ref);
   
public voidaddChild(Interceptor parent, org.jboss.metamodel.descriptor.EjbRef ref, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)
Called when parsing character is complete.

      parent.addEjbRef(ref);
   
public voidaddChild(Interceptor parent, org.jboss.metamodel.descriptor.PersistenceContextRef ref, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)
Called when parsing character is complete.

      parent.addPersistenceContextRef(ref);
   
public voidaddChild(Interceptor parent, org.jboss.metamodel.descriptor.PersistenceUnitRef ref, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)
Called when parsing character is complete.

      parent.addPersistenceUnitRef(ref);
   
public voidaddChild(Interceptor parent, org.jboss.metamodel.descriptor.MessageDestinationRef ref, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)
Called when parsing character is complete.

      parent.addMessageDestinationRef(ref);
   
public voidaddChild(Interceptor parent, org.jboss.metamodel.descriptor.EnvEntry entry, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)
Called when parsing character is complete.

      parent.addEnvEntry(entry);
   
public voidaddChild(Interceptor parent, org.jboss.metamodel.descriptor.ResourceEnvRef ref, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)
Called when parsing character is complete.

      parent.addResourceEnvRef(ref);
   
public voidaddChild(Interceptor parent, org.jboss.metamodel.descriptor.ResourceRef ref, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)
Called when parsing character is complete.

      parent.addResourceRef(ref);
   
public voidaddChild(Interceptor parent, org.jboss.ws.integration.ServiceRefMetaData ref, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)
Called when parsing character is complete.

      parent.addServiceRef(ref);
   
public voidaddChild(Interceptor parent, Method method, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)

      if (localName.equals("around-invoke"))
      {
         parent.setAroundInvoke(method);
      }
      else if (localName.equals("post-construct"))
      {
         parent.setPostConstruct(method);
      }
      else if (localName.equals("pre-destroy"))
      {
         parent.setPreDestroy(method);
      }
      else if (localName.equals("post-activate"))
      {
         parent.setPostActivate(method);
      }
      else if (localName.equals("pre-passivate"))
      {
         parent.setPrePassivate(method);
      }
   
public voidaddChild(InterceptorBinding parent, InterceptorOrder order, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)
Called when parsing character is complete.

      parent.setOrderedInterceptorClasses(order);
   
public voidaddChild(InterceptorBinding parent, ExcludeDefaultInterceptors exclude, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)
Called when parsing character is complete.

      parent.setExcludeDefaultInterceptors(true);
   
public voidaddChild(InterceptorBinding parent, ExcludeClassInterceptors exclude, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)
Called when parsing character is complete.

      parent.setExcludeClassInterceptors(true);
   
public voidaddChild(ContainerTransaction parent, Method method, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)
Called when parsing character is complete.

      parent.setMethod(method);
   
public voidaddChild(MessageDrivenBean parent, MessageDrivenDestination destination, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)
Called when parsing character is complete.

      parent.setMessageDrivenDestination(destination);
   
public voidaddChild(MessageDrivenBean parent, Method method, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)
Called when parsing character is complete.

      if (localName.equals("around-invoke"))
      {
         parent.setAroundInvoke(method);
      }
      else if (localName.equals("post-construct"))
      {
         parent.setPostConstruct(method);
      }
      else if (localName.equals("pre-destroy"))
      {
         parent.setPreDestroy(method);
      }
   
public voidaddChild(AssemblyDescriptor parent, ContainerTransaction transaction, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)
Called when parsing character is complete.

      parent.addContainerTransaction(transaction);
   
public java.lang.ObjectcompleteRoot(java.lang.Object root, org.jboss.xb.binding.UnmarshallingContext ctx, java.lang.String uri, java.lang.String name)

      return root;
   
protected java.lang.StringgetValue(java.lang.String name, java.lang.String value)

      if (value.startsWith("${") && value.endsWith("}"))
      {
         String replacement = StringPropertyReplacer.replaceProperties(value);
         if (replacement != null)
            value = replacement;
      }
      return value;
   
private booleanisEjbParentName(EnterpriseBean ejb, java.lang.String localName, java.lang.String value)
Called when a child element with simple content is read for DD.

      if (localName.equals("ejb-name"))
      {
         ejb.setEjbName(getValue(localName, value));
         return true;
      }
      else if (localName.equals("home"))
      {
         ejb.setHome(getValue(localName, value));
         return true;
      }
      else if (localName.equals("remote") || localName.equals("business-remote"))
      {
         ejb.setRemote(getValue(localName, value));
         return true;
      }
      else if (localName.equals("local-home"))
      {
         ejb.setLocalHome(getValue(localName, value));
         return true;
      }
      else if (localName.equals("local") || localName.equals("business-local"))
      {
         ejb.setLocal(getValue(localName, value));
         return true;
      }
      else if (localName.equals("ejb-class"))
      {
         ejb.setEjbClass(getValue(localName, value));
         return true;
      }

      return false;
   
public java.lang.ObjectnewChild(SessionEnterpriseBean parent, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName, org.xml.sax.Attributes attrs)
Called when parsing of a new element started.

      Object child = newEjbChild(parent, localName);
      if (child != null)
         return child;

      child = newEjbHasInterceptorsChild(parent, localName);
      if (child != null)
         return child;

      if (localName.equals("security-role-ref"))
      {
         child = new SecurityRoleRef();
      }
      else if (localName.equals("security-identity"))
      {
         child = new SecurityIdentity();
      }
      else if (localName.equals("remove-method"))
      {
         RemoveMethod method = new RemoveMethod();
         parent.addRemoveMethod(method);
         child = method;
      }
      else if (localName.equals("init-method"))
      {
         InitMethod method = new InitMethod();
         parent.addInitMethod(method);
         child = method;
      }

      return child;
   
public java.lang.ObjectnewChild(EntityEnterpriseBean parent, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName, org.xml.sax.Attributes attrs)
Called when parsing of a new element started.

      Object child = null;

      child = newEjbChild(parent, localName);
      if (child == null)
      {
         if (localName.equals("security-role-ref"))
         {
            child = new SecurityRoleRef();
         }
         else if (localName.equals("cmp-field"))
         {
            child = new CmpField();
         }
         else if (localName.equals("query"))
         {
            child = new Query();
         }
      }

      return child;
   
public java.lang.ObjectnewChild(SecurityIdentity parent, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName, org.xml.sax.Attributes attrs)
Called when parsing of a new element started.

      Object child = null;

      if (localName.equals("run-as"))
      {
         child = new RunAs();
      }
      else if (localName.equals("use-caller-identity"))
      {
         parent.setUseCallerIdentity(true);
      }

      return child;
   
public java.lang.ObjectnewChild(RemoveMethod parent, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName, org.xml.sax.Attributes attrs)
Called when parsing of a new element started.

      Object child = null;

      if (localName.equals("bean-method"))
      {
         parent.setBeanMethod(new Method());
         child = parent.getBeanMethod();
      }

      return child;
   
public java.lang.ObjectnewChild(InitMethod parent, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName, org.xml.sax.Attributes attrs)
Called when parsing of a new element started.

      Object child = null;

      if (localName.equals("bean-method"))
      {
         parent.setBeanMethod(new Method());
         child = parent.getBeanMethod();
      }

      return child;
   
public java.lang.ObjectnewChild(Relationships relationships, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName, org.xml.sax.Attributes attrs)
Called when parsing of a new element started.

      Object child = null;

      if (localName.equals("ejb-relation"))
      {
         child = new EjbRelation();
      }

      return child;
   
public java.lang.ObjectnewChild(EjbRelation relation, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName, org.xml.sax.Attributes attrs)
Called when parsing of a new element started.

      Object child = null;

      if (localName.equals("ejb-relationship-role"))
      {
         child = new EjbRelationshipRole();
      }

      return child;
   
public java.lang.ObjectnewChild(EjbRelationshipRole parent, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName, org.xml.sax.Attributes attrs)
Called when parsing of a new element started.

      Object child = null;

      if (localName.equals("cascade-delete"))
      {
         parent.setCascadeDelete(true);
      }
      else if (localName.equals("relationship-role-source"))
      {
         child = new RelationshipRoleSource();
      }
      else if (localName.equals("cmr-field"))
      {
         child = new CmrField();
      }

      return child;
   
public java.lang.ObjectnewChild(Interceptors interceptors, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName, org.xml.sax.Attributes attrs)

      Object child = null;

      if (localName.equals("interceptor"))
      {
         return new Interceptor();
      }

      return child;
   
public java.lang.ObjectnewChild(Interceptor interceptor, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName, org.xml.sax.Attributes attrs)

      Object child = null;

      if ((child = this.newEnvRefGroupChild(localName)) != null)
         return child;

      if (localName.equals("around-invoke"))
      {
         return new Method();
      }
      else if (localName.equals("post-construct"))
      {
         return new Method();
      }
      else if (localName.equals("pre-destroy"))
      {
         return new Method();
      }
      else if (localName.equals("post-activate"))
      {
         return new Method();
      }
      else if (localName.equals("pre-passivate"))
      {
         return new Method();
      }

      return child;
   
public java.lang.ObjectnewChild(AssemblyDescriptor relationships, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName, org.xml.sax.Attributes attrs)
Called when parsing of a new element started.

      Object child = null;

      if (localName.equals("security-role"))
      {
         child = new SecurityRole();
      }
      else if (localName.equals("method-permission"))
      {
         child = new MethodPermission();
      }
      if (localName.equals("container-transaction"))
      {
         child = new ContainerTransaction();
      }
      else if (localName.equals("inject"))
      {
         child = new Inject();
      }
      else if (localName.equals("exclude-list"))
      {
         child = new ExcludeList();
      }
      else if (localName.equals("application-exception"))
      {
         child = new ApplicationException();
      }
      else if (localName.equals("interceptor-binding"))
      {
         child = new InterceptorBinding();
      }

      return child;
   
public java.lang.ObjectnewChild(Inject inject, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName, org.xml.sax.Attributes attrs)
Called when parsing of a new element started.

      Object child = null;

      if (localName.equals("method"))
      {
         child = new Method();
      }

      return child;
   
public java.lang.ObjectnewChild(MethodPermission permission, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName, org.xml.sax.Attributes attrs)
Called when parsing of a new element started.

      Object child = null;

      if (localName.equals("method"))
      {
         child = new Method();
      }
      else if (localName.equals("unchecked"))
      {
         permission.setUnchecked(true);
      }

      return child;
   
public java.lang.ObjectnewChild(ExcludeList list, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName, org.xml.sax.Attributes attrs)
Called when parsing of a new element started.

      Object child = null;

      if (localName.equals("method"))
      {
         child = new Method();
      }

      return child;
   
public java.lang.ObjectnewChild(InitList list, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName, org.xml.sax.Attributes attrs)
Called when parsing of a new element started.

      Object child = null;

      if (localName.equals("method"))
      {
         child = new Method();
      }

      return child;
   
public java.lang.ObjectnewChild(ContainerTransaction transaction, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName, org.xml.sax.Attributes attrs)
Called when parsing of a new element started.

      Object child = null;

      if (localName.equals("method"))
      {
         child = new Method();
      }

      return child;
   
public java.lang.ObjectnewChild(Method method, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName, org.xml.sax.Attributes attrs)

      Object child = null;

      if (localName.equals("method-params"))
      {
         method.setHasParameters();
      }

      return child;
   
public java.lang.ObjectnewChild(InterceptorBinding binding, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName, org.xml.sax.Attributes attrs)

      Object child = null;

      if (localName.equals("interceptor-order"))
      {
         child = new InterceptorOrder();
      }
      else if (localName.equals("exclude-default-interceptors"))
      {
         child = new ExcludeDefaultInterceptors();
      }
      else if (localName.equals("exclude-class-interceptors"))
      {
         child = new ExcludeClassInterceptors();
      }
      else if (localName.equals("method-params"))
      {
         binding.setHasParameters();
      }

      return child;
   
public java.lang.ObjectnewChild(EjbJarDD dd, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName, org.xml.sax.Attributes attrs)
Called when parsing of a new element started.

      Object child = null;

      if (localName.equals("enterprise-beans"))
      {
         child = new EnterpriseBeans();
      }
      if (localName.equals("interceptors"))
      {
         child = new Interceptors();
      }
      else if (localName.equals("relationships"))
      {
         child = new Relationships();
      }
      else if (localName.equals("assembly-descriptor"))
      {
         child = new AssemblyDescriptor();
      }

      return child;
   
public java.lang.ObjectnewChild(EnterpriseBeans ejbs, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName, org.xml.sax.Attributes attrs)
Called when parsing of a new element started.

      Object child = null;

      if (localName.equals("session"))
      {
         child = new SessionEnterpriseBean();
      }
      else if (localName.equals("entity"))
      {
         child = new EntityEnterpriseBean();
      }
      else if (localName.equals("message-driven"))
      {
         child = new MessageDrivenBean();
      }

      return child;
   
public java.lang.ObjectnewChild(MessageDrivenBean parent, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName, org.xml.sax.Attributes attrs)

      Object child = newEjbChild(parent, localName);
      if (child != null)
         return child;

      child = newEjbHasInterceptorsChild(parent, localName);
      if (child != null)
         return child;

      if (localName.equals("message-driven-destination"))
      {
         child = new MessageDrivenDestination();
      }
      else if (localName.equals("activation-config"))
      {
         child = new ActivationConfig();
      }

      return child;
   
public java.lang.ObjectnewChild(ActivationConfig parent, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName, org.xml.sax.Attributes attrs)

      Object child = null;

      if (localName.equals("activation-config-property"))
      {
         child = new NameValuePair();
      }

      return child;
   
private java.lang.ObjectnewEjbChild(EnterpriseBean parent, java.lang.String localName)
Called when parsing of a new element started.

      Object child = null;

      if ((child = super.newEnvRefGroupChild(localName)) != null)
         return child;
      return child;
   
private java.lang.ObjectnewEjbHasInterceptorsChild(EnterpriseBean parent, java.lang.String localName)

      Object child = null;

      if (localName.equals("around-invoke"))
      {
         child = new Method();
      }
      else if (localName.equals("post-construct"))
      {
         child = new Method();
      }
      else if (localName.equals("pre-destroy"))
      {
         child = new Method();
      }
      else if (localName.equals("post-activate"))
      {
         child = new Method();
      }
      else if (localName.equals("pre-passivate"))
      {
         child = new Method();
      }
      return child;
   
public java.lang.ObjectnewRoot(java.lang.Object root, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName, org.xml.sax.Attributes attrs)


      final EjbJarDD dd;
      if (root == null)
      {
         root = dd = new EjbJarDD();
      }
      else
      {
         dd = (EjbJarDD)root;
      }

      if (attrs.getLength() > 0)
      {
         for (int i = 0; i < attrs.getLength(); ++i)
         {
            if (attrs.getLocalName(i).equals("version"))
            {
               dd.setVersion(attrs.getValue(i));
            }
         }
      }

      return root;
   
public static EjbJarDDparse(java.net.URL ddResource)


          
   
      ObjectModelFactory factory = null;
      Unmarshaller unmarshaller = null;
      EjbJarDD dd = null;

      if (ddResource != null)
      {
         log.debug("found ejb-jar.xml " + ddResource);

         factory = new EjbJarDDObjectFactory();
         UnmarshallerFactory unmarshallerFactory = UnmarshallerFactory.newInstance();
         unmarshaller = unmarshallerFactory.newUnmarshaller();
         unmarshaller.setEntityResolver(new JBossEntityResolver());
         unmarshaller.setNamespaceAware(true);
         unmarshaller.setSchemaValidation(true);
         unmarshaller.setValidation(true);

         dd = (EjbJarDD)unmarshaller.unmarshal(ddResource.openStream(), factory, null);
      }

      return dd;
   
public voidsetValue(SecurityIdentity si, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName, java.lang.String value)
Called when a child element with simple content is read for DD.

      if (localName.equals("use-caller-identity"))
      {
         si.setUseCallerIdentity(true);
      }
   
public voidsetValue(Interceptor interceptor, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName, java.lang.String value)

      if (localName.equals("interceptor-class"))
      {
         interceptor.setInterceptorClass(getValue(localName, value));
      }
   
public voidsetValue(EjbRelation relation, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName, java.lang.String value)
Called when a child element with simple content is read for DD.

      if (localName.equals("ejb-relation-name"))
      {
         relation.setEjbRelationName(getValue(localName, value));
      }
   
public voidsetValue(EjbRelationshipRole role, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName, java.lang.String value)
Called when a child element with simple content is read for DD.

      if (localName.equals("ejb-relationship-role-name"))
      {
         role.setEjbRelationshipRoleName(getValue(localName, value));
      }
      else if (localName.equals("multiplicity"))
      {
         role.setMultiplicity(getValue(localName, value));
      }
   
public voidsetValue(RelationshipRoleSource source, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName, java.lang.String value)
Called when a child element with simple content is read for DD.

      if (localName.equals("ejb-name"))
      {
         source.setEjbName(getValue(localName, value));
      }
   
public voidsetValue(CmrField field, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName, java.lang.String value)
Called when a child element with simple content is read for DD.

      if (localName.equals("cmr-field-name"))
      {
         field.setCmrFieldName(getValue(localName, value));
      }
      else if (localName.equals("cmr-field-type"))
      {
         field.setCmrFieldType(getValue(localName, value));
      }
   
public voidsetValue(org.jboss.metamodel.descriptor.SecurityRole role, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName, java.lang.String value)
Called when a child element with simple content is read for DD.

      if (localName.equals("role-name"))
      {
         role.setRoleName(getValue(localName, value));
      }
   
public voidsetValue(MethodPermission permission, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName, java.lang.String value)
Called when a child element with simple content is read for DD.

      if (localName.equals("role-name"))
      {
         permission.addRoleName(getValue(localName, value));
      }
      else if (localName.equals("unchecked"))
      {
         permission.setUnchecked(true);
      }
   
public voidsetValue(ContainerTransaction transaction, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName, java.lang.String value)
Called when a child element with simple content is read for DD.

      if (localName.equals("trans-attribute"))
      {
         transaction.setTransAttribute(getValue(localName, value));
      }
   
public voidsetValue(Method method, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName, java.lang.String value)
Called when a child element with simple content is read for DD.

      if (localName.equals("ejb-name"))
      {
         method.setEjbName(getValue(localName, value));
      }
      else if (localName.equals("method-name"))
      {
         method.setMethodName(getValue(localName, value));
      }
      else if (localName.equals("method-param"))
      {
         method.addMethodParam(getValue(localName, value));
      }
      else if (localName.equals("lifecycle-callback-method"))
      {
         method.setMethodName(getValue(localName, value));
      }
   
public voidsetValue(Inject inject, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName, java.lang.String value)
Called when a child element with simple content is read for DD.

      if (localName.equals("jndi-name"))
      {
         inject.setJndiName(getValue(localName, value));
      }
   
public voidsetValue(InterceptorBinding binding, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName, java.lang.String value)

      if (localName.equals("ejb-name"))
      {
         binding.setEjbName(getValue(localName, value));
      }
      else if (localName.equals("interceptor-class"))
      {
         binding.addInterceptorClass(getValue(localName, value));
      }
      else if (localName.equals("method-name"))
      {
         binding.setMethodName(getValue(localName, value));
      }
      else if (localName.equals("method-param"))
      {
         binding.addMethodParam(getValue(localName, value));
      }
      else if (localName.equals("exclude-default-interceptors"))
      {
         binding.setExcludeDefaultInterceptors(true);
      }
      else if (localName.equals("exclude-class-interceptors"))
      {
         binding.setExcludeClassInterceptors(true);
      }
   
public voidsetValue(InterceptorOrder order, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName, java.lang.String value)

      if (localName.equals("interceptor-class"))
      {
         order.addInterceptorClass(getValue(localName, value));
      }
   
public voidsetValue(RemoveMethod dd, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName, java.lang.String value)
Called when a child element with simple content is read for DD.

      if (localName.equals("retain-if-exception"))
      {
         dd.setRetainIfException(Boolean.parseBoolean(getValue(localName, value)));
      }
   
public voidsetValue(EjbJarDD dd, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName, java.lang.String value)
Called when a child element with simple content is read for DD.

      if (localName.equals("display-name"))
      {
         dd.setDisplayName(getValue(localName, value));
      }
   
public voidsetValue(org.jboss.metamodel.descriptor.NameValuePair property, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName, java.lang.String value)
Called when a child element with simple content is read for DD.

      if (localName.equals("activation-config-property-name"))
      {
         property.setName(getValue(localName, value));
      }
      else if (localName.equals("activation-config-property-value"))
      {
         property.setValue(getValue(localName, value));
      }
   
public voidsetValue(MessageDrivenBean ejb, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName, java.lang.String value)
Called when a child element with simple content is read for DD.

      if (!isEjbParentName(ejb, localName, value))
      {
         if (localName.equals("acknowledge-mode"))
         {
            ejb.setAcknowledgeMode(getValue(localName, value));
         }
         else if (localName.equals("transaction-type"))
         {
            ejb.setTransactionType(getValue(localName, value));
         }
         else if (localName.equals("messaging-type"))
         {
            ejb.setMessagingType(getValue(localName, value));
         }
         else if (localName.equals("message-destination-type"))
         {
            MessageDrivenDestination destination = ejb.getMessageDrivenDestination();
            if (destination == null)
            {
               destination = new MessageDrivenDestination();
               ejb.setMessageDrivenDestination(destination);
            }

            destination.setDestinationType(getValue(localName, value));
         }
      }
   
public voidsetValue(MessageDrivenDestination destination, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName, java.lang.String value)
Called when a child element with simple content is read for DD.

      if (localName.equals("destination-type"))
      {
         destination.setDestinationType(getValue(localName, value));
      }
      else if (localName.equals("subscription-durability"))
      {
         destination.setSubscriptionDurability(getValue(localName, value));
      }
   
public voidsetValue(SessionEnterpriseBean ejb, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName, java.lang.String value)
Called when a child element with simple content is read for DD.

      if (!isEjbParentName(ejb, localName, value))
      {
         if (localName.equals("session-type"))
         {
            ejb.setSessionType(getValue(localName, value));
         }
         else if (localName.equals("transaction-type"))
         {
            ejb.setTransactionManagementType(getValue(localName, value));
         }
      }
   
public voidsetValue(ApplicationException exception, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName, java.lang.String value)
Called when a child element with simple content is read for DD.

      if (localName.equals("exception-class"))
      {
         exception.setExceptionClass(getValue(localName, value));
      }
      else if (localName.equals("rollback"))
      {
         exception.setRollback(Boolean.valueOf(getValue(localName, value)));
      }
   
public voidsetValue(EntityEnterpriseBean ejb, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName, java.lang.String value)
Called when a child element with simple content is read for DD.

      if (!isEjbParentName(ejb, localName, value))
      {
         if (localName.equals("persistence-type"))
         {
            ejb.setPersistenceType(getValue(localName, value));
         }
      }
   
public voidsetValue(org.jboss.metamodel.descriptor.SecurityRoleRef parent, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName, java.lang.String value)

      if (localName.equals("role-name"))
      {
         parent.setRoleName(value);
      }
      else if (localName.equals("role-link"))
      {
         parent.setRoleLink(value);
      }