Interface Period
- All Superinterfaces:
Browsable, Extensible, Identifiable, OsidObject
A Period represents a billing period.
-
Method Summary
Modifier and TypeMethodDescriptionGets the billing date.Gets the close date.Gets a display label for this period which may be less formal than the display name.Gets the due date.Gets the open date.getPeriodRecord(Type periodRecordType) Gets the period record corresponding to the givenPeriodrecordType.This method is used to retrieve an object implementing the requested record.booleanTests if this period has a billing date.booleanTests if this period has a close date.booleanTests if this period has a due date.booleanTests if this period has an open date.Methods inherited from interface Browsable
getProperties, getPropertiesByRecordTypeModifier and TypeMethodDescriptionGets a list of properties.getPropertiesByRecordType(Type recordType) Gets a list of properties corresponding to the specified record type.Methods inherited from interface Extensible
getRecordTypes, hasRecordTypeModifier and TypeMethodDescriptionGets the record types available in this object.booleanhasRecordType(Type recordType) Tests if this object supports the given recordType.Methods inherited from interface Identifiable
getId, isCurrentMethods inherited from interface OsidObject
getDescription, getDisplayName, getGenusType, isOfGenusTypeModifier and TypeMethodDescriptionGets the description associated with this instance of this OSID object.Gets the preferred display name associated with this instance of this OSID object appropriate for display to the user.Gets the genus type of this object.booleanisOfGenusType(Type genusType) Tests if this object is of the given genusType.
-
Method Details
-
getDisplayLabel
DisplayText getDisplayLabel()Gets a display label for this period which may be less formal than the display name.- Returns:
- the period label
- Compliance:
mandatory- This method must be implemented.
-
hasOpenDate
boolean hasOpenDate()Tests if this period has an open date.- Returns:
trueif there is an open date associated with this period,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getOpenDate
DateTime getOpenDate()Gets the open date.- Returns:
- the open date
- Throws:
IllegalStateException-hasOpenDate()isfalse- Compliance:
mandatory- This method must be implemented.
-
hasCloseDate
boolean hasCloseDate()Tests if this period has a close date.- Returns:
trueif there is a close date associated with this period,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getCloseDate
DateTime getCloseDate()Gets the close date.- Returns:
- the close date
- Throws:
IllegalStateException-hasCloseDate()isfalse- Compliance:
mandatory- This method must be implemented.
-
hasBillingDate
boolean hasBillingDate()Tests if this period has a billing date.- Returns:
trueif there is a billing date associated with this period,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getBillingDate
DateTime getBillingDate()Gets the billing date.- Returns:
- the billing date
- Throws:
IllegalStateException-hasBillingDate()isfalse- Compliance:
mandatory- This method must be implemented.
-
hasDueDate
boolean hasDueDate()Tests if this period has a due date.- Returns:
trueif there is a due date associated with this period,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getDueDate
DateTime getDueDate()Gets the due date.- Returns:
- the due date
- Throws:
IllegalStateException-hasDueDate()isfalse- Compliance:
mandatory- This method must be implemented.
-
getPeriodRecord
Gets the period record corresponding to the givenPeriodrecordType.This method is used to retrieve an object implementing the requested record. TheperiodRecordTypemay be theTypereturned ingetRecordTypes()or any of its parents in aTypehierarchy wherehasRecordType(periodRecordType)istrue.- Parameters:
periodRecordType- the type of period record to retrieve- Returns:
- the period record
- Throws:
NullArgumentException-periodRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(periodRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-