|
Java EE 5 SDK 深圳电信培训中心.徐海蛟老师. |
||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造器 | 方法 | 详细信息: 字段 | 构造器 | 方法 |
javax.enterprise.deploy.model Interface DDBean
- 所有已知子接口:
- DDBeanRoot
public interface DDBean
An interface for beans that represent a fragment of a standard deployment descriptor. A link is provided to the J2EE application that includes this bean.
方法摘要 | |
---|---|
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. |
方法详细信息 |
---|
getXpath
String getXpath()
- Returns the original xpath string provided by the DConfigBean.
- 返回:
- The XPath of this Bean.
getText
String getText()
- Returns the XML text for by this bean.
- 返回:
- 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.
- 返回:
- 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.
- 返回:
- The DDBeanRoot at the root of this DDBean tree.
getChildBean
DDBean[] getChildBean(String xpath)
- Return a list of DDBeans based upon the XPath.
- 参数:
xpath
- An XPath string referring to a location in the same deployment descriptor as this standard bean.- 返回:
- 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.
- 参数:
xpath
- An XPath.- 返回:
- 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.
- 参数:
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.
- 参数:
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.
- 返回:
- a list of attribute names on this element. Null is returned if there are no attributes.
getAttributeValue
String getAttributeValue(String attrName)
- Returns the string value of the named attribute.
- 返回:
- a the value of the attribute. Null is returned if there is no such attribute.
|
Java EE 5 SDK 深圳电信培训中心.徐海蛟老师. |
||||||||
上一个类 下一个类 | 框架 无框架 | ||||||||
摘要: 嵌套 | 字段 | 构造器 | 方法 | 详细信息: 字段 | 构造器 | 方法 |
提交错误或意见
版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。深圳电信培训中心.徐海蛟老师教学参考.