Drools :: Core 6.1.0.Beta1

org.drools.core.io.internal
Interface InternalResource

All Superinterfaces:
org.kie.api.io.Resource, Serializable
All Known Implementing Classes:
BaseResource, ByteArrayResource, ClassPathResource, DescrResource, EncodedResource, FileSystemResource, InputStreamResource, ReaderResource, UrlResource

public interface InternalResource
extends org.kie.api.io.Resource


Method Summary
 void addCategory(String category)
           
 byte[] getBytes()
           
 List<String> getCategories()
           
 org.kie.api.io.ResourceConfiguration getConfiguration()
           
 String getDescription()
          Returns the description of the resource.
 long getLastModified()
           
 long getLastRead()
           
 org.kie.api.io.ResourceType getResourceType()
           
 URL getURL()
           
 boolean hasURL()
           
 boolean isDirectory()
           
 Collection<org.kie.api.io.Resource> listResources()
           
 void setCategories(String categories)
           
 InternalResource setConfiguration(org.kie.api.io.ResourceConfiguration configuration)
           
 void setDescription(String description)
           
 InternalResource setResourceType(org.kie.api.io.ResourceType resourceType)
           
 
Methods inherited from interface org.kie.api.io.Resource
getInputStream, getReader, getSourcePath, getTargetPath, setSourcePath, setTargetPath
 

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

URL getURL()
           throws IOException
Throws:
IOException

hasURL

boolean hasURL()

isDirectory

boolean isDirectory()

listResources

Collection<org.kie.api.io.Resource> listResources()

getLastModified

long getLastModified()

getLastRead

long getLastRead()

getDescription

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(String description)

getCategories

List<String> getCategories()

setCategories

void setCategories(String categories)

addCategory

void addCategory(String category)

getBytes

byte[] getBytes()

Drools :: Core 6.1.0.Beta1

Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.