Top Description Methods
javax.xml.registry.infomodel

public Interface ExternalLink

extends RegistryObject, URIValidator
Imports
java.net.*, java.util.*, javax.xml.registry.*

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

Modifier and TypeMethod and Description
public String

Returns:

the URI String for this object (e.g. "http://java.sun.com")
getExternalURI
()

Gets URI to the an external resource.

public Collection<E>

Returns:

Collection of RegistryObjects. Return an empty Collection if no RegistryObjects are annotated by this object.
getLinkedObjects
()

Gets the collection of RegistryObjects that are annotated by this ExternalLink.

public void
setExternalURI(String
the URI String for this object (e.g. "http://java.sun.com")
uri
)

Sets URI for an external resource.

Inherited from javax.xml.registry.infomodel.RegistryObject:
addAssociationaddAssociationsaddClassificationaddClassificationsaddExternalIdentifieraddExternalIdentifiersaddExternalLinkaddExternalLinksgetAssociatedObjectsgetAssociationsgetAuditTrailgetClassificationsgetDescriptiongetExternalIdentifiersgetExternalLinksgetKeygetLifeCycleManagergetNamegetObjectTypegetRegistryPackagesgetSubmittingOrganizationremoveAssociationremoveAssociationsremoveClassificationremoveClassificationsremoveExternalIdentifierremoveExternalIdentifiersremoveExternalLinkremoveExternalLinkssetAssociationssetClassificationssetDescriptionsetExternalIdentifierssetExternalLinkssetKeysetNametoXML
Inherited from javax.xml.registry.infomodel.URIValidator:
getValidateURIsetValidateURI

Method Detail

getExternalURIback to summary
public String getExternalURI() throws JAXRException

Gets URI to the an external resource. Default is a NULL String.

Capability Level: 0
Returns:String

the URI String for this object (e.g. "http://java.sun.com")

Exceptions
JAXRException:
If the JAXR provider encounters an internal error
getLinkedObjectsback to summary
public Collection<E> getLinkedObjects() throws JAXRException

Gets the collection of RegistryObjects that are annotated by this ExternalLink.

Capability Level: 0
Returns:Collection<E>

Collection of RegistryObjects. Return an empty Collection if no RegistryObjects are annotated by this object.

Exceptions
JAXRException:
If the JAXR provider encounters an internal error
setExternalURIback to summary
public void setExternalURI(String uri) throws JAXRException

Sets URI for an external resource.

Capability Level: 0
Parameters
uri:String

the URI String for this object (e.g. "http://java.sun.com")

Exceptions
JAXRException:
If the JAXR provider encounters an internal error