org.yawlfoundation.yawl.resourcing.resource
Class AbstractResourceAttribute

java.lang.Object
  extended by org.yawlfoundation.yawl.resourcing.resource.AbstractResourceAttribute
Direct Known Subclasses:
Capability, OrgGroup, Position, Role

public abstract class AbstractResourceAttribute
extends Object

An abstract class representing a resource attribute. Extended by Role, Capability, Position and OrgGroup classes.

Author:
Michael Adams v0.1, 21/08/2007

Field Summary
protected  String _description
           
protected  String _id
           
protected  String _notes
           
protected  boolean _persisting
           
protected  HashSet<AbstractResource> _resources
           
 
Constructor Summary
protected AbstractResourceAttribute()
           
 
Method Summary
 void addResource(AbstractResource resource)
           
 void fromXML(String xml)
           
protected  Set get_resources()
           
 String getDescription()
           
 String getID()
           
abstract  String getName()
           
 String getNotes()
           
 ResourceDataSet getOrgDataSet()
           
 Set<AbstractResource> getResources()
           
 int hashCode()
           
 boolean hasResource(AbstractResource resource)
           
 boolean isPersisting()
           
 void reconstitute(org.jdom.Element e)
           
 void removeResource(AbstractResource resource)
           
 void save()
           
protected  void set_resources(Set resources)
           
 void setDescription(String desc)
           
 void setID(String id)
           
 void setNotes(String notes)
           
 void setPersisting(boolean persisting)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

_id

protected String _id

_description

protected String _description

_notes

protected String _notes

_resources

protected HashSet<AbstractResource> _resources

_persisting

protected boolean _persisting
Constructor Detail

AbstractResourceAttribute

protected AbstractResourceAttribute()
Method Detail

save

public void save()

setPersisting

public void setPersisting(boolean persisting)

isPersisting

public boolean isPersisting()

getID

public String getID()

setID

public void setID(String id)

getNotes

public String getNotes()

setNotes

public void setNotes(String notes)

getDescription

public String getDescription()

setDescription

public void setDescription(String desc)

addResource

public void addResource(AbstractResource resource)

removeResource

public void removeResource(AbstractResource resource)

hasResource

public boolean hasResource(AbstractResource resource)

getResources

public Set<AbstractResource> getResources()

getOrgDataSet

public ResourceDataSet getOrgDataSet()

fromXML

public void fromXML(String xml)

reconstitute

public void reconstitute(org.jdom.Element e)

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object

getName

public abstract String getName()

get_resources

protected Set get_resources()

set_resources

protected void set_resources(Set resources)


Copyright © 2004-2012 The YAWL Foundation.