org.codehaus.cargo.module.ejb.orion
Class OrionEjbJarXml

java.lang.Object
  extended by org.jdom.Document
      extended by org.codehaus.cargo.module.AbstractDescriptor
          extended by org.codehaus.cargo.module.ejb.orion.OrionEjbJarXml
All Implemented Interfaces:
Serializable, Cloneable, Descriptor, VendorEjbDescriptor, VendorDescriptor, org.jdom.Parent

public class OrionEjbJarXml
extends AbstractDescriptor
implements VendorEjbDescriptor

Encapsulates the DOM representation of a oracle ejb deployment descriptor orion-ejb-jar.xml to provide convenience methods for easy access and manipulation.

Version:
$Id: OrionEjbJarXml.java 1705 2008-09-02 13:14:55Z adriana $
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jdom.Document
baseURI
 
Constructor Summary
OrionEjbJarXml(org.jdom.Element document, DescriptorType type)
          Constructor.
 
Method Summary
 String getFileName()
          Returns the file name of this descriptor.
 String getJndiName(EjbDef ejb)
          Returns the jndi name for an EJB.
 
Methods inherited from class org.codehaus.cargo.module.AbstractDescriptor
addElement, checkElement, createNestedText, getChildText, getChildText, getDescriptorType, getDocument, getElements, getElements, getImmediateChild, getInsertionPointFor, getNestedElements, getNestedText, getTagByIdentifier, getTagByIdentifier, getTags, getTags, getText
 
Methods inherited from class org.jdom.Document
addContent, addContent, addContent, addContent, clone, cloneContent, detachRootElement, equals, getBaseURI, getContent, getContent, getContent, getContentSize, getDescendants, getDescendants, getDocType, getParent, getProperty, getRootElement, hashCode, hasRootElement, indexOf, removeContent, removeContent, removeContent, removeContent, setBaseURI, setContent, setContent, setContent, setContent, setDocType, setProperty, setRootElement, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.codehaus.cargo.module.Descriptor
addElement, getDescriptorType, getDocument, getRootElement, getTagByIdentifier, getTags
 
Methods inherited from interface org.jdom.Parent
clone, cloneContent, getContent, getContent, getContent, getContentSize, getDescendants, getDescendants, getParent, indexOf, removeContent, removeContent, removeContent, removeContent
 

Constructor Detail

OrionEjbJarXml

public OrionEjbJarXml(org.jdom.Element document,
                      DescriptorType type)
Constructor.

Parameters:
document - The DOM document representing the parsed deployment descriptor
type - the type of the descriptor
Method Detail

getFileName

public String getFileName()
Returns the file name of this descriptor. For example "web.xml", "weblogic.xml", etc.

Specified by:
getFileName in interface Descriptor
Returns:
the file name
See Also:
Descriptor.getFileName()

getJndiName

public String getJndiName(EjbDef ejb)
Returns the jndi name for an EJB.

Specified by:
getJndiName in interface VendorEjbDescriptor
Parameters:
ejb - The EjbDef to get the jndi for
Returns:
the jndi name of the ejb
See Also:
VendorEjbDescriptor.getJndiName(EjbDef)


Copyright © 2004-2012 Codehaus. All Rights Reserved.