org.yawlfoundation.yawl.resourcing.resource
Class Role

java.lang.Object
  extended by org.yawlfoundation.yawl.resourcing.resource.AbstractResourceAttribute
      extended by org.yawlfoundation.yawl.resourcing.resource.Role
All Implemented Interfaces:
Comparable

public class Role
extends AbstractResourceAttribute
implements Comparable

A role that a resource might perform.

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

Field Summary
 
Fields inherited from class org.yawlfoundation.yawl.resourcing.resource.AbstractResourceAttribute
_description, _id, _notes, _persisting, _resources
 
Constructor Summary
Role()
           
Role(org.jdom.Element e)
           
Role(String role)
           
 
Method Summary
 boolean belongsTo(Role owner)
           
 int compareTo(Object o)
           
 boolean equals(Object o)
           
 String get_belongsToID()
           
 String getName()
           
 Role getOwnerRole()
           
 void reconstitute(org.jdom.Element e)
           
 void set_belongsToID(String belongsToID)
           
 void setName(String role)
           
 void setOwnerRole(Role owner)
           
 boolean setOwnerRole(String ownerRoleID)
           
 String toXML()
           
 boolean ultimatelyBelongsTo(Role owner)
           
 
Methods inherited from class org.yawlfoundation.yawl.resourcing.resource.AbstractResourceAttribute
addResource, fromXML, get_resources, getDescription, getID, getNotes, getOrgDataSet, getResources, hashCode, hasResource, isPersisting, removeResource, save, set_resources, setDescription, setID, setNotes, setPersisting, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Role

public Role()

Role

public Role(String role)

Role

public Role(org.jdom.Element e)
Method Detail

getName

public String getName()
Specified by:
getName in class AbstractResourceAttribute

setName

public void setName(String role)

getOwnerRole

public Role getOwnerRole()

setOwnerRole

public void setOwnerRole(Role owner)

setOwnerRole

public boolean setOwnerRole(String ownerRoleID)

belongsTo

public boolean belongsTo(Role owner)

ultimatelyBelongsTo

public boolean ultimatelyBelongsTo(Role owner)

equals

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

compareTo

public int compareTo(Object o)
Specified by:
compareTo in interface Comparable

toXML

public String toXML()

reconstitute

public void reconstitute(org.jdom.Element e)
Overrides:
reconstitute in class AbstractResourceAttribute

get_belongsToID

public String get_belongsToID()

set_belongsToID

public void set_belongsToID(String belongsToID)


Copyright © 2004-2012 The YAWL Foundation.