javax.enterprise.deploy.model
Interface J2eeApplicationObject

All Superinterfaces:
DeployableObject (src)

public interface J2eeApplicationObject
extends DeployableObject (src)

A deployable object for an ear


Method Summary
 void addXpathListener(ModuleType (src)  type, java.lang.String xpath, XpathListener (src)  xpl)
          Register a listener for a given xpath
 DDBean (src) [] getChildBean(ModuleType (src)  type, java.lang.String xpath)
          Get the child elements with the specified xpath
 DeployableObject (src) getDeployableObject(java.lang.String uri)
          Retrieve a deployable object
 DeployableObject (src) [] getDeployableObjects()
          Get all deployable objects in this application
 DeployableObject (src) [] getDeployableObjects(ModuleType (src)  type)
          Get all deployable objects in this application of the given module type
 java.lang.String[] getModuleUris()
          Return the list of module uris
 java.lang.String[] getModuleUris(ModuleType (src)  type)
          Return the list of module uris for a give module type
 java.lang.String[] getText(ModuleType (src)  type, java.lang.String xpath)
          Get the text for the given xpath
 void removeXpathListener(ModuleType (src)  type, java.lang.String xpath, XpathListener (src)  xpl)
          Unregister a listener for a given xpath
 
Methods inherited from interface javax.enterprise.deploy.model.DeployableObject (src)
entries, getChildBean, getClassFromScope, getDDBeanRoot, getDDBeanRoot, getEntry, getModuleDTDVersion, getText, getType
 

Method Detail

getDeployableObject

public DeployableObject (src)  getDeployableObject(java.lang.String uri)
Retrieve a deployable object

Parameters:
uri - describes where to get the deployable object
Returns:
the deployable object or null if there is no such object

getDeployableObjects

public DeployableObject (src) [] getDeployableObjects(ModuleType (src)  type)
Get all deployable objects in this application of the given module type

Parameters:
type - the module type
Returns:
the deployable objects or null if there are no such objects

getDeployableObjects

public DeployableObject (src) [] getDeployableObjects()
Get all deployable objects in this application

Returns:
the deployable objects or null are no such objects

getModuleUris

public java.lang.String[] getModuleUris(ModuleType (src)  type)
Return the list of module uris for a give module type

Parameters:
type - the module type
Returns:
the uris or null if there are none

getModuleUris

public java.lang.String[] getModuleUris()
Return the list of module uris

Returns:
the uris or null if there are none

getChildBean

public DDBean (src) [] getChildBean(ModuleType (src)  type,
                             java.lang.String xpath)
Get the child elements with the specified xpath

Parameters:
xpath - the xpath of the children
Returns:
an array of children or null if there are none

getText

public java.lang.String[] getText(ModuleType (src)  type,
                                  java.lang.String xpath)
Get the text for the given xpath

Parameters:
xpath - the xpath
Returns:
an array of Strings for the xpath or null if there are none

addXpathListener

public void addXpathListener(ModuleType (src)  type,
                             java.lang.String xpath,
                             XpathListener (src)  xpl)
Register a listener for a given xpath

Parameters:
xpath - the xpath
xpl - the listener

removeXpathListener

public void removeXpathListener(ModuleType (src)  type,
                                java.lang.String xpath,
                                XpathListener (src)  xpl)
Unregister a listener for a given xpath

Parameters:
xpath - the xpath
xpl - the listener