public class Phone extends java.lang.Object implements RegistryObject
Constructor and Description |
---|
Phone()
Construct a new initialized Phone instance.
|
Phone(java.lang.String number)
Construct a new phone with a given phone-number.
|
Phone(java.lang.String number,
java.lang.String useType)
Construct a new phone with a given phone-number and usetype.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getUseType()
Returns the UseType of this Phone.
|
java.lang.String |
getValue()
Returns the number of this Phone.
|
void |
setUseType(java.lang.String type)
Sets the UseType of this Phone to the given UseType.
|
void |
setValue(java.lang.String number)
Sets the number of this Phone to the given number.
|
public Phone()
public Phone(java.lang.String number)
number
- The number of the new phone.public Phone(java.lang.String number, java.lang.String useType)
number
- The number of the new phone.useType
- The usetype of the new phone.public void setValue(java.lang.String number)
number
- The new number of this phone.public java.lang.String getValue()
public void setUseType(java.lang.String type)
type
- The new UseType of this Phone.public java.lang.String getUseType()
Copyright ? 2003 Apache Software Foundation. All rights reserved.