|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
javax.xml.registry.infomodel Interface ExternalLink
- All Superinterfaces:
- ExtensibleObject, RegistryObject, URIValidator
public interface ExternalLink
- extends RegistryObject, URIValidator
ExternalLink 实例模拟指向内容(可能位于注册表之外)的指定 URI。RegistryObject 可以与任意数量的 ExternalLink 关联,以注释带有指向外部内容的外部链接的 RegistryObject。
考虑以下情况:Submitting Organization 提交一个注册表条目(例如,一个 DTD),并希望将一些外部内容与该对象(例如 Submitting Organization 的主页)关联。ExternalLink 支持此功能。
See also | javax.xml.registry.infomodel.RegistryObject |
ExternalLink instances model a named URI to content that may reside outside the registry. RegistryObject may be associated with any number of ExternalLinks to annotate a RegistryObject with external links to external content.
Consider the case where a Submitting Organization submits a repository item (e.g. a DTD) and wants to associate some external content to that object (e.g. the Submitting Organization's home page). The ExternalLink enables this capability.
- Author:
- Farrukh S. Najmi
- See Also:
RegistryObject
Method Summary | |
---|---|
String |
getExternalURI()
Gets URI to the an external resource. |
Collection |
getLinkedObjects()
Gets the collection of RegistryObjects that are annotated by this ExternalLink. |
void |
setExternalURI(String uri)
Sets URI for an external resource. |
Methods inherited from interface javax.xml.registry.infomodel.ExtensibleObject |
---|
addSlot, addSlots, getSlot, getSlots, removeSlot, removeSlots |
Methods inherited from interface javax.xml.registry.infomodel.URIValidator |
---|
getValidateURI, setValidateURI |
Method Detail |
---|
public java.util.Collection<E>
getLinkedObjects() throws JAXRException
获取此 ExternalLink 注释的 RegistryObject 所组成的 Collection。
- 功能级别:0
return | RegistryObject 所组成的 Collection。如果不存在任何此对象注释的 RegistryObject,则返回一个空 Collection。 |
Throws | JAXRException: 如果 JAXR 提供者遇到内部错误 |
getLinkedObjects
Collection getLinkedObjects() throws JAXRException
- Gets the collection of RegistryObjects that are annotated by this
ExternalLink.
- Capability Level: 0
- Returns:
- Collection of RegistryObjects. Return an empty Collection if no RegistryObjects are annotated by this object.
- Throws:
JAXRException
- If the JAXR provider encounters an internal error
public String
getExternalURI() throws JAXRException
获取指向外部资源的 URI。默认值为 NULL 字符串。
- 功能级别:0
return | 此对象的 URI 字符串(例如 "http://java.sun.com") |
Throws | JAXRException: 如果 JAXR 提供者遇到内部错误 |
getExternalURI
String getExternalURI() throws JAXRException
- Gets URI to the an external resource.
Default is a NULL String.
- Capability Level: 0
- Returns:
- the URI String for this object (e.g. "http://java.sun.com")
- Throws:
JAXRException
- If the JAXR provider encounters an internal error
public void
setExternalURI(String uri) throws JAXRException
设置指向外部资源的 URI。
- 功能级别:0
uri | 此对象的 URI 字符串(例如 "http://java.sun.com") |
Throws | JAXRException: 如果 JAXR 提供者遇到内部错误 |
setExternalURI
void setExternalURI(String uri) throws JAXRException
- Sets URI for an external resource.
- Capability Level: 0
- Parameters:
uri
- the URI String for this object (e.g. "http://java.sun.com")- Throws:
JAXRException
- If the JAXR provider encounters an internal error
|
|||||||||
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 : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!