|
||||||||||
| 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.SIFKeyedElement
com.edustructures.sifworks.common.Address
public class Address
This element represents an address. This object occurs within objects and elements such as StaffPersonal and StudentPersonal/StudentAddress, etc.
| Field Summary |
|---|
| Fields inherited from class com.edustructures.sifworks.Element |
|---|
CURRENT_SERIALIZE_VERSION |
| Constructor Summary | |
|---|---|
Address()
Constructor |
|
Address(AddressType type,
Street street,
java.lang.String city,
StatePrCode stateProvince,
CountryCode country,
java.lang.String postalCode)
Constructor that accepts values for all mandatory fields |
|
| Method Summary | |
|---|---|
java.lang.String |
getCity()
Gets the value of the <City> element. |
java.lang.String |
getCountry()
Gets the value of the <Country> element. |
java.lang.String |
getCounty()
Gets the value of the <County> element. |
GridLocation |
getGridLocation()
Gets the value of the <GridLocation> 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.String |
getPostalCode()
Gets the value of the <PostalCode> element. |
java.lang.String |
getStateProvince()
Gets the value of the <StateProvince> element. |
Street |
getStreet()
Gets the value of the <Street> element. |
java.lang.String |
getType()
Gets the value of the Type attribute. |
void |
removeGridLocation()
Removes the GridLocation child element previously created by calling setGridLocation |
void |
removeStreet()
Removes the Street child element previously created by calling setStreet |
void |
setCity(java.lang.String value)
Sets the value of the <City> element. |
void |
setCountry(CountryCode value)
Sets the value of the <Country> element. |
void |
setCountry(java.lang.String value)
Sets the value of the <Country> element as a String. |
void |
setCounty(java.lang.String value)
Sets the value of the <County> element. |
void |
setGridLocation(java.math.BigDecimal latitude,
java.math.BigDecimal longitude)
Sets the value of the <GridLocation> child element. |
void |
setGridLocation(GridLocation value)
Sets the value of the <GridLocation> element. |
void |
setPostalCode(java.lang.String value)
Sets the value of the <PostalCode> element. |
void |
setStateProvince(StatePrCode value)
Sets the value of the <StateProvince> element. |
void |
setStateProvince(java.lang.String value)
Sets the value of the <StateProvince> element as a String. |
void |
setStreet(Street value)
Sets the value of the <Street> element. |
void |
setStreet(java.lang.String line1)
Sets the value of the <Street> child element. |
void |
setType(AddressType value)
Sets the value of the Type attribute. |
void |
setType(java.lang.String value)
Sets the value of the Type attribute as a String. |
| Methods inherited from class com.edustructures.sifworks.SIFElement |
|---|
addChild, addChild, clone, compareGraphTo, create, effectiveSIFVersion, getChild, getChild, getChild, getChild, getChild, getChildCount, getChildList, getChildList, getChildList, getChildren, getChildren, getContent, getContent, getField, getField, getFieldCount, getFields, getFieldValue, getSIFValue, getSIFVersion, getTextValue, getXmlId, hasTextValue, removeChild, removeChild, removeChild, removeChild, restoreImplementationDef, setChanged, setChildren, setEmpty, setField, setField, setField, setField, setSIFValue, setSIFVersion, 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 Address()
public Address(AddressType type,
Street street,
java.lang.String city,
StatePrCode stateProvince,
CountryCode country,
java.lang.String postalCode)
type - Code that defines the location of the address. Note: A subset of specific valid values for each instance in a data object may be listed in that object.street - The street part of the addresscity - The city part of the address.stateProvince - The state or province code.country - The country code.postalCode - The ZIP/postal code.| Method Detail |
|---|
public java.lang.String getKey()
getKey in class SIFElementpublic ElementDef[] getKeyFields()
public java.lang.String getType()
Type attribute.
The SIF specification defines the meaning of this attribute as: "Code that defines the location of the address. Note: A subset of specific valid values for each instance in a data object may be listed in that object."
Type attribute of this object.public void setType(AddressType value)
Type attribute.
The SIF specification defines the meaning of this attribute as: "Code that defines the location of the address. Note: A subset of specific valid values for each instance in a data object may be listed in that object."
value - A constant defined by the AddressType classpublic void setType(java.lang.String value)
Type attribute as a String.
The SIF specification defines the meaning of this attribute as: "Code that defines the location of the address. Note: A subset of specific valid values for each instance in a data object may be listed in that object."
value - The value as a Stringpublic void setStreet(Street value)
<Street> element.
The SIF specification defines the meaning of this element as: "The street part of the address"
value - A Street objectpublic void setStreet(java.lang.String line1)
<Street> child element.
This form of setStreet is provided as a convenience method
that is functionally equivalent to the version of setStreet
that accepts a single Street object.
line1 - Address line 1.public Street getStreet()
<Street> element.
The SIF specification defines the meaning of this element as: "The street part of the address"
Street objectpublic void removeStreet()
Street child element previously created by calling setStreet
public java.lang.String getCity()
<City> element.
The SIF specification defines the meaning of this element as: "The city part of the address."
City element of this object.public void setCity(java.lang.String value)
<City> element.
The SIF specification defines the meaning of this element as: "The city part of the address."
value - A String objectpublic java.lang.String getCounty()
<County> element.
The SIF specification defines the meaning of this element as: "The county part of the address."
County element of this object.public void setCounty(java.lang.String value)
<County> element.
The SIF specification defines the meaning of this element as: "The county part of the address."
value - A String objectpublic java.lang.String getStateProvince()
<StateProvince> element.
The SIF specification defines the meaning of this element as: "The state or province code."
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 | "StatePr" |
| SIF2.0 | "StateProvince" |
StateProvince element of this object.public void setStateProvince(StatePrCode value)
<StateProvince> element.
The SIF specification defines the meaning of this element as: "The state or province code."
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 | "StatePr" |
| SIF2.0 | "StateProvince" |
value - A constant defined by the StatePrCode classpublic void setStateProvince(java.lang.String value)
<StateProvince> element as a String.
The SIF specification defines the meaning of this element as: "The state or province code."
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 | "StatePr" |
| SIF2.0 | "StateProvince" |
value - The value as a Stringpublic java.lang.String getCountry()
<Country> element.
The SIF specification defines the meaning of this element as: "The country code."
Country element of this object.public void setCountry(CountryCode value)
<Country> element.
The SIF specification defines the meaning of this element as: "The country code."
value - A constant defined by the CountryCode classpublic void setCountry(java.lang.String value)
<Country> element as a String.
The SIF specification defines the meaning of this element as: "The country code."
value - The value as a Stringpublic java.lang.String getPostalCode()
<PostalCode> element.
The SIF specification defines the meaning of this element as: "The ZIP/postal code."
PostalCode element of this object.public void setPostalCode(java.lang.String value)
<PostalCode> element.
The SIF specification defines the meaning of this element as: "The ZIP/postal code."
value - A String objectpublic void setGridLocation(GridLocation value)
<GridLocation> element.
The SIF specification defines the meaning of this element as: "The location of the address."
value - A GridLocation object
public void setGridLocation(java.math.BigDecimal latitude,
java.math.BigDecimal longitude)
<GridLocation> child element.
This form of setGridLocation is provided as a convenience method
that is functionally equivalent to the version of setGridLocation
that accepts a single GridLocation object.
latitude - The latitude coordinate of this location expressed in decimal format (e.g. "41.7699657")longitude - The longitude coordinate of this location expressed in decimal format (e.g. "79.548445")public GridLocation getGridLocation()
<GridLocation> element.
The SIF specification defines the meaning of this element as: "The location of the address."
GridLocation objectpublic void removeGridLocation()
GridLocation child element previously created by calling setGridLocation
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||