Ruddi™ UDDI Client API
1.0

inspireit.uddi.base
Class CategoryBag

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

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

CategoryBag is a service element used in searching and categorisation.

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

Field Summary
protected  KeyedReferenceGroups keyedReferenceGroups
          A list of KeyedReferenceGroup.
protected  KeyedReferences keyedReferences
          A list of KeyedReference.
 
Constructor Summary
CategoryBag(KeyedReferenceGroups keyedReferenceGroups)
          CategoryBag constructor.
CategoryBag(KeyedReferences keyedReferences)
          CategoryBag constructor.
CategoryBag(KeyedReferences keyedReferences, KeyedReferenceGroups keyedReferenceGroups)
          CategoryBag constructor.
 
Method Summary
 boolean addKeyedReference(KeyedReference keyedReference)
          Adds a KeyedReference.
 boolean addKeyedReferenceGroup(KeyedReferenceGroup keyedReferenceGroup)
          Adds a KeyedReferenceGroup.
 boolean equals(java.lang.Object o)
          Checks whether an object is equal to this CategoryBag.
 KeyedReferenceGroups getKeyedReferenceGroups()
          Gets the KeyedReferenceGroups.
 KeyedReferences getKeyedReferences()
          Gets the KeyedReferences.
 boolean removeKeyedReference(KeyedReference keyedReference)
          Removes a KeyedReference.
 boolean removeKeyedReferenceGroup(KeyedReferenceGroup keyedReferenceGroup)
          Removes a KeyedReferenceGroup.
 java.lang.Object visit(inspireit.uddi.util.visitors.UDDIVisitor visitor)
          Visits this CategoryBag.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

keyedReferences

protected KeyedReferences keyedReferences
A list of KeyedReference.


keyedReferenceGroups

protected KeyedReferenceGroups keyedReferenceGroups
A list of KeyedReferenceGroup.

Constructor Detail

CategoryBag

public CategoryBag(KeyedReferences keyedReferences)
CategoryBag constructor.

Parameters:
keyedReferences - A list of KeyedReference.

CategoryBag

public CategoryBag(KeyedReferences keyedReferences,
                   KeyedReferenceGroups keyedReferenceGroups)
CategoryBag constructor.

Parameters:
keyedReferences - A list of KeyedReference.
Since:
UDDI V3.0

CategoryBag

public CategoryBag(KeyedReferenceGroups keyedReferenceGroups)
CategoryBag constructor.

Parameters:
keyedReferenceGroups - A list of KeyedReferenceGroup.
Since:
UDDI V3.0
Method Detail

getKeyedReferences

public KeyedReferences getKeyedReferences()
Gets the KeyedReferences.

Returns:
the KeyedReferences

addKeyedReference

public boolean addKeyedReference(KeyedReference keyedReference)
Adds a KeyedReference.

Parameters:
keyedReference - The KeyedReference to add.

removeKeyedReference

public boolean removeKeyedReference(KeyedReference keyedReference)
Removes a KeyedReference.

Parameters:
keyedReference - The KeyedReference to remove.

getKeyedReferenceGroups

public KeyedReferenceGroups getKeyedReferenceGroups()
Gets the KeyedReferenceGroups.

Returns:
the KeyedReferenceGroups
Since:
UDDI V3.0

addKeyedReferenceGroup

public boolean addKeyedReferenceGroup(KeyedReferenceGroup keyedReferenceGroup)
Adds a KeyedReferenceGroup.

Parameters:
keyedReferenceGroup - The KeyedReferenceGroup to add.
Since:
UDDI V3.0

removeKeyedReferenceGroup

public boolean removeKeyedReferenceGroup(KeyedReferenceGroup keyedReferenceGroup)
Removes a KeyedReferenceGroup.

Parameters:
keyedReferenceGroup - The KeyedReferenceGroup to remove.
Since:
UDDI V3.0

visit

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

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

equals

public boolean equals(java.lang.Object o)
Checks whether an object is equal to this CategoryBag. Two CategoryBags are equal if they list the same KeyedReferences, whatever the order.

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