MCPcopy Create free account
hub / github.com/PCGen/pcgen / AbstractCategory

Class AbstractCategory

code/src/java/pcgen/cdom/inst/AbstractCategory.java:42–203  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

40 * The Class that this AbstractCategory will categorize
41 */
42public 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)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected