-
- All Known Subinterfaces:
- DDBeanRoot
public interface DDBean
An interface for beans that represent a fragment of a standard deployment descriptor. A link is provided to the Java EE application that includes this bean.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description void
addXpathListener(String xpath, XpathListener xpl)
Register a listener for a specific XPath.String[]
getAttributeNames()
Returns the list of attribute names associated with the XML element.String
getAttributeValue(String attrName)
Returns the string value of the named attribute.DDBean[]
getChildBean(String xpath)
Return a list of DDBeans based upon the XPath.String
getId()
Returns a tool-specific reference for attribute ID on an element in the deployment descriptor.DDBeanRoot
getRoot()
Return the root element for this DDBean.String
getText()
Returns the XML text for by this bean.String[]
getText(String xpath)
Return a list of text values for a given XPath in the deployment descriptor.String
getXpath()
Returns the original xpath string provided by the DConfigBean.void
removeXpathListener(String xpath, XpathListener xpl)
Unregister a listener for a specific XPath.
-
-
-
Method Detail
-
getXpath
String getXpath()
Returns the original xpath string provided by the DConfigBean.- Returns:
- The XPath of this Bean.
-
getText
String getText()
Returns the XML text for by this bean.- Returns:
- The XML text for this Bean.
-
getId
String getId()
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.- Returns:
- The XML text for this Bean or 'null' if no attribute was specifed with the tag.
-
getRoot
DDBeanRoot getRoot()
Return the root element for this DDBean.- Returns:
- The DDBeanRoot at the root of this DDBean tree.
-
getChildBean
DDBean[] getChildBean(String xpath)
Return a list of DDBeans based upon the XPath.- Parameters:
xpath
- An XPath string referring to a location in the same deployment descriptor as this standard bean.- Returns:
- a list of DDBeans or 'null' if no matching XML data is found.
-
getText
String[] getText(String xpath)
Return a list of text values for a given XPath in the deployment descriptor.- Parameters:
xpath
- An XPath.- Returns:
- The list text values for this XPath or 'null' if no matching XML data is found.
-
addXpathListener
void addXpathListener(String xpath, XpathListener xpl)
Register a listener for a specific XPath.- Parameters:
xpath
- The XPath this listener is to be registered for.xpl
- The listener object.
-
removeXpathListener
void removeXpathListener(String xpath, XpathListener xpl)
Unregister a listener for a specific XPath.- Parameters:
xpath
- The XPath from which this listener is to be unregistered.xpl
- The listener object.
-
getAttributeNames
String[] getAttributeNames()
Returns the list of attribute names associated with the XML element.- Returns:
- a list of attribute names on this element. Null is returned if there are no attributes.
-
-
Traduction non disponible
Les API Java ne sont pas encore traduites en français sur l'infobrol. Seule la version anglaise est disponible pour l'instant.
Version en cache
22/08/2025 01:55:02 Cette version de la page est en cache (à la date du 22/08/2025 01:55:02) afin d'accélérer le traitement.Vous pouvez activer le mode utilisateur dans le menu en haut pour afficher la version plus récente de la page.
Document créé le 14/04/2008, dernière modification le 18/08/2025
Source du document imprimé : https://www.gaudry.be/java-api-javaee-rf-javax/enterprise/deploy/model/DDBean.html
L'infobrol est un site personnel dont le contenu n'engage que moi. Le texte est mis à disposition sous licence CreativeCommons(BY-NC-SA). Plus d'info sur les conditions d'utilisation et sur l'auteur.
Références
Ces références et liens indiquent des documents consultés lors de la rédaction de cette page, ou qui peuvent apporter un complément d'information, mais les auteurs de ces sources ne peuvent être tenus responsables du contenu de cette page.
L'auteur de ce site est seul responsable de la manière dont sont présentés ici les différents concepts, et des libertés qui sont prises avec les ouvrages de référence. N'oubliez pas que vous devez croiser les informations de sources multiples afin de diminuer les risques d'erreurs.