|
||||||||||
| 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.SIFList<T>
com.edustructures.sifworks.SIFKeyedList<T>
com.edustructures.sifworks.SIFActionList<Address>
com.edustructures.sifworks.common.AddressList
public class AddressList
A list of Address elements
| Field Summary |
|---|
| Fields inherited from class com.edustructures.sifworks.Element |
|---|
CURRENT_SERIALIZE_VERSION |
| Constructor Summary | |
|---|---|
AddressList()
Constructor |
|
AddressList(Address address)
Constructor that accepts values for all mandatory fields |
|
| Method Summary | |
|---|---|
void |
addAddress(AddressType type,
Street street,
java.lang.String city,
StatePrCode stateProvince,
CountryCode country,
java.lang.String postalCode)
Adds a new <Address> repeatable element. |
Address |
getAddress(AddressType type)
Gets an Address object instance. |
Address[] |
getAddresses()
Gets all Address object instances. |
void |
removeAddress(AddressType type)
Removes an Address object instance. |
void |
setAddresses(Address[] addresses)
Sets an array of Address objects. |
| Methods inherited from class com.edustructures.sifworks.SIFKeyedList |
|---|
getChild, getChild |
| Methods inherited from class com.edustructures.sifworks.SIFList |
|---|
add, addAll, clear, contains, containsAll, get, iterator, remove, remove, removeAll, retainAll, size, toArray, toArray |
| Methods inherited from class com.edustructures.sifworks.SIFElement |
|---|
addChild, addChild, clone, compareGraphTo, create, effectiveSIFVersion, getChild, getChild, getChild, getChildCount, getChildList, getChildList, getChildList, getChildren, getChildren, getContent, getContent, getField, getField, getFieldCount, getFields, getFieldValue, getKey, 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 |
| Methods inherited from interface java.util.Collection |
|---|
equals, hashCode, isEmpty |
| Constructor Detail |
|---|
public AddressList()
public AddressList(Address address)
address - This element contains information related to employee's address information.For a description of this element, see 5.1.1 Address.| Method Detail |
|---|
public void addAddress(AddressType type,
Street street,
java.lang.String city,
StatePrCode stateProvince,
CountryCode country,
java.lang.String postalCode)
<Address> repeatable element.
This form of setAddress is provided as a convenience method
that is functionally equivalent to the version of setAddress
that accepts a single Address object.
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.public void removeAddress(AddressType type)
Address object instance. More than one instance can be defined for this object because it is a repeatable field element.
type - Identifies the Address object to remove by its Type valuepublic Address getAddress(AddressType type)
Address object instance. More than one instance can be defined for this object because it is a repeatable field element.
type - Identifies the Address object to return by its "Type" attribute value
Address objectpublic Address[] getAddresses()
Address object instances. More than one instance can be defined for this object because it is a repeatable field element.
Address objectspublic void setAddresses(Address[] addresses)
Address objects. All existing
Address instances
are removed and replaced with this list. Calling this method with the
parameter value set to null removes all Addresses.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||