public interface BuildingForm extends OsidObjectForm, OsidTemporalForm
This is the form for creating and updating Buildings.
Like all OsidForm
objects, various data elements may be set
here for use in the create and update methods in the
BuildingAdminSession.
For each data element that may be set,
metadata may be examined to provide display hints or data constraints.
Modifier and Type | Method and Description |
---|---|
void |
clearAddress()
Clears the address.
|
void |
clearEnclosingBuilding()
Clears the enclosing building.
|
void |
clearGrossArea()
Clears the area.
|
void |
clearNumber()
Clears the building number.
|
void |
clearOfficialName()
Clears the official name.
|
Metadata |
getAddressMetadata()
Gets the metadata for an address.
|
BuildingFormRecord |
getBuildingFormRecord(Type buildingRecordType)
Gets the
BuildingFormRecord corresponding to the given
building record Type. |
Metadata |
getEnclosingBuildingMetadata()
Gets the metadata for an enclosing building.
|
Metadata |
getGrossAreaMetadata()
Gets the metadata for the gross area.
|
Metadata |
getNumberMetadata()
Gets the metadata for a number.
|
Metadata |
getOfficialNameMetadata()
Gets the metadata for an official name.
|
void |
setAddress(Id addressId)
Sets the address.
|
void |
setEnclosingBuilding(Id buildingId)
Sets the enclosing building.
|
void |
setGrossArea(java.math.BigDecimal area)
Sets the gross area.
|
void |
setNumber(java.lang.String number)
Sets the building number.
|
void |
setOfficialName(java.lang.String name)
Sets the official name.
|
clearDescription, clearDisplayName, clearGenusType, getDescriptionMetadata, getDisplayNameMetadata, getGenusTypeMetadata, setDescription, setDisplayName, setGenusType
getRequiredRecordTypes
getRecordTypes, hasRecordType
getDefaultLocale, getInvalidMetadata, getJournalCommentMetadata, getLocales, getValidationMessages, isForUpdate, isValid, setJournalComment, setLocale
getId, isCurrent
clearEndDate, clearStartDate, getEndDateMetadata, getStartDateMetadata, setEndDate, setStartDate
Metadata getAddressMetadata()
mandatory
- This method must be implemented. void setAddress(Id addressId)
addressId
- the new addressInvalidArgumentException
- addressId
is
invalidNoAccessException
- Metadata.isReadOnly()
is true
NullArgumentException
- addressId
is
null
mandatory
- This method must be implemented. void clearAddress()
NoAccessException
- Metadata.isRequired()
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. Metadata getOfficialNameMetadata()
mandatory
- This method must be implemented. void setOfficialName(java.lang.String name)
name
- the new nameInvalidArgumentException
- name
is
invalidNoAccessException
- Metadata.isReadOnly()
is true
NullArgumentException
- name
is
null
mandatory
- This method must be implemented. void clearOfficialName()
NoAccessException
- Metadata.isRequired()
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. Metadata getNumberMetadata()
mandatory
- This method must be implemented. void setNumber(java.lang.String number)
number
- the new numberInvalidArgumentException
- number
is
invalidNoAccessException
- Metadata.isReadOnly()
is true
NullArgumentException
- number
is
null
mandatory
- This method must be implemented. void clearNumber()
NoAccessException
- Metadata.isRequired()
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. Metadata getEnclosingBuildingMetadata()
mandatory
- This method must be implemented. void setEnclosingBuilding(Id buildingId)
buildingId
- the new enclosing buildingInvalidArgumentException
- buildingId
is
invalidNoAccessException
- Metadata.isReadOnly()
is true
NullArgumentException
- buildingId
is
null
mandatory
- This method must be implemented. void clearEnclosingBuilding()
NoAccessException
- Metadata.isRequired()
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. Metadata getGrossAreaMetadata()
mandatory
- This method must be implemented. void setGrossArea(java.math.BigDecimal area)
area
- the new areaInvalidArgumentException
- area
is
invalidNoAccessException
- Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. void clearGrossArea()
NoAccessException
- Metadata.isRequired()
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. BuildingFormRecord getBuildingFormRecord(Type buildingRecordType) throws OperationFailedException
BuildingFormRecord
corresponding to the given
building record Type.
buildingRecordType
- the building record typeNullArgumentException
- buildingRecordType
is null
OperationFailedException
- unable to complete requestUnsupportedException
-
hasRecordType(buildingRecordType)
is false
mandatory
- This method must be implemented.