Ruddi™ UDDI Client API
1.0

inspireit.uddi.base
Class DiscoveryURL

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

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

DiscoveryURL is a URL pointing to an external (typed by convention) discovery doc.

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

Field Summary
static UseType BUSINESSENTITY
          DiscoveryURL use type 'businessEntity'.
protected  java.lang.String discoveryURL
          String data characterising the DiscoveryURL.
static UseType HOMEPAGE
          DiscoveryURL use type 'homepage'.
protected  UseType useType
          The name of the convention that the referenced document follows.
 
Constructor Summary
DiscoveryURL(java.lang.String discoveryURL)
          DiscoveryURL constructor.
DiscoveryURL(java.lang.String discoveryURL, UseType useType)
          DiscoveryURL constructor.
 
Method Summary
 boolean equals(java.lang.Object o)
          Checks whether an object is equal to this DiscoveryURL.
 UseType getUseType()
          Gets the attribute that is used to describe the type of address in freeform text.
 void setUseType(UseType useType)
          Sets the attribute that is used to describe the type of address in freeform text.
 java.lang.String toString()
          Returns a String representation of the DiscoveryURL.
 java.lang.Object visit(inspireit.uddi.util.visitors.UDDIVisitor visitor)
          Visits this DiscoveryURL.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

discoveryURL

protected java.lang.String discoveryURL
String data characterising the DiscoveryURL.


BUSINESSENTITY

public static final UseType BUSINESSENTITY
DiscoveryURL use type 'businessEntity'.


HOMEPAGE

public static final UseType HOMEPAGE
DiscoveryURL use type 'homepage'.


useType

protected UseType useType
The name of the convention that the referenced document follows. Two reserved convention values are "businessEntity" and "businessEntityExt". URL's qualified with these values should point to XML documents of the same type as the useType value.

Constructor Detail

DiscoveryURL

public DiscoveryURL(java.lang.String discoveryURL,
                    UseType useType)
DiscoveryURL constructor.

Parameters:
discoveryURL - String data characterising the DiscoveryURL.
useType - Attribute that designates the name of the convention that the referenced document follows.

DiscoveryURL

public DiscoveryURL(java.lang.String discoveryURL)
DiscoveryURL constructor.

Parameters:
discoveryURL - String data characterising the DiscoveryURL.
Since:
UDDI V3.0
Method Detail

getUseType

public UseType getUseType()
Gets the attribute that is used to describe the type of address in freeform text. Typical examples include "headquarters", "sales office", "billing department", etc.

Returns:
a description of the type of address in freeform text.

setUseType

public void setUseType(UseType useType)
Sets the attribute that is used to describe the type of address in freeform text. Suggested examples include "headquarters", "sales office", "billing department", etc.

Parameters:
useType - A description of the type of address in freeform text.

visit

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

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

toString

public java.lang.String toString()
Returns a String representation of the DiscoveryURL.

Overrides:
toString in class java.lang.Object
Returns:
a String representation of the DiscoveryURL

equals

public boolean equals(java.lang.Object o)
Checks whether an object is equal to this DiscoveryURL. Two DiscoveryURLs are equal if they have same value and useType.

Overrides:
equals in class java.lang.Object
Parameters:
o - The object to test for equality.
Returns:
true if o and this DiscoveryURL 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.