FileDocCategorySizeDatePackage
DDObjectFactory.javaAPI DocJBoss 4.2.116404Fri Jul 13 20:54:00 BST 2007org.jboss.metamodel.descriptor

DDObjectFactory

public abstract class DDObjectFactory extends org.jboss.metadata.serviceref.ServiceRefObjectFactory implements org.jboss.xb.binding.ObjectModelFactory
author
William DeCoste
author
Thomas.Diesler@jboss.com
version
$Revision: 62798 $

Fields Summary
Constructors Summary
Methods Summary
public voidaddChild(PersistenceUnitRef parent, InjectionTarget target, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)

      parent.setInjectionTarget(target);
   
public voidaddChild(PersistenceContextRef parent, InjectionTarget target, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)

      parent.setInjectionTarget(target);
   
public voidaddChild(EnvEntry parent, InjectionTarget target, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)

      parent.setInjectionTarget(target);
   
public voidaddChild(EjbRef parent, InjectionTarget target, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)

      parent.setInjectionTarget(target);
   
public voidaddChild(EjbLocalRef parent, InjectionTarget target, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)

      parent.setInjectionTarget(target);
   
public voidaddChild(ResourceRef parent, InjectionTarget target, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)

      parent.setInjectionTarget(target);
   
public voidaddChild(ResourceEnvRef parent, InjectionTarget target, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)

      parent.setInjectionTarget(target);
   
public voidaddChild(MessageDestinationRef parent, InjectionTarget target, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)

      parent.setInjectionTarget(target);
   
public voidaddChild(JndiRef parent, InjectionTarget target, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)

      parent.setInjectionTarget(target);
   
protected java.lang.StringgetValue(java.lang.String name, java.lang.String value)

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

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

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

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

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

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

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

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

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

      return newRefChild(ref, localName);
   
protected java.lang.ObjectnewEnvRefGroupChild(java.lang.String localName)

      Object child = null;

      if (localName.equals("ejb-local-ref"))
      {
         child = new EjbLocalRef();
      }
      else if (localName.equals("ejb-ref"))
      {
         child = new EjbRef();
      }
      else if (localName.equals("resource-ref"))
      {
         child = new ResourceRef();
      }
      else if (localName.equals("resource-env-ref"))
      {
         child = new ResourceEnvRef();
      }
      else if (localName.equals("env-entry"))
      {
         child = new EnvEntry();
      }
      else if (localName.equals("message-destination-ref"))
      {
         child = new MessageDestinationRef();
      }
      else if (localName.equals("service-ref"))
      {
         child = new ServiceRefDelegate().newServiceRefMetaData();
      }
      else if (localName.equals("jndi-ref"))
      {
         child = new JndiRef();
      }
      else if (localName.equals("persistence-unit-ref"))
      {
         child = new PersistenceUnitRef();
      }
      else if (localName.equals("persistence-context-ref"))
      {
         child = new PersistenceContextRef();
      }

      return child;
   
protected java.lang.ObjectnewRefChild(Ref ref, java.lang.String localName)

      Object child = null;

      if (localName.equals("ignore-dependency"))
      {
         ref.setIgnoreDependency(true);
      }
      else if (localName.equals("injection-target"))
      {
         InjectionTarget target = new InjectionTarget();
         child = target;
      }

      return child;
   
public voidsetValue(EjbLocalRef ref, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName, java.lang.String value)

      if (localName.equals("ejb-ref-name"))
      {
         ref.setEjbRefName(getValue(localName, value));
      }
      else if (localName.equals("ejb-ref-type"))
      {
         ref.setEjbRefType(getValue(localName, value));
      }
      else if (localName.equals("local-home"))
      {
         ref.setLocalHome(getValue(localName, value));
      }
      else if (localName.equals("local"))
      {
         ref.setLocal(getValue(localName, value));
      }
      else if (localName.equals("ejb-link"))
      {
         ref.setEjbLink(getValue(localName, value));
      }
      else if (localName.equals("mapped-name") || localName.equals("local-jndi-name") || localName.equals("jndi-name"))
      {
         ref.setMappedName(getValue(localName, value));
      }
      else if (localName.equals("ignore-dependency"))
      {
         ref.setIgnoreDependency(true);
      }
   
public voidsetValue(EjbRef ref, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName, java.lang.String value)

      if (localName.equals("ejb-ref-name"))
      {
         ref.setEjbRefName(getValue(localName, value));
      }
      else if (localName.equals("ejb-ref-type"))
      {
         ref.setEjbRefType(getValue(localName, value));
      }
      else if (localName.equals("home"))
      {
         ref.setHome(getValue(localName, value));
      }
      else if (localName.equals("remote"))
      {
         ref.setRemote(getValue(localName, value));
      }
      else if (localName.equals("ejb-link"))
      {
         ref.setEjbLink(getValue(localName, value));
      }
      else if (localName.equals("mapped-name") || localName.equals("jndi-name"))
      {
         ref.setMappedName(getValue(localName, value));
      }
      else if (localName.equals("ignore-dependency"))
      {
         ref.setIgnoreDependency(true);
      }
   
public voidsetValue(InjectionTarget target, 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("injection-target-class"))
      {
         target.setTargetClass(getValue(localName, value));
      }
      else if (localName.equals("injection-target-name"))
      {
         target.setTargetName(getValue(localName, value));
      }
   
