Class OsidEnumeration
java.lang.Object
org.osid.meta.OsidEnumeration
This doesn't do much other than capture the name of the
enumeration.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedOsidEnumeration(String name) Creates a newOsidEnumeration. -
Method Summary
Modifier and TypeMethodDescriptionbooleangetName()Gets the name of this enumeratioan.inthashCode()booleanTests if the enumeration is specified as deprecated.booleanisNew()Tests if the enumeration is specified as new.protected voidsetDeprecated(String asOf) protected void
-
Constructor Details
-
OsidEnumeration
Creates a newOsidEnumeration.- Parameters:
name- the enumeration name
-
-
Method Details
-
getName
-
isDeprecated
public boolean isDeprecated()Tests if the enumeration is specified as deprecated.- Returns:
trueif the enumeration is deprecated,falseotherwise
-
setDeprecated
-
isNew
public boolean isNew()Tests if the enumeration is specified as new.- Returns:
trueif the enumeration is new,falseotherwise
-
setNew
-
hashCode
-
equals
-