org.drools.grid.api.impl
Class ResourceDescriptorImpl

java.lang.Object
  extended by org.drools.grid.api.impl.ResourceDescriptorImpl
All Implemented Interfaces:
Serializable, ResourceDescriptor
Direct Known Subclasses:
CompositeResourceDescriptorImpl

public class ResourceDescriptorImpl
extends Object
implements ResourceDescriptor, Serializable

Agnostic description of a Resource

See Also:
Serialized Form

Constructor Summary
ResourceDescriptorImpl()
           
 
Method Summary
 boolean equals(Object obj)
           
 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.
 int hashCode()
           
 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 lastModificationTime)
           
 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)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ResourceDescriptorImpl

public ResourceDescriptorImpl()
Method Detail

getAuthor

public String getAuthor()
Description copied from interface: ResourceDescriptor
Returns the author of the Resource.

Specified by:
getAuthor in interface ResourceDescriptor
Returns:
the author of the Resource

setAuthor

public void setAuthor(String author)
Specified by:
setAuthor in interface ResourceDescriptor

getCategories

public Set<String> getCategories()
Description copied from interface: ResourceDescriptor
Returns the List of categories associated with the Resource.

Specified by:
getCategories in interface ResourceDescriptor
Returns:
the List of categories associated with the Resource

setCategories

public void setCategories(Set<String> categories)
Specified by:
setCategories in interface ResourceDescriptor

getCreationTime

public Date getCreationTime()
Description copied from interface: ResourceDescriptor
Returns the creation date of the Resource.

Specified by:
getCreationTime in interface ResourceDescriptor
Returns:
the creation date of the Resource

setCreationTime

public void setCreationTime(Date creationTime)
Specified by:
setCreationTime in interface ResourceDescriptor

getDescription

public String getDescription()
Description copied from interface: ResourceDescriptor
Returns the description of the Resource.

Specified by:
getDescription in interface ResourceDescriptor
Returns:
the description of the Resource

setDescription

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

getDocumentation

public URL getDocumentation()
Description copied from interface: ResourceDescriptor
Returns the URL of the documentation associated with the Resource.

Specified by:
getDocumentation in interface ResourceDescriptor
Returns:
the URL of the documentation associated with the Resource

setDocumentation

public void setDocumentation(URL documentation)
Specified by:
setDocumentation in interface ResourceDescriptor

getId

public String getId()
Description copied from interface: ResourceDescriptor
Returns the id of the Resource.

Specified by:
getId in interface ResourceDescriptor
Returns:
the id of the Resource

setId

public void setId(String id)
Specified by:
setId in interface ResourceDescriptor

getLastModificationTime

public Date getLastModificationTime()
Description copied from interface: ResourceDescriptor
Returns the date when the Resource was last modified.

Specified by:
getLastModificationTime in interface ResourceDescriptor
Returns:
the date when the Resource was last modified

setLastModificationTime

public void setLastModificationTime(Date lastModificationTime)
Specified by:
setLastModificationTime in interface ResourceDescriptor

getName

public String getName()
Description copied from interface: ResourceDescriptor
Returns the name of the Resource.

Specified by:
getName in interface ResourceDescriptor
Returns:
the name of the Resource

setName

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

getResourceURL

public URL getResourceURL()
Description copied from interface: ResourceDescriptor
Returns the URL that can be used to get the Resource this descriptor points at.

Specified by:
getResourceURL in interface ResourceDescriptor
Returns:
the URL that can be used to get the Resource this descriptor points at

setResourceURL

public void setResourceURL(URL resourceURL)
Specified by:
setResourceURL in interface ResourceDescriptor

getStatus

public String getStatus()
Description copied from interface: ResourceDescriptor
Returns the status of the Resource.

Specified by:
getStatus in interface ResourceDescriptor
Returns:
the status of the Resource

setStatus

public void setStatus(String status)
Specified by:
setStatus in interface ResourceDescriptor

getType

public org.drools.builder.ResourceType getType()
Description copied from interface: ResourceDescriptor
Returns the type of the Resource.

Specified by:
getType in interface ResourceDescriptor
Returns:
the type of the Resource

setType

public void setType(org.drools.builder.ResourceType type)
Specified by:
setType in interface ResourceDescriptor

getVersion

public String getVersion()
Description copied from interface: ResourceDescriptor
Returns the version of the Resource.

Specified by:
getVersion in interface ResourceDescriptor
Returns:
the version of the Resource

setVersion

public void setVersion(String version)
Specified by:
setVersion in interface ResourceDescriptor

isLoaded

public boolean isLoaded()
Specified by:
isLoaded in interface ResourceDescriptor

setLoaded

public void setLoaded(boolean loaded)
Specified by:
setLoaded in interface ResourceDescriptor

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

isComposite

public boolean isComposite()
Specified by:
isComposite in interface ResourceDescriptor

toString

public String toString()
Overrides:
toString in class Object


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