ExternalLink (Java EE 5 SDK)

Java

Java EE 5 SDK

深圳电信培训中心.徐海蛟老师.


javax.xml.registry.infomodel Interface ExternalLink

所有父接口:
ExtensibleObject, RegistryObject, URIValidator

public interface ExternalLink
extends RegistryObject, URIValidator

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.

作者:
Farrukh S. Najmi
另请参见:
RegistryObject

方法摘要
 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.RegistryObject
addAssociation, addAssociations, addClassification, addClassifications, addExternalIdentifier, addExternalIdentifiers, addExternalLink, addExternalLinks, getAssociatedObjects, getAssociations, getAuditTrail, getClassifications, getDescription, getExternalIdentifiers, getExternalLinks, getKey, getLifeCycleManager, getName, getObjectType, getRegistry软件包, getSubmittingOrganization, removeAssociation, removeAssociations, removeClassification, removeClassifications, removeExternalIdentifier, removeExternalIdentifiers, removeExternalLink, removeExternalLinks, setAssociations, setClassifications, setDescription, setExternalIdentifiers, setExternalLinks, setKey, setName, toXML
 
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
 

方法详细信息

getLinkedObjects

Collection getLinkedObjects()
                            throws JAXRException
Gets the collection of RegistryObjects that are annotated by this ExternalLink.

Capability Level: 0

返回:
Collection of RegistryObjects. Return an empty Collection if no RegistryObjects are annotated by this object.
抛出异常:
JAXRException - If the JAXR provider encounters an internal error

getExternalURI

String getExternalURI()
                      throws JAXRException
Gets URI to the an external resource. Default is a NULL String.

Capability Level: 0

返回:
the URI String for this object (e.g. "http://java.sun.com")
抛出异常:
JAXRException - If the JAXR provider encounters an internal error

setExternalURI

void setExternalURI(String uri)
                    throws JAXRException
Sets URI for an external resource.

Capability Level: 0

参数:
uri - the URI String for this object (e.g. "http://java.sun.com")
抛出异常:
JAXRException - If the JAXR provider encounters an internal error

Java EE 5 SDK

深圳电信培训中心.徐海蛟老师.


提交错误或意见

版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。深圳电信培训中心.徐海蛟老师教学参考.