Class Osid

java.lang.Object
org.osid.meta.Osid

public class Osid extends Object
Represents an OSID.
  • Constructor Details

    • Osid

      public Osid(String name)
      Constructs a new Osid.
      Parameters:
      name - the name of the Osid;
  • Method Details

    • getName

      public String getName()
      Gets the name of this Osid.
      Returns:
      the Osid name
    • getInterface

      public OsidInterface getInterface(String name)
      Gets an interface defined in this Osid.
      Parameters:
      name - the name of the interface to retrieve
      Returns:
      the interface or null if not found
    • getInterfaces

      public Collection<OsidInterface> getInterfaces()
      Gets all interfaces defined in this Osid.
      Returns:
      a list of OSID interfaces
    • addInterface

      public void addInterface(OsidInterface iface)
      Adds an interface to this osid.
      Parameters:
      iface - the interface to add
    • getEnumeration

      public OsidEnumeration getEnumeration(String name)
      Gets an enumeration defined in this Osid.
      Parameters:
      name - the name of the enumeration to retrieve
      Returns:
      the enumeration or null if not found
    • getEnumerations

      public Collection<OsidEnumeration> getEnumerations()
      Gets all enumerations defined in this Osid.
      Returns:
      a list of OSID enumerations
    • addEnumeration

      public void addEnumeration(OsidEnumeration enumeration)
      Adds an enumeration to this osid.
      Parameters:
      enumeration - enuemration to add