Package io.automatiko.engine.services.io
Class BaseResource
- java.lang.Object
-
- io.automatiko.engine.services.io.BaseResource
-
- All Implemented Interfaces:
io.automatiko.engine.api.io.Resource,InternalResource,Serializable
- Direct Known Subclasses:
ByteArrayResource,ClassPathResource,FileSystemResource,InputStreamResource,ReaderResource
public abstract class BaseResource extends Object implements InternalResource
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected byte[]bytes
-
Constructor Summary
Constructors Constructor Description BaseResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCategory(String tag)booleanequals(Object o)byte[]getBytes()List<String>getCategories()io.automatiko.engine.api.io.ResourceConfigurationgetConfiguration()StringgetDescription()io.automatiko.engine.api.io.ResourceTypegetResourceType()StringgetSourcePath()StringgetTargetPath()inthashCode()voidsetCategories(String categories)io.automatiko.engine.api.io.ResourcesetConfiguration(io.automatiko.engine.api.io.ResourceConfiguration conf)voidsetDescription(String description)InternalResourcesetResourceType(io.automatiko.engine.api.io.ResourceType resourceType)InternalResourcesetSourcePath(String path)InternalResourcesetTargetPath(String path)StringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface io.automatiko.engine.services.io.InternalResource
getEncoding, getURL, hasURL, isDirectory, listResources
-
-
-
-
Method Detail
-
setResourceType
public InternalResource setResourceType(io.automatiko.engine.api.io.ResourceType resourceType)
- Specified by:
setResourceTypein interfaceInternalResource- Specified by:
setResourceTypein interfaceio.automatiko.engine.api.io.Resource
-
getResourceType
public io.automatiko.engine.api.io.ResourceType getResourceType()
- Specified by:
getResourceTypein interfaceInternalResource- Specified by:
getResourceTypein interfaceio.automatiko.engine.api.io.Resource
-
getDescription
public String getDescription()
- Specified by:
getDescriptionin interfaceInternalResource
-
setDescription
public void setDescription(String description)
- Specified by:
setDescriptionin interfaceInternalResource
-
getSourcePath
public String getSourcePath()
- Specified by:
getSourcePathin interfaceio.automatiko.engine.api.io.Resource
-
getTargetPath
public String getTargetPath()
- Specified by:
getTargetPathin interfaceio.automatiko.engine.api.io.Resource
-
getConfiguration
public io.automatiko.engine.api.io.ResourceConfiguration getConfiguration()
- Specified by:
getConfigurationin interfaceio.automatiko.engine.api.io.Resource
-
setConfiguration
public io.automatiko.engine.api.io.Resource setConfiguration(io.automatiko.engine.api.io.ResourceConfiguration conf)
- Specified by:
setConfigurationin interfaceio.automatiko.engine.api.io.Resource
-
setSourcePath
public InternalResource setSourcePath(String path)
- Specified by:
setSourcePathin interfaceio.automatiko.engine.api.io.Resource
-
setTargetPath
public InternalResource setTargetPath(String path)
- Specified by:
setTargetPathin interfaceio.automatiko.engine.api.io.Resource
-
getCategories
public List<String> getCategories()
- Specified by:
getCategoriesin interfaceInternalResource
-
setCategories
public void setCategories(String categories)
- Specified by:
setCategoriesin interfaceInternalResource
-
addCategory
public void addCategory(String tag)
- Specified by:
addCategoryin interfaceInternalResource
-
getBytes
public byte[] getBytes()
- Specified by:
getBytesin interfaceInternalResource
-
-