|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.edustructures.sifworks.Element
com.edustructures.sifworks.SIFElement
com.edustructures.sifworks.SIFDataObject
com.edustructures.sifworks.student.RoomInfo
public class RoomInfo
This object contains all of the information about a school's room. This object contains a reference to a room type so that it may represent anything from a gym, cafeteria, to a standard classroom.
| Field Summary |
|---|
| Fields inherited from class com.edustructures.sifworks.Element |
|---|
CURRENT_SERIALIZE_VERSION |
| Constructor Summary | |
|---|---|
RoomInfo()
Constructor |
|
RoomInfo(java.lang.String refId,
java.lang.String schoolInfoRefId)
Constructor that accepts values for all mandatory fields |
|
| Method Summary | |
|---|---|
java.lang.String |
getBuilding()
Gets the value of the <Building> element. |
java.lang.Integer |
getCapacity()
Gets the value of the <Capacity> element. |
java.lang.String |
getDescription()
Gets the value of the <Description> element. |
java.lang.String |
getHomeroomNumber()
Gets the value of the <HomeroomNumber> element. |
java.lang.String |
getKey()
Gets the key of this object |
ElementDef[] |
getKeyFields()
Gets the metadata fields that make up the key of this object |
PhoneNumber |
getPhoneNumber()
Gets the value of the <PhoneNumber> element. |
java.lang.String |
getRefId()
Gets the value of the RefId attribute. |
java.lang.String |
getRoomNumber()
Gets the value of the <RoomNumber> element. |
java.lang.String |
getRoomTypeRefId()
Gets the value of the <RoomTypeRefId> element. |
java.lang.String |
getSchoolInfoRefId()
Gets the value of the SchoolInfoRefId attribute. |
java.lang.Integer |
getSize()
Gets the value of the <Size> element. |
StaffList |
getStaffList()
Gets the value of the <StaffList> element. |
void |
removePhoneNumber()
Removes the PhoneNumber child element previously created by calling setPhoneNumber |
void |
removeStaffList()
Removes the StaffList child element previously created by calling setStaffList |
void |
setBuilding(java.lang.String value)
Sets the value of the <Building> element. |
void |
setCapacity(java.lang.Integer value)
Sets the value of the <Capacity> element. |
void |
setDescription(java.lang.String value)
Sets the value of the <Description> element. |
void |
setHomeroomNumber(java.lang.String value)
Sets the value of the <HomeroomNumber> element. |
void |
setPhoneNumber(PhoneNumber value)
Sets the value of the <PhoneNumber> element. |
void |
setPhoneNumber(PhoneNumberType type,
java.lang.String number)
Sets the value of the <PhoneNumber> child element. |
void |
setRefId(java.lang.String value)
Sets the value of the RefId attribute. |
void |
setRoomNumber(java.lang.String value)
Sets the value of the <RoomNumber> element. |
void |
setRoomTypeRefId(java.lang.String value)
Sets the value of the <RoomTypeRefId> element. |
void |
setSchoolInfoRefId(java.lang.String value)
Sets the value of the SchoolInfoRefId attribute. |
void |
setSize(java.lang.Integer value)
Sets the value of the <Size> element. |
void |
setStaffList(StaffList value)
Sets the value of the <StaffList> element. |
void |
setStaffList(StaffPersonalRefId staffPersonalRefId)
Sets the value of the <StaffList> child element. |
| Methods inherited from class com.edustructures.sifworks.SIFDataObject |
|---|
addSIFExtendedElement, clone, getElementOrAttribute, getObjectTag, getObjectType, getSIFExtendedElement, getSIFExtendedElements, getSIFExtendedElementsContainer, getSIFMetadata, getSIFVersion, setElementOrAttribute, setElementOrAttribute, setElementOrAttribute, setSIFExtendedElements, setSIFExtendedElementsContainer, setSIFMetadata, setSIFVersion, toXML |
| Methods inherited from class com.edustructures.sifworks.SIFElement |
|---|
addChild, addChild, compareGraphTo, create, effectiveSIFVersion, getChild, getChild, getChild, getChild, getChild, getChildCount, getChildList, getChildList, getChildList, getChildren, getChildren, getContent, getContent, getField, getField, getFieldCount, getFields, getFieldValue, getSIFValue, getTextValue, getXmlId, hasTextValue, removeChild, removeChild, removeChild, removeChild, restoreImplementationDef, setChanged, setChildren, setEmpty, setField, setField, setField, setField, setSIFValue, setTextValue, setXmlId, tag |
| Methods inherited from class com.edustructures.sifworks.Element |
|---|
compareTo, getElementDef, getParent, getRoot, isChanged, isDoNotEncode, isEmpty, setChanged, setDoNotEncode, setElementDef, setEmpty, setParent, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RoomInfo()
public RoomInfo(java.lang.String refId,
java.lang.String schoolInfoRefId)
refId - GUID that identifies this room.schoolInfoRefId - GUID that identifies the school that this room belongs to.| Method Detail |
|---|
public java.lang.String getKey()
getKey in class SIFElementpublic ElementDef[] getKeyFields()
public java.lang.String getRefId()
RefId attribute.
The SIF specification defines the meaning of this attribute as: "GUID that identifies this room."
getRefId in class SIFDataObjectRefId attribute of this object.public void setRefId(java.lang.String value)
RefId attribute.
The SIF specification defines the meaning of this attribute as: "GUID that identifies this room."
value - A String objectpublic java.lang.String getSchoolInfoRefId()
SchoolInfoRefId attribute.
The SIF specification defines the meaning of this attribute as: "GUID that identifies the school that this room belongs to."
SchoolInfoRefId attribute of this object.public void setSchoolInfoRefId(java.lang.String value)
SchoolInfoRefId attribute.
The SIF specification defines the meaning of this attribute as: "GUID that identifies the school that this room belongs to."
value - A String objectpublic java.lang.String getRoomNumber()
<RoomNumber> element.
The SIF specification defines the meaning of this element as: "Room number as presented to the user/application."
RoomNumber element of this object.public void setRoomNumber(java.lang.String value)
<RoomNumber> element.
The SIF specification defines the meaning of this element as: "Room number as presented to the user/application."
value - A String objectpublic void setStaffList(StaffList value)
<StaffList> element.
The SIF specification defines the meaning of this element as: "Staff assigned to this room. For example, the homeroom teacher."
value - A StaffList objectpublic void setStaffList(StaffPersonalRefId staffPersonalRefId)
<StaffList> child element.
This form of setStaffList is provided as a convenience method
that is functionally equivalent to the version of setStaffList
that accepts a single StaffList object.
staffPersonalRefId - Staff assigned to this room. For example, the homeroom teacher.public StaffList getStaffList()
<StaffList> element.
The SIF specification defines the meaning of this element as: "Staff assigned to this room. For example, the homeroom teacher."
StaffList objectpublic void removeStaffList()
StaffList child element previously created by calling setStaffList
public java.lang.String getDescription()
<Description> element.
The SIF specification defines the meaning of this element as: "Friendly name that can be assigned to the room (e.g. Staff Cafeteria)."
Description element of this object.public void setDescription(java.lang.String value)
<Description> element.
The SIF specification defines the meaning of this element as: "Friendly name that can be assigned to the room (e.g. Staff Cafeteria)."
value - A String objectpublic java.lang.String getBuilding()
<Building> element.
The SIF specification defines the meaning of this element as: "Extra building information. In the future Building could become its own object in which case this element will need to be changed to a RefId. Currently it is only required as a free text field."
Building element of this object.public void setBuilding(java.lang.String value)
<Building> element.
The SIF specification defines the meaning of this element as: "Extra building information. In the future Building could become its own object in which case this element will need to be changed to a RefId. Currently it is only required as a free text field."
value - A String objectpublic java.lang.String getHomeroomNumber()
<HomeroomNumber> element.
The SIF specification defines the meaning of this element as: "When a room is designated as a homeroom it may have a different number. Usually blank when room is not a homeroom."
HomeroomNumber element of this object.public void setHomeroomNumber(java.lang.String value)
<HomeroomNumber> element.
The SIF specification defines the meaning of this element as: "When a room is designated as a homeroom it may have a different number. Usually blank when room is not a homeroom."
value - A String objectpublic java.lang.Integer getSize()
<Size> element.
The SIF specification defines the meaning of this element as: "Size in square feet."
Size element of this object.public void setSize(java.lang.Integer value)
<Size> element.
The SIF specification defines the meaning of this element as: "Size in square feet."
value - A Integer objectpublic java.lang.Integer getCapacity()
<Capacity> element.
The SIF specification defines the meaning of this element as: "Number of persons (usually students) that this room can hold."
Capacity element of this object.public void setCapacity(java.lang.Integer value)
<Capacity> element.
The SIF specification defines the meaning of this element as: "Number of persons (usually students) that this room can hold."
value - A Integer objectpublic void setPhoneNumber(PhoneNumber value)
<PhoneNumber> element.
The SIF specification defines the meaning of this element as: "Phone number for the room"
value - A PhoneNumber object
public void setPhoneNumber(PhoneNumberType type,
java.lang.String number)
<PhoneNumber> child element.
This form of setPhoneNumber is provided as a convenience method
that is functionally equivalent to the version of setPhoneNumber
that accepts a single PhoneNumber object.
type - Code that specifies what type of phone number this is. Note: A subset of valid values may be specified in data objects.number - Phone number. Acceptable formats:public PhoneNumber getPhoneNumber()
<PhoneNumber> element.
The SIF specification defines the meaning of this element as: "Phone number for the room"
PhoneNumber objectpublic void removePhoneNumber()
PhoneNumber child element previously created by calling setPhoneNumber
public java.lang.String getRoomTypeRefId()
<RoomTypeRefId> element.
The SIF specification defines the meaning of this element as: "GUID that identifies the room type assigned to this room."
This element is known by more than one tag name depending on the version of SIF in use. The ADK will use the tag names shown below when parsing and rendering elements of this kind.
| Version | Tag |
| 1.1 | "TypeOfRoom" |
| SIF2.0 | "RoomTypeRefId" |
RoomTypeRefId element of this object.public void setRoomTypeRefId(java.lang.String value)
<RoomTypeRefId> element.
The SIF specification defines the meaning of this element as: "GUID that identifies the room type assigned to this room."
This element is known by more than one tag name depending on the version of SIF in use. The ADK will use the tag names shown below when parsing and rendering elements of this kind.
| Version | Tag |
| 1.1 | "TypeOfRoom" |
| SIF2.0 | "RoomTypeRefId" |
value - A String object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||