org.drools.io.impl
Class BaseResource
java.lang.Object
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
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.Resource |
getInputStream, getReader |
BaseResource
public BaseResource()
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.