|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.vt.middleware.ed.AbstractDataObject
edu.vt.middleware.ed.AbstractMutableDataObject
edu.vt.middleware.ed.PhoneNumber
public class PhoneNumber
Contains attributes that identify a phone number.
| Field Summary | |
|---|---|
private Address |
address
address associated with phone number |
private String |
displayPhoneNumber
display phone number |
static String |
FIND_BY_ADDRESS_UID
constant for named query |
static String |
FIND_BY_ADDRESS_UID_AND_TYPE
constant for named query |
static String |
FIND_BY_PERSON_UID
constant for named query |
static String |
FIND_BY_PERSON_UID_AND_TYPE
constant for named query |
private static int |
LEN_AREACODE_PART
length of phone area code prefix |
private static int |
LEN_SUBSCRIBER_PART
length of phone subscriber number |
private static int |
LEN_US_PHONE
length of standard US phone number |
private Person |
person
person associated with phone number |
private String |
phoneNumber
phone number |
private PhoneNumberType |
phoneNumberType
phone number type |
private static long |
serialVersionUID
serial version UID |
private Boolean |
unlisted
whether this address is unlisted |
| Fields inherited from class edu.vt.middleware.ed.AbstractMutableDataObject |
|---|
modificationDate, modifiedBy |
| Fields inherited from class edu.vt.middleware.ed.AbstractDataObject |
|---|
createdBy, creationDate, uid |
| Constructor Summary | |
|---|---|
PhoneNumber()
|
|
| Method Summary | |
|---|---|
void |
copyValues(PhoneNumber dataObject)
Copies the non-relationship values from the supplied object into this object. |
private String |
formatDisplayPhone(String phone)
Formats a phone number with no spaces into the following form: (555) 555-1212 |
Address |
getAddress()
This returns the address associated with this phone number. |
String |
getDisplayPhoneNumber()
This returns the display phone number. |
Person |
getPerson()
This returns the person associated with this phone number. |
String |
getPhoneNumber()
This returns the phone number. |
PhoneNumberType |
getPhoneNumberType()
This returns the phone number type. |
Long |
getUid()
This returns the uid. |
boolean |
isCongruent(PhoneNumber other)
Determines whether the given object is congruent/equivalent to this object via equals comparison on properties. |
Boolean |
isUnlisted()
This returns whether this phone number is unlisted. |
void |
setAddress(Address a)
This sets the address associated with this phone number. |
void |
setPerson(Person p)
This sets the person associated with this phone number. |
void |
setPhoneNumber(String s)
This sets the phone number. |
void |
setPhoneNumberType(PhoneNumberType pnt)
This sets the phone number type. |
void |
setUnlisted(Boolean b)
This sets whether this phone number is unlisted. |
String |
toString()
Returns a String representation of this phone number. |
| Methods inherited from class edu.vt.middleware.ed.AbstractMutableDataObject |
|---|
getModificationDate, getModifiedBy, setModificationDate, setModifiedBy |
| Methods inherited from class edu.vt.middleware.ed.AbstractDataObject |
|---|
compareTo, getCreatedBy, getCreationDate, setCreatedBy, setCreationDate, setUid, validateProperties |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface edu.vt.middleware.ed.DataObject |
|---|
getCreatedBy, getCreationDate, setCreatedBy, setCreationDate, setUid |
| Field Detail |
|---|
public static final String FIND_BY_PERSON_UID
public static final String FIND_BY_PERSON_UID_AND_TYPE
public static final String FIND_BY_ADDRESS_UID
public static final String FIND_BY_ADDRESS_UID_AND_TYPE
private static final long serialVersionUID
private static final int LEN_AREACODE_PART
private static final int LEN_SUBSCRIBER_PART
private static final int LEN_US_PHONE
private PhoneNumberType phoneNumberType
private String phoneNumber
private String displayPhoneNumber
private Boolean unlisted
private Address address
private Person person
| Constructor Detail |
|---|
public PhoneNumber()
| Method Detail |
|---|
public Long getUid()
getUid in interface DataObjectgetUid in class AbstractDataObjectLong - uidpublic PhoneNumberType getPhoneNumberType()
PhoneNumberTypepublic void setPhoneNumberType(PhoneNumberType pnt)
pnt - PhoneNumberTypepublic String getPhoneNumber()
Stringpublic void setPhoneNumber(String s)
s - Stringpublic String getDisplayPhoneNumber()
Stringpublic Boolean isUnlisted()
Booleanpublic void setUnlisted(Boolean b)
b - Booleanpublic Address getAddress()
Address with this phone numberpublic void setAddress(Address a)
a - Address with this phone numberpublic Person getPerson()
Person with this phone numberpublic void setPerson(Person p)
p - Person with this phone numberpublic void copyValues(PhoneNumber dataObject)
copyValues in interface CarbonCopy<PhoneNumber>dataObject - Source to copy from.public boolean isCongruent(PhoneNumber other)
isCongruent in interface Congruence<PhoneNumber>other - The object to compare to this instance.
public String toString()
toString in class AbstractDataObjectStringprivate String formatDisplayPhone(String phone)
phone - Phone number string with no spaces.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||