javax.enterprise.deploy.model
Interface DDBean

All Known Subinterfaces:
DDBeanRoot (src)

public interface DDBean

A fragment of a standard deployment descriptor.


Method Summary
 void addXpathListener(java.lang.String xpath, XpathListener (src)  xpl)
          Register a listener for a given xpath
 java.lang.String[] getAttributeNames()
          Returns the list of attributes associated with this element
 java.lang.String getAttributeValue(java.lang.String attrName)
          Get the value for a given attribute
 DDBean (src) [] getChildBean(java.lang.String xpath)
          Get the child elements with the specified xpath
 java.lang.String getId()
          Returns the tool specific attribute ID
 DDBeanRoot (src) getRoot()
          Get the root element
 java.lang.String getText()
          Returns the XML text for this bean
 java.lang.String[] getText(java.lang.String xpath)
          Get the text for the given xpath
 java.lang.String getXpath()
          Returns the original xpath string provided by the DConfigBean
 void removeXpathListener(java.lang.String xpath, XpathListener (src)  xpl)
          Unregister a listener for a given xpath
 

Method Detail

getXpath

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

Returns:
the xpath

getText

public java.lang.String getText()
Returns the XML text for this bean

Returns:
the text

getId

public java.lang.String getId()
Returns the tool specific attribute ID

Returns:
the id or null if there is no id

getRoot

public DDBeanRoot (src)  getRoot()
Get the root element

Returns:
the root element

getChildBean

public DDBean (src) [] getChildBean(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(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(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(java.lang.String xpath,
                                XpathListener (src)  xpl)
Unregister a listener for a given xpath

Parameters:
xpath - the xpath
xpl - the listener

getAttributeNames

public java.lang.String[] getAttributeNames()
Returns the list of attributes associated with this element

Returns:
the list of attributes

getAttributeValue

public java.lang.String getAttributeValue(java.lang.String attrName)
Get the value for a given attribute

Parameters:
attrName - the attribute name
Returns:
the value