|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jafer.registry.uddi.model.Category
public class Category
This class represents an instance of a category. A category can be attached to any service provider or service to allow easy identification when using the service locator. A category for the UDDI is related to a TModelkey that is hidden inside this implementation
Field Summary | |
---|---|
private java.lang.String |
key
Stores a reference to the TModel key for the category |
private java.lang.String |
name
Stores a reference to the name of the category |
private java.lang.String |
value
Stores a reference to the value of this category |
Constructor Summary | |
---|---|
Category(org.uddi4j.util.KeyedReference reference)
Create a category from a Keyed Reference |
|
Category(TModel categoryTModel,
java.lang.String value)
Constructor |
Method Summary | |
---|---|
org.uddi4j.util.CategoryBag |
addToCategoryBag(org.uddi4j.util.CategoryBag categoryBag)
This method adds this category to the category bag supplied. |
boolean |
equalsKeyedReference(org.uddi4j.util.KeyedReference reference)
Checks if the keyed reference values match the values in the category |
static java.util.List |
getCategories(org.uddi4j.util.CategoryBag categoryBag)
Helper method to extract all categories out of a category bag. |
java.lang.String |
getKey()
Gets the TModel key for the category.This is not exposed on the interface to the caller and therfore should not be used outside of this framework. |
java.lang.String |
getName()
Gets the name of this category |
java.lang.String |
getValue()
Gets the value of this category |
org.uddi4j.util.CategoryBag |
removeFromCategoryBag(org.uddi4j.util.CategoryBag categoryBag)
This method removes this category to the category bag supplied. |
void |
setValue(java.lang.String value)
Sets the value on this category |
org.uddi4j.util.KeyedReference |
toKeyedReference()
Converts the category to a keyed reference |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.lang.String key
private java.lang.String name
private java.lang.String value
Constructor Detail |
---|
public Category(TModel categoryTModel, java.lang.String value)
categoryTModel
- The TModel representing the categoryvalue
- The value to apply to the categorypublic Category(org.uddi4j.util.KeyedReference reference)
reference
- The keyed reference to create fromMethod Detail |
---|
public org.uddi4j.util.KeyedReference toKeyedReference()
public boolean equalsKeyedReference(org.uddi4j.util.KeyedReference reference)
reference
- The reference to check
public java.lang.String getKey()
public java.lang.String getName()
getName
in interface Category
public java.lang.String getValue()
getValue
in interface Category
public void setValue(java.lang.String value)
value
- The value to set.public static java.util.List getCategories(org.uddi4j.util.CategoryBag categoryBag)
categoryBag
- The category bag to extract from
public org.uddi4j.util.CategoryBag addToCategoryBag(org.uddi4j.util.CategoryBag categoryBag)
categoryBag
- The category bag to add category to
public org.uddi4j.util.CategoryBag removeFromCategoryBag(org.uddi4j.util.CategoryBag categoryBag) throws CategoryDoesNotExistException
categoryBag
- The category bag to delete category from
CategoryDoesNotExistException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |