Interface Building
- All Superinterfaces:
Browsable, Extensible, Identifiable, OsidObject, Temporal
A Building represents a collection of floors.
-
Method Summary
Modifier and TypeMethodDescriptionGets the building address.Gets the address of this building.getBuildingRecord(Type buildingRecordType) Gets the building record corresponding to the givenBuildingrecordType.This method is used to retrieve an object implementing the requested record.Gets the enclosing building if this building is a subdivision.Gets the enclosing buildingIdif this building is a subdivision.Gets the gross square footage of this building.Gets the building number or code (e.g.Gets the formal name for this building (e.g.Gets the subdivision buildingIdsif this building is subdivided.Gets the subdivision buildings if this building is subdivided.booleanhasArea()Tests if an area is available.booleanTests if this building is a subdivision of another building.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
-
getAddressId
Id getAddressId()Gets the address of this building.- Returns:
- the building address
Id - Compliance:
mandatory- This method must be implemented.
-
getAddress
Gets the building address.- Returns:
- the building address.
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getOfficialName
DisplayText getOfficialName()Gets the formal name for this building (e.g. Guggenheim Laboratory). The display name may or may not differ from this name but may be based on the code (e.g. Building 35).- Returns:
- the name
- Compliance:
mandatory- This method must be implemented.
-
getNumber
String getNumber()Gets the building number or code (e.g. 35).- Returns:
- the building number
- Compliance:
mandatory- This method must be implemented.
-
isSubdivision
boolean isSubdivision()Tests if this building is a subdivision of another building.- Returns:
trueif this building is a subdivisiaion,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getEnclosingBuildingId
Id getEnclosingBuildingId()Gets the enclosing buildingIdif this building is a subdivision.- Returns:
- the enclosing building
Id - Throws:
IllegalStateException-isSubdivision()isfalse- Compliance:
mandatory- This method must be implemented.
-
getEnclosingBuilding
Gets the enclosing building if this building is a subdivision.- Returns:
- the enlcosing building
- Throws:
IllegalStateException-isSubdivision()isfalseOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getSubdivisionIds
IdList getSubdivisionIds()Gets the subdivision buildingIdsif this building is subdivided.- Returns:
- the subdivision building
Ids - Compliance:
mandatory- This method must be implemented.
-
getSubdivisions
Gets the subdivision buildings if this building is subdivided.- Returns:
- the subdivision buildings
- Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
hasArea
boolean hasArea()Tests if an area is available.- Returns:
trueif an area is available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getGrossArea
BigDecimal getGrossArea()Gets the gross square footage of this building.- Returns:
- the gross area
- Throws:
IllegalStateException-hasArea()isfalse- Compliance:
mandatory- This method must be implemented.
-
getBuildingRecord
Gets the building record corresponding to the givenBuildingrecordType.This method is used to retrieve an object implementing the requested record. ThebuildingRecordTypemay be theTypereturned ingetRecordTypes()or any of its parents in aTypehierarchy wherehasRecordType(buildingRecordType)istrue.- Parameters:
buildingRecordType- the type of building record to retrieve- Returns:
- the building record
- Throws:
NullArgumentException-buildingRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(buildingRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-