Class ExternalLinkImpl

  • All Implemented Interfaces:
    Serializable, javax.xml.registry.infomodel.ExtensibleObject, javax.xml.registry.infomodel.ExternalLink, javax.xml.registry.infomodel.RegistryObject, javax.xml.registry.infomodel.URIValidator

    public class ExternalLinkImpl
    extends RegistryObjectImpl
    implements javax.xml.registry.infomodel.ExternalLink, Serializable
    Implementation of ExternalLink interface
    Author:
    Farrukh S. Najmi, Kathy Walsh
    See Also:
    Serialized Form
    • Constructor Detail

      • ExternalLinkImpl

        public ExternalLinkImpl()
                         throws javax.xml.registry.JAXRException
        Default constructor initializes list and creates URIValidatorImpl object for delgating uri validations tasks.
        Throws:
        javax.xml.registry.JAXRException
      • ExternalLinkImpl

        public ExternalLinkImpl​(String uri)
                         throws javax.xml.registry.JAXRException
        Utility constructor used when URI is given.
        Throws:
        javax.xml.registry.JAXRException
      • ExternalLinkImpl

        public ExternalLinkImpl​(String uri,
                                String description)
                         throws javax.xml.registry.JAXRException
        Utility constructor with URI and description.
        Throws:
        javax.xml.registry.JAXRException
    • Method Detail

      • getLinkedObjects

        public Collection getLinkedObjects()
                                    throws javax.xml.registry.JAXRException
        Gets the collection of RegistryObjects that are annotated by this ExternalLink
        Specified by:
        getLinkedObjects in interface javax.xml.registry.infomodel.ExternalLink
        Throws:
        javax.xml.registry.JAXRException
      • setValidateURI

        public void setValidateURI​(boolean validate)
                            throws javax.xml.registry.JAXRException
        Turns validation on or off.
        Specified by:
        setValidateURI in interface javax.xml.registry.infomodel.URIValidator
        Throws:
        javax.xml.registry.JAXRException
        See Also:
        URIValidatorImpl
      • getValidateURI

        public boolean getValidateURI()
        Whether or not validation is turned on
        Specified by:
        getValidateURI in interface javax.xml.registry.infomodel.URIValidator
        See Also:
        URIValidatorImpl
      • getExternalURI

        public String getExternalURI()
                              throws javax.xml.registry.JAXRException
        Gets URI to the an external resource
        Specified by:
        getExternalURI in interface javax.xml.registry.infomodel.ExternalLink
        Throws:
        javax.xml.registry.JAXRException
      • setExternalURI

        public void setExternalURI​(String externalUri)
                            throws javax.xml.registry.JAXRException
        Sets URI for an external resource. Throws an exception if the uri is invalid (when validation is on).
        Specified by:
        setExternalURI in interface javax.xml.registry.infomodel.ExternalLink
        Throws:
        javax.xml.registry.JAXRException
      • getKey

        public javax.xml.registry.infomodel.Key getKey()
                                                throws javax.xml.registry.JAXRException
        Override the behavior in RegistryObject to return a provider generated id. Gets a sequence id from the first parent registry object in registryObjects ArrayList.
        Specified by:
        getKey in interface javax.xml.registry.infomodel.RegistryObject
        Overrides:
        getKey in class RegistryObjectImpl
        Throws:
        javax.xml.registry.JAXRException