Class ExternalLinkImpl

    • Constructor Detail

      • ExternalLinkImpl

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

      • getLinkedObjects

        public Collection getLinkedObjects()
                                    throws JAXRException
        Gets the collection of RegistryObjects that are annotated by this ExternalLink
        Specified by:
        getLinkedObjects in interface ExternalLink
        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
      • setValidateURI

        public void setValidateURI​(boolean validate)
                            throws JAXRException
        Turns validation on or off.
        Specified by:
        setValidateURI in interface URIValidator
        Parameters:
        validate - true implies JAXR provider must perform validation of URIs when they are set; false implies validation is turned off
        Throws:
        JAXRException - If the JAXR provider encounters an internal error
        See Also:
        URIValidatorImpl
      • getValidateURI

        public boolean getValidateURI()
        Whether or not validation is turned on
        Specified by:
        getValidateURI in interface URIValidator
        Returns:
        true implies JAXR provider must perform validation of URIs when they are set; false implies validation is turned off
        See Also:
        URIValidatorImpl
      • getExternalURI

        public String getExternalURI()
                              throws JAXRException
        Gets URI to the an external resource
        Specified by:
        getExternalURI in interface ExternalLink
        Returns:
        the URI String for this object (e.g. "http://java.sun.com")
        Throws:
        JAXRException - If the JAXR provider encounters an internal error
      • setExternalURI

        public void setExternalURI​(String externalUri)
                            throws JAXRException
        Sets URI for an external resource. Throws an exception if the uri is invalid (when validation is on).
        Specified by:
        setExternalURI in interface ExternalLink
        Parameters:
        externalUri - the URI String for this object (e.g. "http://java.sun.com")
        Throws:
        JAXRException - If the JAXR provider encounters an internal error
      • getKey

        public Key getKey()
                   throws 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 RegistryObject
        Overrides:
        getKey in class RegistryObjectImpl
        Returns:
        the Key for this object
        Throws:
        JAXRException - If the JAXR provider encounters an internal error