org.drools.io.impl
Class BaseResource

java.lang.Object
  extended by org.drools.io.impl.BaseResource
All Implemented Interfaces:
Serializable, InternalResource, org.drools.io.Resource
Direct Known Subclasses:
ByteArrayResource, ClassPathResource, DescrResource, EncodedResource, FileSystemResource, InputStreamResource, ReaderResource, UrlResource

public abstract class BaseResource
extends Object
implements InternalResource

See Also:
Serialized Form

Constructor Summary
BaseResource()
           
 
Method Summary
 org.drools.builder.ResourceConfiguration getConfiguration()
           
 String getDescription()
          Returns the description of the resource.
 String getName()
          Returns the name of the resource.
 org.drools.builder.ResourceType getResourceType()
           
 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 class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.drools.io.internal.InternalResource
getLastModified, getLastRead, getURL, hasURL, isDirectory, listResources
 
Methods inherited from interface org.drools.io.Resource
getInputStream, getReader
 

Constructor Detail

BaseResource

public BaseResource()
Method Detail

getConfiguration

public org.drools.builder.ResourceConfiguration getConfiguration()
Specified by:
getConfiguration in interface InternalResource

setConfiguration

public void setConfiguration(org.drools.builder.ResourceConfiguration configuration)
Specified by:
setConfiguration in interface InternalResource

setResourceType

public void setResourceType(org.drools.builder.ResourceType resourceType)
Specified by:
setResourceType in interface InternalResource

getResourceType

public org.drools.builder.ResourceType getResourceType()
Specified by:
getResourceType in interface InternalResource

getDescription

public String getDescription()
Description copied from interface: InternalResource
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

Specified by:
getDescription in interface InternalResource
Returns:
the name of the resource, or null if is not set.

setDescription

public void setDescription(String description)
Specified by:
setDescription in interface InternalResource

getName

public String getName()
Description copied from interface: InternalResource
Returns the name of the resource. This is just a descriptive name of the resource. This is not a mandatory attribute

Specified by:
getName in interface InternalResource
Returns:
the name of the resource, or null if is not set.

setName

public void setName(String name)
Specified by:
setName in interface InternalResource


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