An AbstractCategory is designed to facilitate the building of Category objects by sharing common infrastructure and behavior. @param The Class that this AbstractCategory will categorize
| 40 | * The Class that this AbstractCategory will categorize |
| 41 | */ |
| 42 | public abstract class AbstractCategory<T extends Categorized<T>> implements Category<T>, ManufacturableFactory<T> |
| 43 | { |
| 44 | |
| 45 | /** |
| 46 | * The name for this AbstractCategory. |
| 47 | */ |
| 48 | private String categoryName; |
| 49 | |
| 50 | /** |
| 51 | * The source URI for this AbstractCategory. |
| 52 | */ |
| 53 | private URI sourceURI; |
| 54 | |
| 55 | @Override |
| 56 | public Category<T> getParentCategory() |
| 57 | { |
| 58 | //By default, no hierarchy |
| 59 | return null; |
| 60 | } |
| 61 | |
| 62 | @Override |
| 63 | public String getKeyName() |
| 64 | { |
| 65 | return categoryName; |
| 66 | } |
| 67 | |
| 68 | @Override |
| 69 | public String getDisplayName() |
| 70 | { |
| 71 | return categoryName; |
| 72 | } |
| 73 | |
| 74 | @Override |
| 75 | public URI getSourceURI() |
| 76 | { |
| 77 | return sourceURI; |
| 78 | } |
| 79 | |
| 80 | @Override |
| 81 | public void setSourceURI(URI source) |
| 82 | { |
| 83 | sourceURI = source; |
| 84 | } |
| 85 | |
| 86 | @Override |
| 87 | public boolean isInternal() |
| 88 | { |
| 89 | return false; |
| 90 | } |
| 91 | |
| 92 | @Override |
| 93 | public boolean isType(String type) |
| 94 | { |
| 95 | return false; |
| 96 | } |
| 97 | |
| 98 | @Override |
| 99 | public void setName(String name) |
nothing calls this directly
no outgoing calls
no test coverage detected