FileDocCategorySizeDatePackage
JBossDDObjectFactory.javaAPI DocJBoss 4.2.133810Fri Jul 13 20:53:58 BST 2007org.jboss.ejb3.metamodel

JBossDDObjectFactory

public class JBossDDObjectFactory extends org.jboss.metamodel.descriptor.DDObjectFactory
Represents the jboss.xml deployment descriptor for the 2.1 schema
author
William DeCoste
author
Anil.Saldhana@jboss.com
version
$Revision: 61624 $

Fields Summary
private static final Logger
log
private EjbJarDD
dd
private Class
ejbClass
Constructors Summary
public JBossDDObjectFactory(EjbJarDD dd)

      super();
      this.dd = dd;
   
Methods Summary
public voidaddChild(XmlAnnotation parent, org.jboss.metamodel.descriptor.NameValuePair property, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)

      parent.addProperty(property);
   
public voidaddChild(XmlAnnotation parent, org.jboss.metamodel.descriptor.InjectionTarget injectionTarget, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)

      parent.setInjectionTarget(injectionTarget);
   
public voidaddChild(EnterpriseBeans parent, ActivationConfig config, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)

      parent.setDefaultActivationConfig(config);
   
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(Consumer parent, Producer producer, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)

      if (producer.isLocal())
         parent.addLocalProducer(producer);
      else parent.addProducer(producer);
   
public voidaddChild(Consumer parent, RemoteBinding binding, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)

      parent.addRemoteBinding(binding);
   
public voidaddChild(AssemblyDescriptor parent, MessageDestination destination, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)

      parent.addMessageDestination(destination);
   
public voidaddChild(AssemblyDescriptor parent, org.jboss.security.SecurityRoleMetaData srm, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)

      parent.addSecurityRoleMetaData(srm);
   
public voidaddChild(EnterpriseBeans parent, CacheConfig config, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)
Called when parsing character is complete.

      parent.setCacheConfig(config);
   
public voidaddChild(EnterpriseBeans parent, PoolConfig config, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)
Called when parsing character is complete.

      parent.setPoolConfig(config);
   
public voidaddChild(EnterpriseBeans parent, MethodAttributes attributes, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)
Called when parsing character is complete.

      parent.setMethodAttributes(attributes);
   
public voidaddChild(EnterpriseBeans parent, RemoteBinding binding, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)

      parent.addRemoteBinding(binding);
   
public voidaddChild(EnterpriseBeans parent, org.jboss.metamodel.descriptor.InjectionTarget ignoreDependency, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)

      parent.addIgnoreDependency(ignoreDependency);
   
public voidaddChild(EnterpriseBeans parent, XmlAnnotation xmlAnnotation, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)

      parent.addXmlAnnotation(xmlAnnotation);
   
public voidaddChild(MethodAttributes parent, Method method, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)

      parent.addMethod(method);
   
public voidaddChild(Consumer parent, CurrentMessage message, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)

      parent.setCurrentMessage(message);
   
public voidaddChild(Consumer parent, PoolConfig config, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)

      parent.setPoolConfig(config);
   
public voidaddChild(Consumer parent, MessageProperties message, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)
Called when parsing character is complete.

      parent.setMessageProperties(message);
   
