Drools :: Core 6.0.0.Alpha9

org.drools.io.internal
Interface InternalResource

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

public interface InternalResource
extends org.kie.io.Resource


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

Method Detail

setResourceType

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

getResourceType

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

getConfiguration

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

setConfiguration

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

getURL

URL getURL()
           throws IOException
Throws:
IOException

hasURL

boolean hasURL()

isDirectory

boolean isDirectory()

listResources

Collection<org.kie.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)

Drools :: Core 6.0.0.Alpha9

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