DDObjectFactorypublic abstract class DDObjectFactory extends org.jboss.metadata.serviceref.ServiceRefObjectFactory implements org.jboss.xb.binding.ObjectModelFactory
Methods Summary |
---|
public void | addChild(PersistenceUnitRef parent, InjectionTarget target, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)
parent.setInjectionTarget(target);
| public void | addChild(PersistenceContextRef parent, InjectionTarget target, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)
parent.setInjectionTarget(target);
| public void | addChild(EnvEntry parent, InjectionTarget target, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)
parent.setInjectionTarget(target);
| public void | addChild(EjbRef parent, InjectionTarget target, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)
parent.setInjectionTarget(target);
| public void | addChild(EjbLocalRef parent, InjectionTarget target, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)
parent.setInjectionTarget(target);
| public void | addChild(ResourceRef parent, InjectionTarget target, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)
parent.setInjectionTarget(target);
| public void | addChild(ResourceEnvRef parent, InjectionTarget target, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)
parent.setInjectionTarget(target);
| public void | addChild(MessageDestinationRef parent, InjectionTarget target, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)
parent.setInjectionTarget(target);
| public void | addChild(JndiRef parent, InjectionTarget target, org.jboss.xb.binding.UnmarshallingContext navigator, java.lang.String namespaceURI, java.lang.String localName)
parent.setInjectionTarget(target);
| protected java.lang.String | getValue(java.lang.String name, java.lang.String value)
return value;
| public java.lang.Object | newChild(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.Object | newChild(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.Object | newChild(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.Object | newChild(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.Object | newChild(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.Object | newChild(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.Object | newChild(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.Object | newChild(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.Object | newChild(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.Object | newEnvRefGroupChild(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.Object | newRefChild(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 void | setValue(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 void | setValue(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 void | setValue(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 void | setValue(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 void | setValue(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 void | setValue(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 void | setValue(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 void | setValue(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 void | setValue(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 void | setValue(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 void | setValue(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 void | setValue(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 void | setValue(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 void | setValue(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 void | setValue(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 void | setValue(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);
}
}
|
|