Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1)

E13403-03

oracle.jdeveloper.deploy.jsr88
Class DescriptorBean

java.lang.Object
  extended by oracle.jdeveloper.deploy.jsr88.DescriptorBean
All Implemented Interfaces:
javax.enterprise.deploy.model.DDBean
Direct Known Subclasses:
RootDescriptorBean

public class DescriptorBean
extends java.lang.Object
implements javax.enterprise.deploy.model.DDBean

Generic implementation for the DDBean interface. Any element in a deployment descriptor can be represented by DescriptorBean.

Since:
10.1.3

Constructor Summary
DescriptorBean(java.lang.String xpath, DescriptorBean parent, org.w3c.dom.Node node)
          Creates a new DescriptorBean for a specific deployment descriptor element.
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DescriptorBean

public DescriptorBean(java.lang.String xpath,
                      DescriptorBean parent,
                      org.w3c.dom.Node node)
Creates a new DescriptorBean for a specific deployment descriptor element.

Parameters:
xpath - The path to the element, relative to its parent
parent - the parent DDBeanm or null if this DescriptorBean is a root bean
node - The XML Node representing the dd element
Method Detail

getXpath

public java.lang.String getXpath()
Specified by:
getXpath in interface javax.enterprise.deploy.model.DDBean

getText

public java.lang.String getText()
Specified by:
getText in interface javax.enterprise.deploy.model.DDBean

getId

public java.lang.String getId()
Specified by:
getId in interface javax.enterprise.deploy.model.DDBean

getRoot

public javax.enterprise.deploy.model.DDBeanRoot getRoot()
Specified by:
getRoot in interface javax.enterprise.deploy.model.DDBean

getChildBean

public javax.enterprise.deploy.model.DDBean[] getChildBean(java.lang.String xpath)
Specified by:
getChildBean in interface javax.enterprise.deploy.model.DDBean

getText

public java.lang.String[] getText(java.lang.String xpath)
Specified by:
getText in interface javax.enterprise.deploy.model.DDBean

addXpathListener

public void addXpathListener(java.lang.String xpath,
                             javax.enterprise.deploy.model.XpathListener l)
Specified by:
addXpathListener in interface javax.enterprise.deploy.model.DDBean

removeXpathListener

public void removeXpathListener(java.lang.String xpath,
                                javax.enterprise.deploy.model.XpathListener l)
Specified by:
removeXpathListener in interface javax.enterprise.deploy.model.DDBean

getAttributeNames

public java.lang.String[] getAttributeNames()
Specified by:
getAttributeNames in interface javax.enterprise.deploy.model.DDBean

getAttributeValue

public java.lang.String getAttributeValue(java.lang.String attrName)
Specified by:
getAttributeValue in interface javax.enterprise.deploy.model.DDBean

getAttribute

public static java.lang.String getAttribute(org.w3c.dom.Node node,
                                            java.lang.String attrName)
Get an attribute of a node.

Parameters:
node - the node
attrName - the name of the attribute
Returns:
the named attribute

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference
11g Release 1 (11.1.1)

E13403-03

Copyright © 1997, 2009, Oracle. All rights reserved.