org.drools.grid.api
Interface ResourceDescriptor

All Superinterfaces:
Serializable
All Known Subinterfaces:
CompositeResourceDescriptor
All Known Implementing Classes:
CompositeResourceDescriptorImpl, ResourceDescriptorImpl

public interface ResourceDescriptor
extends Serializable

Agnostic description of a Resource


Method Summary
 String getAuthor()
          Returns the author of the Resource.
 Set<String> getCategories()
          Returns the List of categories associated with the Resource.
 Date getCreationTime()
          Returns the creation date of the Resource.
 String getDescription()
          Returns the description of the Resource.
 URL getDocumentation()
          Returns the URL of the documentation associated with the Resource.
 String getId()
          Returns the id of the Resource.
 Date getLastModificationTime()
          Returns the date when the Resource was last modified.
 String getName()
          Returns the name of the Resource.
 URL getResourceURL()
          Returns the URL that can be used to get the Resource this descriptor points at.
 String getStatus()
          Returns the status of the Resource.
 org.drools.builder.ResourceType getType()
          Returns the type of the Resource.
 String getVersion()
          Returns the version of the Resource.
 boolean isComposite()
           
 boolean isLoaded()
           
 void setAuthor(String author)
           
 void setCategories(Set<String> categories)
           
 void setCreationTime(Date creationTime)
           
 void setDescription(String description)
           
 void setDocumentation(URL documentation)
           
 void setId(String id)
           
 void setLastModificationTime(Date lastModifcationTime)
           
 void setLoaded(boolean loaded)
           
 void setName(String name)
           
 void setResourceURL(URL resourceUrl)
           
 void setStatus(String status)
           
 void setType(org.drools.builder.ResourceType type)
           
 void setVersion(String version)
           
 

Method Detail

getAuthor

String getAuthor()
Returns the author of the Resource.

Returns:
the author of the Resource

setAuthor

void setAuthor(String author)

getCategories

Set<String> getCategories()
Returns the List of categories associated with the Resource.

Returns:
the List of categories associated with the Resource

setCategories

void setCategories(Set<String> categories)

getCreationTime

Date getCreationTime()
Returns the creation date of the Resource.

Returns:
the creation date of the Resource

setCreationTime

void setCreationTime(Date creationTime)

getDescription

String getDescription()
Returns the description of the Resource.

Returns:
the description of the Resource

setDescription

void setDescription(String description)

getDocumentation

URL getDocumentation()
Returns the URL of the documentation associated with the Resource.

Returns:
the URL of the documentation associated with the Resource

setDocumentation

void setDocumentation(URL documentation)

getId

String getId()
Returns the id of the Resource.

Returns:
the id of the Resource

setId

void setId(String id)

getLastModificationTime

Date getLastModificationTime()
Returns the date when the Resource was last modified.

Returns:
the date when the Resource was last modified

setLastModificationTime

void setLastModificationTime(Date lastModifcationTime)

getName

String getName()
Returns the name of the Resource.

Returns:
the name of the Resource

setName

void setName(String name)

getResourceURL

URL getResourceURL()
Returns the URL that can be used to get the Resource this descriptor points at.

Returns:
the URL that can be used to get the Resource this descriptor points at

setResourceURL

void setResourceURL(URL resourceUrl)

getStatus

String getStatus()
Returns the status of the Resource.

Returns:
the status of the Resource

setStatus

void setStatus(String status)

getType

org.drools.builder.ResourceType getType()
Returns the type of the Resource.

Returns:
the type of the Resource

setType

void setType(org.drools.builder.ResourceType type)

getVersion

String getVersion()
Returns the version of the Resource.

Returns:
the version of the Resource

setVersion

void setVersion(String version)

isComposite

boolean isComposite()

isLoaded

boolean isLoaded()

setLoaded

void setLoaded(boolean loaded)


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