Class RepositoryFactoryTools


  • public class RepositoryFactoryTools
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.io.File asFile​(java.net.URI location)
      Returns the given URI as File, or null if the given URI does not have a "file:" scheme.
      static org.eclipse.equinox.p2.core.ProvisionException invalidCreationLocation​(java.lang.String repositoryType, java.net.URI location)  
      private static org.eclipse.core.runtime.Status newUnsupportedCreationStatus​(java.lang.String message)  
      static org.eclipse.equinox.p2.core.ProvisionException unsupportedCreation​(java.lang.Class<?> factoryClass)  
      static org.eclipse.equinox.p2.core.ProvisionException unsupportedCreation​(java.lang.String repositoryType)  
      static void verifyModifiableNotRequested​(int flags, java.lang.String repositoryType)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RepositoryFactoryTools

        public RepositoryFactoryTools()
    • Method Detail

      • asFile

        public static java.io.File asFile​(java.net.URI location)
        Returns the given URI as File, or null if the given URI does not have a "file:" scheme.
      • verifyModifiableNotRequested

        public static void verifyModifiableNotRequested​(int flags,
                                                        java.lang.String repositoryType)
                                                 throws org.eclipse.equinox.p2.core.ProvisionException
        Throws:
        org.eclipse.equinox.p2.core.ProvisionException
      • unsupportedCreation

        public static org.eclipse.equinox.p2.core.ProvisionException unsupportedCreation​(java.lang.String repositoryType)
      • unsupportedCreation

        public static org.eclipse.equinox.p2.core.ProvisionException unsupportedCreation​(java.lang.Class<?> factoryClass)
      • newUnsupportedCreationStatus

        private static org.eclipse.core.runtime.Status newUnsupportedCreationStatus​(java.lang.String message)
      • invalidCreationLocation

        public static org.eclipse.equinox.p2.core.ProvisionException invalidCreationLocation​(java.lang.String repositoryType,
                                                                                             java.net.URI location)