Interface Project
- All Superinterfaces:
Browsable, Extensible, Identifiable, OsidObject, Temporal
A Project is the initial construction of the building or a
later construction, expansion, or renovation. The effective dates of the
project indicate when this project was active.
-
Method Summary
Modifier and TypeMethodDescriptionGets the building.Gets theIdof the building.getCost()Gets the cost for this renovation.getProjectRecord(Type projectRecordType) Gets the project record corresponding to the givenProjectrecordType.This method is used to retrieve an object implementing the requested record.booleanhasCost()Tests if this renovation has a cost.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.Methods inherited from interface Temporal
getEndDate, getStartDate, isEffectiveModifier and TypeMethodDescriptionGets the end date.Gets the start date.booleanTests if the current date is within the start end end dates inclusive.
-
Method Details
-
getBuildingId
Id getBuildingId()Gets theIdof the building.- Returns:
- the building
Id - Compliance:
mandatory- This method must be implemented.
-
getBuilding
Gets the building.- Returns:
- the building
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
hasCost
boolean hasCost()Tests if this renovation has a cost.- Returns:
trueif a cost is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getCost
Currency getCost()Gets the cost for this renovation.- Returns:
- the cost
- Throws:
IllegalStateException-hasCost()isfalse- Compliance:
mandatory- This method must be implemented.
-
getProjectRecord
Gets the project record corresponding to the givenProjectrecordType.This method is used to retrieve an object implementing the requested record. TheProjectRecordTypemay be theTypereturned ingetRecordTypes()or any of its parents in aTypehierarchy wherehasRecordType(projectRecordType)istrue.- Parameters:
projectRecordType- the type of project record to retrieve- Returns:
- the project record
- Throws:
NullArgumentException-projectRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(projectRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-