public voidaddChild(CurrentMessage 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(MessageProperties 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(EnterpriseBeans parent, Service service, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)
Called when parsing character is complete.

      parent.addEnterpriseBean(service);
   
public voidaddChild(Service 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(Service parent, RemoteBinding binding, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)
Called when parsing character is complete.

      parent.addRemoteBinding(binding);
   
public voidaddChild(Service 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(Service 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(Service parent, org.jboss.metamodel.descriptor.JndiRef ref, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)
Called when parsing character is complete.

      parent.addJndiRef(ref);
   
public voidaddChild(Service 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(Consumer 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(Consumer 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(Consumer 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(Consumer parent, org.jboss.metamodel.descriptor.JndiRef ref, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)
Called when parsing character is complete.

      parent.addJndiRef(ref);
   
public voidaddChild(Consumer 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(EnterpriseBeans parent, Consumer consumer, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)
Called when parsing character is complete.

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

      parent.addJndiRef(ref);
   
public voidaddChild(EjbJarDD parent, ResourceManager manager, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)
Called when parsing character is complete.

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

   
public voidaddChild(EnterpriseBeans 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.updateEjbRef(ref);
   
public voidaddChild(EnterpriseBeans 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.updateEjbLocalRef(ref);
   
public voidaddChild(EnterpriseBeans parent, ClusterConfig config, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)
Called when parsing character is complete.

      parent.setClusterConfig(config);
   
public voidaddChild(EnterpriseBeans 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.updateResourceRef(ref);
   
public voidaddChild(EnterpriseBeans 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.updateMessageDestinationRef(ref);
   
public voidaddChild(EnterpriseBeans 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(EnterpriseBeans 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.updateResourceEnvRef(ref);
   
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;
   
public java.lang.ObjectnewChild(MethodAttributes attributes, 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(AssemblyDescriptor descriptor, 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("message-destination"))
      {
         child = new MessageDestination();
      }
      if (localName.equals("security-role"))
      {
         child = new SecurityRoleMetaData("dummy_to_be_replaced_in_setValue");
      }

      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 ((child = this.newEnvRefGroupChild(localName)) != null)
      {
         return child;
      }

      if (localName.equals("session"))
      {
         ejbClass = SessionEnterpriseBean.class;
         child = ejbs;
      }
      else if (localName.equals("message-driven"))
      {
         ejbClass = MessageDrivenBean.class;
         child = ejbs;
      }
      else if (localName.equals("service"))
      {
         child = new Service();
      }
      else if (localName.equals("consumer"))
      {
         child = new Consumer();
      }
      else if (localName.equals("method-attributes"))
      {
         child = new MethodAttributes();
      }
      else if (localName.equals("annotation"))
      {
         child = new XmlAnnotation();
      }
      else if (localName.equals("ignore-dependency"))
      {
         child = new InjectionTarget();
      }
      else if (localName.equals("cluster-config"))
      {
         child = new ClusterConfig();
      }
      else if (localName.equals("remote-binding"))
      {
         child = new RemoteBinding();
      }
      else if (localName.equals("cache-config"))
      {
         child = new CacheConfig();
      }
      else if (localName.equals("pool-config"))
      {
         child = new PoolConfig();
      }
      else if (localName.equals("default-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("default-activation-config-property"))
      {
         child = new NameValuePair();
      }

      return child;
   
public java.lang.ObjectnewChild(XmlAnnotation 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("injection-target"))
      {
         child = new InjectionTarget();
      }
      else if (localName.equals("property"))
      {
         child = new NameValuePair();
      }

      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 = dd.getEnterpriseBeans();
         if (child == null)
         {
            dd.setEnterpriseBeans(new EnterpriseBeans());
            child = dd.getEnterpriseBeans();
         }
      }
      else if (localName.equals("assembly-descriptor"))
      {
         child = dd.getAssemblyDescriptor();
         if (child == null)
         {
            dd.setAssemblyDescriptor(new AssemblyDescriptor());
            child = dd.getAssemblyDescriptor();
         }
      }
      else if (localName.equals("resource-manager"))
      {
         child = new ResourceManager();
      }

      return child;
   
public java.lang.ObjectnewChild(Consumer consumer, 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 ((child = this.newEnvRefGroupChild(localName)) != null)
         return child;

      if (localName.equals("current-message"))
      {
         child = new CurrentMessage();
      }
      else if (localName.equals("message-properties"))
      {
         child = new MessageProperties();
      }
      else if (localName.equals("producer"))
      {
         child = new Producer(false);
      }
      else if (localName.equals("local-producer"))
      {
         child = new Producer(true);
      }
      else if (localName.equals("annotation"))
      {
         child = new XmlAnnotation();
      }
      else if (localName.equals("ignore-dependency"))
      {
         child = new InjectionTarget();
      }
      else if (localName.equals("remote-binding"))
      {
         child = new RemoteBinding();
      }
      else if (localName.equals("pool-config"))
      {
         child = new PoolConfig();
      }

      return child;
   
public java.lang.ObjectnewChild(Service service, 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 ((child = this.newEnvRefGroupChild(localName)) != null)
         return child;

      if (localName.equals("ignore-dependency"))
      {
         child = new InjectionTarget();
      }
      else if (localName.equals("annotation"))
      {
         child = new XmlAnnotation();
      }
      else if (localName.equals("remote-binding"))
      {
         child = new RemoteBinding();
      }

      return child;
   
public java.lang.ObjectnewChild(CurrentMessage message, 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(MessageProperties properties, 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.ObjectnewRoot(java.lang.Object root, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName, org.xml.sax.Attributes attrs)
Return the root.

      return dd;
   
public static EjbJarDDparse(java.net.URL ddResource, EjbJarDD dd)


            
   
      ObjectModelFactory factory = null;
      Unmarshaller unmarshaller = null;

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

         if (dd == null)
            dd = new EjbJarDD();

         factory = new JBossDDObjectFactory(dd);
         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(XmlAnnotation xmlAnnotation, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName, java.lang.String value)

      if (localName.equals("annotation-class"))
      {
         xmlAnnotation.setAnnotationClass(getValue(localName, value));
      }
      else if (localName.equals("annotation-implementation-class"))
      {
         xmlAnnotation.setAnnotationImplementationClass(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)

      if (localName.equals("activation-config-property-name") || localName.equals("message-driven-config-property-name") || localName.equals("property-name"))
      {
         property.setName(getValue(localName, value));
      }
      else if (localName.equals("activation-config-property-value") || localName.equals("message-driven-config-property-value") || localName.equals("property-value"))
      {
         property.setValue(getValue(localName, value));
      }
   
public voidsetValue(ResourceManager manager, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName, java.lang.String value)

      if (localName.equals("res-name"))
      {
         manager.setResourceName(getValue(localName, value));
      }
      else if (localName.equals("res-jndi-name"))
      {
         manager.setResourceJndiName(getValue(localName, value));
      }
   
public voidsetValue(MessageDestination destination, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName, java.lang.String value)

      if (localName.equals("message-destination-name"))
      {
         destination.setMessageDestinationName(getValue(localName, value));
      }
      else if (localName.equals("jndi-name"))
      {
         destination.setJndiName(getValue(localName, value));
      }
   
public voidsetValue(EnterpriseBeans ejbs, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName, java.lang.String value)

      if (localName.equals("ejb-name"))
      {
         ejbs.setCurrentEjbName(value, ejbClass);
      }
      else if (localName.equals("jndi-name"))
      {
         ejbs.setJndiName(getValue(localName, value));
      }
      else if (localName.equals("home-jndi-name"))
      {
         ejbs.setHomeJndiName(getValue(localName, value));
      }
      else if (localName.equals("local-jndi-name"))
      {
         ejbs.setLocalJndiName(getValue(localName, value));
      }
      else if (localName.equals("local-home-jndi-name"))
      {
         ejbs.setLocalHomeJndiName(getValue(localName, value));
      }
      else if (localName.equals("security-domain"))
      {
         ejbs.setSecurityDomain(getValue(localName, value));
      }
      else if (localName.equals("depends"))
      {
         ejbs.addDependency(getValue(localName, value));
      }
      else if (localName.equals("run-as-principal"))
      {
         ejbs.setRunAsPrincipal(getValue(localName, value));
      }
      else if (localName.equals("aop-domain-name"))
      {
         ejbs.setAopDomainName(getValue(localName, value));
      }
      else if (localName.equals("resource-adapter-name"))
      {
         ejbs.setResourceAdapterName(getValue(localName, value));
      }
      else if (localName.equals("destination-jndi-name"))
      {
         ejbs.setDestinationJndiName(getValue(localName, value));
      }
      else if (localName.equals("mdb-user"))
      {
         ejbs.setMdbUser(getValue(localName, value));
      }
      else if (localName.equals("mdb-passwd"))
      {
         ejbs.setMdbPassword(getValue(localName, value));
      }
      else if (localName.equals("mdb-subscription-id"))
      {
         ejbs.setMdbSubscriptionId(getValue(localName, value));
      }
      else if (localName.equals("clustered"))
      {
         ejbs.setClustered(getValue(localName, value));
      }
      else if (localName.equals("concurrent"))
      {
         ejbs.setConcurrent(getValue(localName, value));
      }
   
public voidsetValue(Service service, 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"))
      {
         service.setEjbName(getValue(localName, value));
      }
      if (localName.equals("object-name"))
      {
         service.setObjectName(getValue(localName, value));
      }
      else if (localName.equals("ejb-class"))
      {
         service.setEjbClass(getValue(localName, value));
      }
      if (localName.equals("xmbean"))
      {
         service.setXMBean(getValue(localName, value));
      }
      else if (localName.equals("local"))
      {
         service.setLocal(getValue(localName, value));
      }
      else if (localName.equals("remote"))
      {
         service.setRemote(getValue(localName, value));
      }
      else if (localName.equals("management"))
      {
         service.setManagement(getValue(localName, value));
      }
      else if (localName.equals("jndi-name"))
      {
         service.setJndiName(getValue(localName, value));
      }
      else if (localName.equals("local-jndi-name"))
      {
         service.setLocalJndiName(getValue(localName, value));
      }
      else if (localName.equals("security-domain"))
      {
         service.setSecurityDomain(getValue(localName, value));
      }
      else if (localName.equals("aop-domain-name"))
      {
         service.setAopDomainName(getValue(localName, value));
      }
      else if (localName.equals("depends"))
      {
         service.addDependency(getValue(localName, value));
      }
   
public voidsetValue(Consumer consumer, 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("message-destination"))
      {
         consumer.setDestination(getValue(localName, value));
      }
      else if (localName.equals("message-destination-type"))
      {
         consumer.setDestinationType(getValue(localName, value));
      }
      else if (localName.equals("ejb-class"))
      {
         consumer.setEjbClass(getValue(localName, value));
         consumer.setEjbName(getValue(localName, value));
      }
      else if (localName.equals("local"))
      {
         consumer.setLocal(getValue(localName, value));
      }
      else if (localName.equals("remote"))
      {
         consumer.setRemote(getValue(localName, value));
      }
      else if (localName.equals("jndi-name"))
      {
         consumer.setJndiName(getValue(localName, value));
      }
      else if (localName.equals("local-jndi-name"))
      {
         consumer.setLocalJndiName(getValue(localName, value));
      }
      else if (localName.equals("security-domain"))
      {
         consumer.setSecurityDomain(getValue(localName, value));
      }
      else if (localName.equals("run-as-principal"))
      {
         consumer.setRunAsPrincipal(getValue(localName, value));
      }
      else if (localName.equals("aop-domain-name"))
      {
         consumer.setAopDomainName(getValue(localName, value));
      }
      else if (localName.equals("depends"))
      {
         consumer.addDependency(getValue(localName, value));
      }
   
public voidsetValue(RemoteBinding binding, 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"))
      {
         binding.setJndiName(getValue(localName, value));
      }
      else if (localName.equals("client-bind-url"))
      {
         binding.setClientBindUrl(getValue(localName, value));
      }
      else if (localName.equals("proxy-factory"))
      {
         binding.setProxyFactory(getValue(localName, value));
      }
      else if (localName.equals("interceptor-stack"))
      {
         binding.setInterceptorStack(getValue(localName, value));
      }
   
public voidsetValue(MessageProperties properties, 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("delivery"))
      {
         properties.setDelivery(getValue(localName, value));
      }
      else if (localName.equals("class"))
      {
         properties.setClassName(getValue(localName, value));
      }
      else if (localName.equals("priority"))
      {
         properties.setPriority(getValue(localName, value));
      }
   
public voidsetValue(ClusterConfig config, 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("load-balance-policy"))
      {
         config.setLoadBalancePolicy(getValue(localName, value));
      }
      else if (localName.equals("partition-name"))
      {
         config.setPartition(getValue(localName, value));
      }
   
public voidsetValue(CacheConfig config, 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("cache-class"))
      {
         config.setCacheClass(getValue(localName, value));
      }
      else if (localName.equals("cache-max-size"))
      {
         config.setMaxSize(getValue(localName, value));
      }
      else if (localName.equals("idle-timeout-seconds"))
      {
         config.setIdleTimeoutSeconds(getValue(localName, value));
      }
      else if (localName.equals("remove-timeout-seconds"))
      {
         config.setRemoveTimeoutSeconds(getValue(localName, value));
      }
      else if (localName.equals("cache-name"))
      {
         config.setName(getValue(localName, value));
      }
      else if (localName.equals("persistence-manager"))
      {
         config.setPersistenceManager(getValue(localName, value));
      }
      else if (localName.equals("replication-is-passivation"))
      {
         config.setReplicationIsPassivation(getValue(localName, value));
      }
   
public voidsetValue(PoolConfig config, 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("pool-class"))
      {
         config.setPoolClass(getValue(localName, value));
      }
      else if (localName.equals("pool-max-size"))
      {
         config.setMaxSize(getValue(localName, value));
      }
      else if (localName.equals("pool-timeout"))
      {
         config.setTimeout(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("method-name"))
      {
         method.setMethodName(getValue(localName, value));
      }
      else if (localName.equals("transaction-timeout"))
      {
         method.setTransactionTimeout(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("security-domain"))
      {
         dd.setSecurityDomain(getValue(localName, value));
      }
      else if (localName.equals("unauthenticated-principal"))
      {
         dd.setUnauthenticatedPrincipal(getValue(localName, value));
      }
      else if (localName.equals("jmx-name"))
      {
         dd.setJmxName(getValue(localName, value));
      }
   
public voidsetValue(Producer producer, 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("class"))
      {
         producer.setClassName(getValue(localName, value));
      }
      else if (localName.equals("connection-factory"))
      {
         producer.setConnectionFactory(getValue(localName, value));
      }
   
public voidsetValue(org.jboss.security.SecurityRoleMetaData srm, 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"))
      {
// FIXME: NYI         
//         srm.setRoleName(getValue(localName, value));
         throw new RuntimeException("NYI");
      }
      else if (localName.equals("principal-name"))
      {
         srm.addPrincipalName(getValue(localName, value));
      }