public class DescriptorBean
extends java.lang.Object
implements javax.enterprise.deploy.model.DDBean
Constructor and Description |
---|
DescriptorBean(java.lang.String xpath,
DescriptorBean parent,
org.w3c.dom.Node node)
Creates a new DescriptorBean for a specific deployment descriptor element.
|
Modifier and Type | Method and Description |
---|---|
void |
addXpathListener(java.lang.String xpath,
javax.enterprise.deploy.model.XpathListener l) |
static java.lang.String |
getAttribute(org.w3c.dom.Node node,
java.lang.String attrName)
Get an attribute of a node.
|
java.lang.String[] |
getAttributeNames() |
java.lang.String |
getAttributeValue(java.lang.String attrName) |
javax.enterprise.deploy.model.DDBean[] |
getChildBean(java.lang.String xpath) |
java.lang.String |
getId() |
javax.enterprise.deploy.model.DDBeanRoot |
getRoot() |
java.lang.String |
getText() |
java.lang.String[] |
getText(java.lang.String xpath) |
java.lang.String |
getXpath() |
void |
removeXpathListener(java.lang.String xpath,
javax.enterprise.deploy.model.XpathListener l) |
public DescriptorBean(java.lang.String xpath, DescriptorBean parent, org.w3c.dom.Node node)
xpath
- The path to the element, relative to its parentparent
- the parent DDBeanm or null
if this
DescriptorBean is a root beannode
- The XML Node representing the dd elementpublic java.lang.String getXpath()
getXpath
in interface javax.enterprise.deploy.model.DDBean
public java.lang.String getText()
getText
in interface javax.enterprise.deploy.model.DDBean
public java.lang.String getId()
getId
in interface javax.enterprise.deploy.model.DDBean
public javax.enterprise.deploy.model.DDBeanRoot getRoot()
getRoot
in interface javax.enterprise.deploy.model.DDBean
public javax.enterprise.deploy.model.DDBean[] getChildBean(java.lang.String xpath)
getChildBean
in interface javax.enterprise.deploy.model.DDBean
public java.lang.String[] getText(java.lang.String xpath)
getText
in interface javax.enterprise.deploy.model.DDBean
public void addXpathListener(java.lang.String xpath, javax.enterprise.deploy.model.XpathListener l)
addXpathListener
in interface javax.enterprise.deploy.model.DDBean
public void removeXpathListener(java.lang.String xpath, javax.enterprise.deploy.model.XpathListener l)
removeXpathListener
in interface javax.enterprise.deploy.model.DDBean
public java.lang.String[] getAttributeNames()
getAttributeNames
in interface javax.enterprise.deploy.model.DDBean
public java.lang.String getAttributeValue(java.lang.String attrName)
getAttributeValue
in interface javax.enterprise.deploy.model.DDBean
public static java.lang.String getAttribute(org.w3c.dom.Node node, java.lang.String attrName)
node
- the nodeattrName
- the name of the attribute