Package org.drools.io

Interface InternalResource

    • Method Detail

      • setResourceType

        InternalResource setResourceType​(org.kie.api.io.ResourceType resourceType)
        Specified by:
        setResourceType in interface org.kie.api.io.Resource
      • getResourceType

        org.kie.api.io.ResourceType getResourceType()
        Specified by:
        getResourceType in interface org.kie.api.io.Resource
      • getConfiguration

        org.kie.api.io.ResourceConfiguration getConfiguration()
        Specified by:
        getConfiguration in interface org.kie.api.io.Resource
      • setConfiguration

        InternalResource setConfiguration​(org.kie.api.io.ResourceConfiguration configuration)
        Specified by:
        setConfiguration in interface org.kie.api.io.Resource
      • getURL

        java.net.URL getURL()
                     throws java.io.IOException
        Throws:
        java.io.IOException
      • hasURL

        boolean hasURL()
      • isDirectory

        boolean isDirectory()
      • listResources

        java.util.Collection<org.kie.api.io.Resource> listResources()
      • getDescription

        java.lang.String getDescription()
        Returns the description of the resource. This is just a text description of the resource used to add more information about it. This is not a mandatory attribute
        Returns:
        the name of the resource, or null if is not set.
      • setDescription

        void setDescription​(java.lang.String description)
      • getCategories

        java.util.List<java.lang.String> getCategories()
      • setCategories

        void setCategories​(java.lang.String categories)
      • addCategory

        void addCategory​(java.lang.String category)
      • getBytes

        byte[] getBytes()
      • getEncoding

        java.lang.String getEncoding()