Class AbstractOsidExtensibleSearchOrder

java.lang.Object
net.okapia.osid.jamocha.spi.AbstractOsidSearchOrder
net.okapia.osid.jamocha.spi.AbstractOsidExtensibleSearchOrder
All Implemented Interfaces:
Extensible, OsidExtensibleSearchOrder, OsidSearchOrder, Suppliable
Direct Known Subclasses:
AbstractOsidBrowsableSearchOrder

public abstract class AbstractOsidExtensibleSearchOrder extends AbstractOsidSearchOrder implements OsidExtensibleSearchOrder
Defines a simple OsidSearchOrder to extend. This class does nothing.
  • Constructor Details

    • AbstractOsidExtensibleSearchOrder

      public AbstractOsidExtensibleSearchOrder()
      Constructs a new AbstractOsidExtensibleSearchOrder.
  • Method Details

    • getRecordTypes

      @OSID public TypeList getRecordTypes()
      Gets the record types available in this object.
      Specified by:
      getRecordTypes in interface Extensible
      Returns:
      the record types
    • hasRecordType

      @OSID public boolean hasRecordType(Type recordType)
      Tests if this object supports the given record Type.
      Specified by:
      hasRecordType in interface Extensible
      Parameters:
      recordType - a type
      Returns:
      true if recordType is supported, false otherwise
      Throws:
      NullArgumentException - recordType is null
    • addRecordType

      protected void addRecordType(Type recordType)
      Adds a record type.
      Parameters:
      recordType - the record Type
      Throws:
      NullArgumentException - recordType is null