org.drools.io.internal
Interface InternalResource

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

public interface InternalResource
extends org.drools.io.Resource


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

Method Detail

setResourceType

void setResourceType(org.drools.builder.ResourceType resourceType)

getResourceType

org.drools.builder.ResourceType getResourceType()

getConfiguration

org.drools.builder.ResourceConfiguration getConfiguration()

setConfiguration

void setConfiguration(org.drools.builder.ResourceConfiguration configuration)

getURL

URL getURL()
           throws IOException
Throws:
IOException

hasURL

boolean hasURL()

isDirectory

boolean isDirectory()

listResources

Collection<org.drools.io.Resource> listResources()

getLastModified

long getLastModified()

getLastRead

long getLastRead()

getName

String getName()
Returns the name of the resource. This is just a descriptive name of the resource. This is not a mandatory attribute

Returns:
the name of the resource, or null if is not set.

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)

setName

void setName(String name)

getCategories

List<String> getCategories()

setCategories

void setCategories(String categories)

addCategory

void addCategory(String category)

exists

boolean exists()


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