|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
javax.enterprise.deploy.model Interface DDBean
- All Known Subinterfaces:
- DDBeanRoot
public interface DDBean
Implemented by:
DDBeanRoot
表示标准部署描述符片断的 Bean 接口。可为包含此 Bean 的 J2EE 应用程序提供链接。
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.
Method Summary | |
---|---|
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 |
---|
public String
getXpath()
返回 DConfigBean 提供的原 xpath 字符串。
return | 此 Bean 的 XPath。 |
getXpath
String getXpath()
- Returns the original xpath string provided by the DConfigBean.
- Returns:
- The XPath of this Bean.
public String
getText()
返回此 Bean 的 XML 文本。
return | 此 Bean 的 XML 文本。 |
getText
String getText()
- Returns the XML text for by this bean.
- Returns:
- The XML text for this Bean.
public String
getId()
返回一个特定于工具的引用,它引用部署描述符中某个元素的属性 ID。此属性是为 J2EE 1.2 和 J2EE 1.3 组件定义的。
return | 此 Bean 的 XML 文本;如果未使用标记指定任何属性,则返回 'null'。 |
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.
public DDBeanRoot
getRoot()
返回此 DDBean 的根元素。
return | 此 DDBean 树根下的 DDBeanRoot。 |
getRoot
DDBeanRoot getRoot()
- Return the root element for this DDBean.
- Returns:
- The DDBeanRoot at the root of this DDBean tree.
public DDBean[]
getChildBean(String xpath)
返回基于 XPath 的 DDBeans 列表。
xpath | 引用此标准 Bean 所使用的部署描述符中某个位置的 XPath 字符串。 |
return | DDBeans 列表;如果未找到任何匹配的 XML 数据,则返回 'null'。 |
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.
public String[]
getText(String xpath)
返回部署描述符中给定 XPath 的文本值列表。
xpath | XPath。 |
return | 此 XPath 的文本值列表;如果未找到任何匹配的 XML 数据,则返回 'null'。 |
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.
public void
addXpathListener(String xpath, XpathListener xpl)
为特定 XPath 注册一个侦听器。
xpath | 要注册此侦听器的 XPath。 |
xpl | 侦听器对象。 |
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.
public void
removeXpathListener(String xpath, XpathListener xpl)
取消为特定 XPath 注册的侦听器。
xpath | 要取消注册此侦听器的 XPath。 |
xpl | 侦听器对象。 |
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.
public String[]
getAttributeNames()
返回与 XML 元素关联的属性名称列表。
return | 此元素的属性名称列表。如果不存在任何属性,则返回 null。 |
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.
public String
getAttributeValue(String attrName)
返回指定属性的字符串值。
return | 属性的值。如果不存在这种属性,则返回 null。 |
getAttributeValue
String getAttributeValue(String attrName)
- Returns the string value of the named attribute.
- Returns:
- a the value of the attribute. Null is returned if there is no such attribute.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Submit a bug or feature
Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.
PS : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!