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
 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 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)


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