Class OsidInterface
java.lang.Object
org.osid.meta.OsidInterface
Represents an OSID interface.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedOsidInterface(String name) Constructs a newOsidInterface. -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddMethod(OsidMethod method) Gets a method defined in this interface.Gets all methods defined in this interface.getName()Gets the name of this interface.booleanTests if the interface is specified as deprecated.booleanisNew()Tests if the interface is specified as new.protected voidsetDeprecated(String asOf) protected void
-
Constructor Details
-
OsidInterface
Constructs a newOsidInterface.- Parameters:
name- the name of the interface
-
-
Method Details
-
getName
-
isDeprecated
public boolean isDeprecated()Tests if the interface is specified as deprecated.- Returns:
trueif the interface is deprecated,falseotherwise
-
setDeprecated
-
isNew
public boolean isNew()Tests if the interface is specified as new.- Returns:
trueif the interface is new,falseotherwise
-
setNew
-
getMethods
Gets all methods defined in this interface.- Returns:
- the methods
-
getMethod
Gets a method defined in this interface.- Parameters:
name- the name of the method to retrieve- Returns:
- the method or
nullif not found
-
addMethod
-