Class TestResource

    • Constructor Detail

      • TestResource

        public TestResource​(java.lang.String aName,
                            TestResourceProvider aProvider)
        Creates an instance.
        Parameters:
        aName - the name of the resource
        aProvider - the resource provider
      • TestResource

        public TestResource()
        No-arg constructor for serialization.
    • Method Detail

      • getName

        public java.lang.String getName()
      • openResource

        public java.io.InputStream openResource()
                                         throws java.io.IOException
        Open the resource. This is basically a shorthand for getProvider().openResource().
        Returns:
        the opened resource
        Throws:
        java.io.IOException
      • createPlatformResourceURI

        public org.eclipse.emf.common.util.URI createPlatformResourceURI()
        Creates an EMF-compatible platform resource URI for the current resource.
        Returns:
        the URI
      • equals

        public boolean equals​(java.lang.Object anOther)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object