Class OsidEnumeration

java.lang.Object
org.osid.meta.OsidEnumeration

public class OsidEnumeration extends Object
This doesn't do much other than capture the name of the enumeration.
  • Constructor Details

    • OsidEnumeration

      protected OsidEnumeration(String name)
      Creates a new OsidEnumeration.
      Parameters:
      name - the enumeration name
  • Method Details

    • getName

      public String getName()
      Gets the name of this enumeratioan.
      Returns:
      the name of this enumeration
    • isDeprecated

      public boolean isDeprecated()
      Tests if the enumeration is specified as deprecated.
      Returns:
      true if the enumeration is deprecated, false otherwise
    • setDeprecated

      protected void setDeprecated(String asOf)
    • isNew

      public boolean isNew()
      Tests if the enumeration is specified as new.
      Returns:
      true if the enumeration is new, false otherwise
    • setNew

      protected void setNew(String asOf)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object