|
||||||||||
| 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.trans.BusRouteInfo
public class BusRouteInfo
This object contains all of the information about a bus route
| Field Summary |
|---|
| Fields inherited from class com.edustructures.sifworks.Element |
|---|
CURRENT_SERIALIZE_VERSION |
| Constructor Summary | |
|---|---|
BusRouteInfo()
Constructor |
|
BusRouteInfo(java.lang.String refId,
java.lang.String busInfoRefId,
java.lang.String routeNumber,
RouteType routeType)
Constructor that accepts values for all mandatory fields |
|
| Method Summary | |
|---|---|
java.lang.String |
getBusInfoRefId()
Gets the value of the <BusInfoRefId> element. |
java.lang.String |
getDescription()
Gets the value of the <Description> 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 |
java.lang.Integer |
getMaximumLoad()
Gets the value of the <MaximumLoad> element. |
Name |
getName()
Gets the value of the <Name> element. |
java.lang.String |
getRefId()
Gets the value of the RefId attribute. |
RouteDistance |
getRouteDistanceLoaded()
Gets the value of the <RouteDistanceLoaded> element. |
RouteDistance |
getRouteDistanceTotal()
Gets the value of the <RouteDistanceTotal> element. |
javax.xml.datatype.Duration |
getRouteDurationLoaded()
Gets the value of the <RouteDurationLoaded> element. |
javax.xml.datatype.Duration |
getRouteDurationTotal()
Gets the value of the <RouteDurationTotal> element. |
java.lang.String |
getRouteNumber()
Gets the value of the <RouteNumber> element. |
java.lang.String |
getRouteType()
Gets the value of the <RouteType> element. |
void |
removeName()
Removes the Name child element previously created by calling setName |
void |
removeRouteDistanceLoaded()
Removes the RouteDistanceLoaded child element previously created by calling setRouteDistanceLoaded |
void |
removeRouteDistanceTotal()
Removes the RouteDistanceTotal child element previously created by calling setRouteDistanceTotal |
void |
setBusInfoRefId(java.lang.String value)
Sets the value of the <BusInfoRefId> element. |
void |
setDescription(java.lang.String value)
Sets the value of the <Description> element. |
void |
setMaximumLoad(java.lang.Integer value)
Sets the value of the <MaximumLoad> element. |
void |
setName(Name value)
Sets the value of the <Name> element. |
void |
setName(NameType type,
java.lang.String lastName,
java.lang.String firstName)
Sets the value of the <Name> child element. |
void |
setRefId(java.lang.String value)
Sets the value of the RefId attribute. |
void |
setRouteDistanceLoaded(DistanceUnit unit,
java.lang.String value)
Sets the value of the <RouteDistanceLoaded> child element. |
void |
setRouteDistanceLoaded(RouteDistance value)
Sets the value of the <RouteDistanceLoaded> element. |
void |
setRouteDistanceTotal(DistanceUnit unit,
java.lang.String value)
Sets the value of the <RouteDistanceTotal> child element. |
void |
setRouteDistanceTotal(RouteDistance value)
Sets the value of the <RouteDistanceTotal> element. |
void |
setRouteDurationLoaded(javax.xml.datatype.Duration value)
Sets the value of the <RouteDurationLoaded> element. |
void |
setRouteDurationTotal(javax.xml.datatype.Duration value)
Sets the value of the <RouteDurationTotal> element. |
void |
setRouteNumber(java.lang.String value)
Sets the value of the <RouteNumber> element. |
void |
setRouteType(RouteType value)
Sets the value of the <RouteType> element. |
void |
setRouteType(java.lang.String value)
Sets the value of the <RouteType> element as a String. |
| 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 BusRouteInfo()
public BusRouteInfo(java.lang.String refId,
java.lang.String busInfoRefId,
java.lang.String routeNumber,
RouteType routeType)
refId - GUID that identifies this bus route.busInfoRefId - The bus associated with this routerouteNumber - A unique identifier for the route. It may contain any printable ASCII character. For instance, you may have route 16AM in the morning and a 16PM in the afternoon.routeType - The type of route.| 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 bus route."
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 bus route."
value - A String objectpublic java.lang.String getBusInfoRefId()
<BusInfoRefId> element.
The SIF specification defines the meaning of this element as: "The bus associated with this route"
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 | "Bus" |
| SIF2.0 | "BusInfoRefId" |
BusInfoRefId element of this object.public void setBusInfoRefId(java.lang.String value)
<BusInfoRefId> element.
The SIF specification defines the meaning of this element as: "The bus associated with this route"
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 | "Bus" |
| SIF2.0 | "BusInfoRefId" |
value - A String objectpublic java.lang.String getRouteNumber()
<RouteNumber> element.
The SIF specification defines the meaning of this element as: "A unique identifier for the route. It may contain any printable ASCII character. For instance, you may have route 16AM in the morning and a 16PM in the afternoon."
RouteNumber element of this object.public void setRouteNumber(java.lang.String value)
<RouteNumber> element.
The SIF specification defines the meaning of this element as: "A unique identifier for the route. It may contain any printable ASCII character. For instance, you may have route 16AM in the morning and a 16PM in the afternoon."
value - A String objectpublic java.lang.String getRouteType()
<RouteType> element.
The SIF specification defines the meaning of this element as: "The type of route."
RouteType element of this object.public void setRouteType(RouteType value)
<RouteType> element.
The SIF specification defines the meaning of this element as: "The type of route."
value - A constant defined by the RouteType classpublic void setRouteType(java.lang.String value)
<RouteType> element as a String.
The SIF specification defines the meaning of this element as: "The type of route."
value - The value as a Stringpublic java.lang.Integer getMaximumLoad()
<MaximumLoad> element.
The SIF specification defines the meaning of this element as: "The maximum number of students who are on the bus at any point along this route."
MaximumLoad element of this object.public void setMaximumLoad(java.lang.Integer value)
<MaximumLoad> element.
The SIF specification defines the meaning of this element as: "The maximum number of students who are on the bus at any point along this route."
value - A Integer objectpublic java.lang.String getDescription()
<Description> element.
The SIF specification defines the meaning of this element as: "Short explanation of the route. It may be used to designate an area, or used to color-code bus routes (the "orange" route)."
Description element of this object.public void setDescription(java.lang.String value)
<Description> element.
The SIF specification defines the meaning of this element as: "Short explanation of the route. It may be used to designate an area, or used to color-code bus routes (the "orange" route)."
value - A String objectpublic void setName(Name value)
<Name> element.
The SIF specification defines the meaning of this element as: "Name of the driver who drives this route."
value - A Name object
public void setName(NameType type,
java.lang.String lastName,
java.lang.String firstName)
<Name> child element.
This form of setName is provided as a convenience method
that is functionally equivalent to the version of setName
that accepts a single Name object.
type - Code that specifies what type of name this is. If unsure, use 04.lastName - The last name.firstName - The first name.public Name getName()
<Name> element.
The SIF specification defines the meaning of this element as: "Name of the driver who drives this route."
Name objectpublic void removeName()
Name child element previously created by calling setName
public javax.xml.datatype.Duration getRouteDurationLoaded()
<RouteDurationLoaded> element.
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 | "RouteDuration" |
| SIF2.0 | "RouteDurationLoaded" |
RouteDurationLoaded element of this object.public void setRouteDurationLoaded(javax.xml.datatype.Duration value)
<RouteDurationLoaded> element.
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 | "RouteDuration" |
| SIF2.0 | "RouteDurationLoaded" |
value - A javax.xml.datatype.Duration objectpublic javax.xml.datatype.Duration getRouteDurationTotal()
<RouteDurationTotal> element.
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 | "RouteDuration" |
| SIF2.0 | "RouteDurationTotal" |
RouteDurationTotal element of this object.public void setRouteDurationTotal(javax.xml.datatype.Duration value)
<RouteDurationTotal> element.
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 | "RouteDuration" |
| SIF2.0 | "RouteDurationTotal" |
value - A javax.xml.datatype.Duration objectpublic void setRouteDistanceLoaded(RouteDistance value)
<RouteDistanceLoaded> element.
The SIF specification defines the meaning of this element as: "Refers to the distance the bus drives when at least one student is riding the bus."
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 | "RouteDistance" |
| SIF2.0 | "RouteDistanceLoaded" |
value - A RouteDistance object
public void setRouteDistanceLoaded(DistanceUnit unit,
java.lang.String value)
<RouteDistanceLoaded> child element.
This form of setRouteDistanceLoaded is provided as a convenience method
that is functionally equivalent to the version of setRouteDistanceLoaded
that accepts a single RouteDistance object.
unit - Units used in the odometer reading.value - Gets or sets the content value of the <RouteDistance> elementpublic RouteDistance getRouteDistanceLoaded()
<RouteDistanceLoaded> element.
The SIF specification defines the meaning of this element as: "Refers to the distance the bus drives when at least one student is riding the bus."
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 | "RouteDistance" |
| SIF2.0 | "RouteDistanceLoaded" |
RouteDistance objectpublic void removeRouteDistanceLoaded()
RouteDistanceLoaded child element previously created by calling setRouteDistanceLoaded
public void setRouteDistanceTotal(RouteDistance value)
<RouteDistanceTotal> element.
The SIF specification defines the meaning of this element as: "Includes the total distance driven for this route including to and from garage."
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 | "RouteDistance" |
| SIF2.0 | "RouteDistanceTotal" |
value - A RouteDistance object
public void setRouteDistanceTotal(DistanceUnit unit,
java.lang.String value)
<RouteDistanceTotal> child element.
This form of setRouteDistanceTotal is provided as a convenience method
that is functionally equivalent to the version of setRouteDistanceTotal
that accepts a single RouteDistance object.
unit - Units used in the odometer reading.value - Gets or sets the content value of the <RouteDistance> elementpublic RouteDistance getRouteDistanceTotal()
<RouteDistanceTotal> element.
The SIF specification defines the meaning of this element as: "Includes the total distance driven for this route including to and from garage."
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 | "RouteDistance" |
| SIF2.0 | "RouteDistanceTotal" |
RouteDistance objectpublic void removeRouteDistanceTotal()
RouteDistanceTotal child element previously created by calling setRouteDistanceTotal
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||