Ruddi™ UDDI Client API
1.0

inspireit.uddi.base
Class Phone

java.lang.Object
  |
  +--inspireit.uddi.base.Phone
All Implemented Interfaces:
java.io.Serializable, inspireit.uddi.util.visitors.UDDIElement

public class Phone
extends java.lang.Object
implements java.io.Serializable, inspireit.uddi.util.visitors.UDDIElement

Phone class.

Author:
Bertrand Fontaine, INSPIRE IT $Revision: 1.2 $
See Also:
Serialized Form

Field Summary
protected  java.lang.String phone
          The telephone number information.
protected  UseType useType
          Optional attribute that is used to for descriptive purpose.
 
Constructor Summary
Phone(java.lang.String phone)
          Phone constructor.
 
Method Summary
 boolean equals(java.lang.Object o)
          Checks whether an object is equal to this Phone.
 java.lang.String getPhone()
          Gets the telephone number.
 UseType getUseType()
          Gets some descriptive information for the phone number.
 void setUseType(UseType useType)
          Sets some descriptive information for the phone number.
 java.lang.String toString()
          String representation of this Phone.
 java.lang.Object visit(inspireit.uddi.util.visitors.UDDIVisitor visitor)
          Visits this Phone.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

phone

protected java.lang.String phone
The telephone number information.


useType

protected UseType useType
Optional attribute that is used to for descriptive purpose. If more than one Phone element is saved, useType attributes are required on each.

Constructor Detail

Phone

public Phone(java.lang.String phone)
Phone constructor.

Parameters:
phone - The telephone number.
Method Detail

getPhone

public java.lang.String getPhone()
Gets the telephone number.

Returns:
the telephone number

getUseType

public UseType getUseType()
Gets some descriptive information for the phone number.

Returns:
some descriptive information for the phone number

setUseType

public void setUseType(UseType useType)
Sets some descriptive information for the phone number.

Parameters:
useType - Some descriptive information for the phone number.

visit

public java.lang.Object visit(inspireit.uddi.util.visitors.UDDIVisitor visitor)
Visits this Phone.

Specified by:
visit in interface inspireit.uddi.util.visitors.UDDIElement
Parameters:
visitor - The Visitor visiting this Phone.

toString

public java.lang.String toString()
String representation of this Phone.

Overrides:
toString in class java.lang.Object
Returns:
a String representation of this Phone

equals

public boolean equals(java.lang.Object o)
Checks whether an object is equal to this Phone. Two Phones are equal if they have the same value. The useType is not taken into account.

Overrides:
equals in class java.lang.Object
Parameters:
o - The object to test for equality.
Returns:
true if o and this Phone are equal; false otherwise

Ruddi™ UDDI Client API
1.0

Download now! | Submit a bug or feature
(c) 2003 INSPIRE IT
Bld Brand Whitlock 109
1200 Brussels, Belgium
All Rights Reserved.