Class ResourceResolverSpi


  • public abstract class ResourceResolverSpi
    extends java.lang.Object
    During reference validation, we have to retrieve resources from somewhere.
    Author:
    $Author$
    • Field Detail

      • _properties

        protected java.util.Map _properties
        Field _properties
    • Constructor Detail

      • ResourceResolverSpi

        public ResourceResolverSpi()
    • Method Detail

      • engineSetProperty

        public void engineSetProperty​(java.lang.String key,
                                      java.lang.String value)
        Method engineSetProperty
        Parameters:
        key -
        value -
      • engineGetProperty

        public java.lang.String engineGetProperty​(java.lang.String key)
        Method engineGetProperty
        Parameters:
        key -
        Returns:
        the value of the property
      • engineAddProperies

        public void engineAddProperies​(java.util.Map properties)
        Parameters:
        properties -
      • engineCanResolve

        public abstract boolean engineCanResolve​(org.w3c.dom.Attr uri,
                                                 java.lang.String BaseURI)
        This method helps the ResourceResolver to decide whether a ResourceResolverSpi is able to perform the requested action.
        Parameters:
        uri -
        BaseURI -
        Returns:
        true if the engine can resolve the uri
      • engineGetPropertyKeys

        public java.lang.String[] engineGetPropertyKeys()
        Method engineGetPropertyKeys
        Returns:
        the property keys
      • understandsProperty

        public boolean understandsProperty​(java.lang.String propertyToTest)
        Method understandsProperty
        Parameters:
        propertyToTest -
        Returns:
        true if understands the property
      • fixURI

        public static java.lang.String fixURI​(java.lang.String str)
        Fixes a platform dependent filename to standard URI form.
        Parameters:
        str - The string to fix.
        Returns:
        Returns the fixed URI string.