javax.enterprise.deploy.model
Interface DDBean

All Known Subinterfaces:
DDBeanRoot

public interface DDBean

A fragment of a standard deployment descriptor.

Version:
$Revision: 57196 $
Author:
Adrian Brock

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

Method Detail

getXpath

String getXpath()
Returns the original xpath string provided by the DConfigBean

Returns:
the xpath

getText

String getText()
Returns the XML text for this bean

Returns:
the text

getId

String getId()
Returns the tool specific attribute ID

Returns:
the id or null if there is no id

getRoot

DDBeanRoot getRoot()
Get the root element

Returns:
the root element

getChildBean

DDBean[] getChildBean(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

String[] getText(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

void addXpathListener(String xpath,
                      XpathListener xpl)
Register a listener for a given xpath

Parameters:
xpath - the xpath
xpl - the listener

removeXpathListener

void removeXpathListener(String xpath,
                         XpathListener xpl)
Unregister a listener for a given xpath

Parameters:
xpath - the xpath
xpl - the listener

getAttributeNames

String[] getAttributeNames()
Returns the list of attributes associated with this element

Returns:
the list of attributes

getAttributeValue

String getAttributeValue(String attrName)
Get the value for a given attribute

Parameters:
attrName - the attribute name
Returns:
the value


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.