ExternalLink (Java EE 5)

Java EE API


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 支持此功能。

英文文档:

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
 Collection
 void
 
Methods inherited from interface javax.xml.registry.infomodel.RegistryObject
 
Methods inherited from interface javax.xml.registry.infomodel.ExtensibleObject
 
Methods inherited from interface javax.xml.registry.infomodel.URIValidator
 

Method Detail

public java.util.Collection<E> getLinkedObjects() throws JAXRException
获取此 ExternalLink 注释的 RegistryObject 所组成的 Collection。

功能级别:0
return RegistryObject 所组成的 Collection。如果不存在任何此对象注释的 RegistryObject,则返回一个空 Collection。
ThrowsJAXRException: 如果 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")
ThrowsJAXRException: 如果 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")
ThrowsJAXRException: 如果 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


Submit a bug or feature

Copyright 2007 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms.

一看就知道只有菜鸟才干这么无知的事啦。

PS : 未经我党受权你也可自由散发此文档。 如有任何错误请自行修正;若因此而造成任何损失请直接找人民主席,请勿与本人联系。谢谢!