public class NonHumanCategory extends java.lang.Object implements java.lang.Comparable<NonHumanCategory>
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
_categoryName |
protected java.lang.String |
_description |
protected java.lang.String |
_notes |
protected java.util.Set<NonHumanSubCategory> |
_subcategories |
Constructor and Description |
---|
NonHumanCategory() |
NonHumanCategory(java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
void |
addResource(NonHumanResource resource,
java.lang.String subCategoryName) |
boolean |
addSubCategory(NonHumanSubCategory subCategory) |
boolean |
addSubCategory(java.lang.String subCategory) |
int |
compareTo(NonHumanCategory other) |
void |
fromXML(java.lang.String xml) |
void |
fromXNode(XNode node) |
java.lang.String |
getDescription() |
java.lang.String |
getID() |
java.lang.String |
getName() |
java.lang.String |
getNotes() |
java.util.Set<NonHumanResource> |
getResources() |
NonHumanSubCategory |
getResourceSubCategory(NonHumanResource resource) |
java.util.Set<NonHumanSubCategory> |
getSubCategories() |
NonHumanSubCategory |
getSubCategory(java.lang.String name) |
int |
getSubCategoryCount() |
java.util.Set<java.lang.String> |
getSubCategoryNames() |
java.util.Set<NonHumanResource> |
getSubCategoryResources(java.lang.String subCategoryName) |
boolean |
hasResource(NonHumanResource resource,
java.lang.String subCategoryName) |
boolean |
hasSubCategory(java.lang.String name) |
boolean |
moveToSubCategory(NonHumanResource resource,
java.lang.String subCategory) |
boolean |
removeFromAll(NonHumanResource resource) |
boolean |
removeResource(NonHumanResource resource,
java.lang.String subCategoryName) |
boolean |
removeSubCategory(java.lang.String name) |
void |
setDescription(java.lang.String description) |
void |
setID(java.lang.String id) |
void |
setName(java.lang.String name) |
void |
setNotes(java.lang.String notes) |
java.lang.String |
toString() |
java.lang.String |
toXML() |
XNode |
toXNode() |
protected java.lang.String _categoryName
protected java.lang.String _description
protected java.lang.String _notes
protected java.util.Set<NonHumanSubCategory> _subcategories
public NonHumanCategory()
public NonHumanCategory(java.lang.String name)
public int compareTo(NonHumanCategory other)
compareTo
in interface java.lang.Comparable<NonHumanCategory>
public java.lang.String getID()
public void setID(java.lang.String id)
public java.lang.String getName()
public void setName(java.lang.String name)
public java.lang.String getDescription()
public void setDescription(java.lang.String description)
public java.lang.String getNotes()
public void setNotes(java.lang.String notes)
public java.util.Set<NonHumanSubCategory> getSubCategories()
public java.util.Set<java.lang.String> getSubCategoryNames()
public int getSubCategoryCount()
public boolean addSubCategory(java.lang.String subCategory)
public boolean addSubCategory(NonHumanSubCategory subCategory)
public boolean hasSubCategory(java.lang.String name)
public boolean removeSubCategory(java.lang.String name)
public NonHumanSubCategory getSubCategory(java.lang.String name)
public NonHumanSubCategory getResourceSubCategory(NonHumanResource resource)
public java.util.Set<NonHumanResource> getSubCategoryResources(java.lang.String subCategoryName)
public boolean moveToSubCategory(NonHumanResource resource, java.lang.String subCategory)
public java.util.Set<NonHumanResource> getResources()
public void addResource(NonHumanResource resource, java.lang.String subCategoryName)
public boolean removeResource(NonHumanResource resource, java.lang.String subCategoryName)
public boolean removeFromAll(NonHumanResource resource)
public boolean hasResource(NonHumanResource resource, java.lang.String subCategoryName)
public java.lang.String toString()
toString
in class java.lang.Object
public XNode toXNode()
public java.lang.String toXML()
public void fromXML(java.lang.String xml)
public void fromXNode(XNode node)
Copyright © 2004-2014 The YAWL Foundation.