FileDocCategorySizeDatePackage
DDBean.javaAPI DocGlassfish v2 API4629Fri May 04 22:35:44 BST 2007javax.enterprise.deploy.model

DDBean

public interface DDBean
An interface for beans that represent a fragment of a standard deployment descriptor. A link is provided to the J2EE application that includes this bean.

Fields Summary
Constructors Summary
Methods Summary
public voidaddXpathListener(java.lang.String xpath, XpathListener xpl)
Register a listener for a specific XPath.

param
xpath The XPath this listener is to be registered for.
param
xpl The listener object.

public java.lang.String[]getAttributeNames()
Returns the list of attribute names associated with the XML element.

return
a list of attribute names on this element. Null is returned if there are no attributes.

public java.lang.StringgetAttributeValue(java.lang.String attrName)
Returns the string value of the named attribute.

return
a the value of the attribute. Null is returned if there is no such attribute.

public javax.enterprise.deploy.model.DDBean[]getChildBean(java.lang.String xpath)
Return a list of DDBeans based upon the XPath.

param
xpath An XPath string referring to a location in the same deployment descriptor as this standard bean.
return
a list of DDBeans or 'null' if no matching XML data is found.

public java.lang.StringgetId()
Returns a tool-specific reference for attribute ID on an element in the deployment descriptor. This attribute is defined for J2EE 1.2 and 1.3 components.

return
The XML text for this Bean or 'null' if no attribute was specifed with the tag.

public DDBeanRootgetRoot()
Return the root element for this DDBean.

return
The DDBeanRoot at the root of this DDBean tree.

public java.lang.StringgetText()
Returns the XML text for by this bean.

return
The XML text for this Bean.

public java.lang.String[]getText(java.lang.String xpath)
Return a list of text values for a given XPath in the deployment descriptor.

param
xpath An XPath.
return
The list text values for this XPath or 'null' if no matching XML data is found.

public java.lang.StringgetXpath()
Returns the original xpath string provided by the DConfigBean.

return
The XPath of this Bean.

public voidremoveXpathListener(java.lang.String xpath, XpathListener xpl)
Unregister a listener for a specific XPath.

param
xpath The XPath from which this listener is to be unregistered.
param
xpl The listener object.