public voidsetValue(MessageDestinationRef ref, 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("description"))
      {
         ref.setDescription(getValue(localName, value));
      }
      else if (localName.equals("message-destination-ref-name"))
      {
         ref.setMessageDestinationRefName(getValue(localName, value));
      }
      else if (localName.equals("message-destination-type"))
      {
         ref.setMessageDestinationType(getValue(localName, value));
      }
      else if (localName.equals("message-destination-usage"))
      {
         ref.setMessageDestinationUsage(getValue(localName, value));
      }
      else if (localName.equals("message-destination-link"))
      {
         ref.setMessageDestinationLink(getValue(localName, value));
      }
      else if (localName.equals("mapped-name") || localName.equals("jndi-name"))
      {
         ref.setMappedName(getValue(localName, value));
      }
   
public voidsetValue(EnvEntry entry, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName, java.lang.String value)

      if (localName.equals("description"))
      {
         entry.setDescription(getValue(localName, value));
      }
      else if (localName.equals("env-entry-name"))
      {
         entry.setEnvEntryName(getValue(localName, value));
      }
      else if (localName.equals("env-entry-type"))
      {
         entry.setEnvEntryType(getValue(localName, value));
      }
      else if (localName.equals("env-entry-value"))
      {
         entry.setEnvEntryValue(getValue(localName, value));
      }
   
public voidsetValue(ResourceEnvRef envRef, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName, java.lang.String value)

      if (localName.equals("res-ref-name") || localName.equals("resource-env-ref-name"))
      {
         envRef.setResRefName(getValue(localName, value));
      }
      else if (localName.equals("res-type") || localName.equals("resource-env-ref-type"))
      {
         envRef.setResType(getValue(localName, value));
      }
      else if (localName.equals("res-auth"))
      {
         envRef.setResAuth(getValue(localName, value));
      }
      else if (localName.equals("res-sharing-scope"))
      {
         envRef.setResSharingScope(getValue(localName, value));
      }
      else if (localName.equals("mapped-name") || localName.equals("jndi-name"))
      {
         envRef.setMappedName(getValue(localName, value));
      }
   
public voidsetValue(ResourceRef ref, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName, java.lang.String value)

      if (localName.equals("res-ref-name") || localName.equals("resource-env-ref-name"))
      {
         ref.setResRefName(getValue(localName, value));
      }
      else if (localName.equals("res-type") || localName.equals("resource-env-ref-type"))
      {
         ref.setResType(getValue(localName, value));
      }
      else if (localName.equals("res-auth"))
      {
         ref.setResAuth(getValue(localName, value));
      }
      else if (localName.equals("res-sharing-scope"))
      {
         ref.setResSharingScope(getValue(localName, value));
      }
      else if (localName.equals("mapped-name") || localName.equals("jndi-name"))
      {
         ref.setMappedName(getValue(localName, value));
         ref.setJndiName(getValue(localName, value));
      }
      else if (localName.equals("res-url"))
      {
         ref.setResUrl(getValue(localName, value));
      }
      else if (localName.equals("resource-name"))
      {
         ref.setResourceName(getValue(localName, value));
         ref.setMappedName(getValue(localName, value));
      }
   
public voidsetValue(NameValuePair nvPair, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName, java.lang.String value)

      if (localName.equals("name"))
      {
         nvPair.setName(value);
      }
      else if (localName.equals("value"))
      {
         nvPair.setValue(value);
      }
   
public voidsetValue(SecurityRole role, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName, java.lang.String value)

      if (localName.equals("role-name"))
      {
         role.setRoleName(getValue(localName, value));
      }
   
public voidsetValue(JndiRef ref, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName, java.lang.String value)

      if (localName.equals("mapped-name"))
      {
         ref.setMappedName(getValue(localName, value));
      }
      else if (localName.equals("jndi-ref-name"))
      {
         ref.setJndiRefName(getValue(localName, value));
      }
   
public voidsetValue(RunAs runAs, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName, java.lang.String value)

      if (localName.equals("role-name"))
      {
         runAs.setRoleName(getValue(localName, value));
      }
   
public voidsetValue(SecurityRoleRef ref, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName, java.lang.String value)

      if (localName.equals("role-name"))
      {
         ref.setRoleName(getValue(localName, value));
      }
      else if (localName.equals("role-link"))
      {
         ref.setRoleLink(getValue(localName, value));
      }
   
public voidsetValue(Listener listener, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName, java.lang.String value)

      if (localName.equals("listener-class"))
      {
         listener.setListenerClass(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("mapped-name") || localName.equals("jndi-name"))
      {
         destination.setMappedName(getValue(localName, value));
      }
   
public voidsetValue(PersistenceUnitRef ref, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName, java.lang.String value)

      if (localName.equals("persistence-unit-ref-name"))
      {
         ref.setRefName(getValue(localName, value));
      }
      else if (localName.equals("persistence-unit-name"))
      {
         ref.setUnitName(getValue(localName, value));
      }
   
public voidsetValue(PersistenceContextRef ref, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName, java.lang.String value)

      if (localName.equals("persistence-context-ref-name"))
      {
         ref.setRefName(getValue(localName, value));
      }
      else if (localName.equals("persistence-unit-name"))
      {
         ref.setUnitName(getValue(localName, value));
      }
      else if (localName.equals("persistence-context-type"))
      {
         if (value.toLowerCase().equals("transaction"))
         {
            ref.setPersistenceContextType(PersistenceContextType.TRANSACTION);
         }
         else
         {
            ref.setPersistenceContextType(PersistenceContextType.EXTENDED);
         }
      }