|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--org.fopps.model.ArtefactCategory
Holds all possible catagories
| Field Summary | |
static ArtefactCategory |
Documentation
|
static java.lang.String |
DOCUMENTATION
|
static java.lang.String |
SOURCE_CODE
|
static ArtefactCategory |
SourceCode
|
static java.lang.String |
TEST_REPORT
|
static ArtefactCategory |
TestReport
|
static ArtefactCategory |
Unspecified
|
static java.lang.String |
UNSPECIFIED
|
| Method Summary | |
static ArtefactCategory |
addCategory(java.lang.String pName)
Adds a category and returns the corresponding instance. |
static ArtefactCategory |
byName(java.lang.String pName)
Returns an instance of an artefact by name |
static java.util.Set |
getCategories()
Returns all existing categories |
static ArtefactCategory |
getCategory(java.lang.String pName)
Returns the category instance for a given name |
java.lang.Object |
getDefault()
Returns the default value of the enumeration |
java.lang.Object[] |
getInstances()
Returns all possible instances of the enumeration |
java.lang.String |
getName()
Returns the name of the category |
int |
getValue()
Returns the current value (numeric representation) of the enumeration. |
static void |
removeCategory(java.lang.String pName)
Removes an existing category |
java.lang.String |
toString()
Returns a string representation of the object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final java.lang.String UNSPECIFIED
public static final ArtefactCategory Unspecified
public static final java.lang.String SOURCE_CODE
public static final ArtefactCategory SourceCode
public static final java.lang.String DOCUMENTATION
public static final ArtefactCategory Documentation
public static final java.lang.String TEST_REPORT
public static final ArtefactCategory TestReport
| Method Detail |
public static ArtefactCategory addCategory(java.lang.String pName)
pName - name of the category to add
public static void removeCategory(java.lang.String pName)
throws ModelException
pName - name of the category to delete
ModelExceptionpublic static java.util.Set getCategories()
public static ArtefactCategory getCategory(java.lang.String pName)
public int getValue()
Enum
getValue in interface EnumEnum.getValue()public java.lang.String getName()
public static ArtefactCategory byName(java.lang.String pName)
public java.lang.Object getDefault()
getDefault in interface Enumpublic java.lang.Object[] getInstances()
Enum
getInstances in interface EnumEnum.getInstances()public java.lang.String toString()
toString method returns a string that
"textually represents" this object. The result should
be a concise but informative representation that is easy for a
person to read.
It is recommended that all subclasses override this method.
The toString method for class Object
returns a string consisting of the name of the class of which the
object is an instance, the at-sign character `@', and
the unsigned hexadecimal representation of the hash code of the
object. In other words, this method returns a string equal to the
value of:
getClass().getName() + '@' + Integer.toHexString(hashCode())
toString in class java.lang.Object
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||