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
| Methods inherited from interface org.kie.api.io.Resource |
getInputStream, getReader, getSourcePath, getTargetPath, setSourcePath, setTargetPath |
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)
Copyright © 2001-2013 JBoss by Red Hat. All Rights Reserved.