org.jafer.registry.model
Class CategoryType

java.lang.Object
  extended by org.jafer.registry.model.CategoryType

public final class CategoryType
extends java.lang.Object

This class represents the category types supported by the registry that can be attached to service providers and services


Field Summary
static java.util.List categories
          Stores a reference to all the categoryTypes
static CategoryType CATEGORY_DDC
          Stores a reference to the DDC (dewey decimal characterisation) category
static CategoryType CATEGORY_GENERAL_KEYWORDS
          Stores a reference to the general keyword category.
static CategoryType CATEGORY_LCSH
          Stores a reference to the LCSH (library of congress subject headings) category.
private  java.lang.String name
          Stores a reference to the name of the category.
 
Constructor Summary
private CategoryType(java.lang.String name)
          Private constructor to create the supported category
 
Method Summary
 boolean equals(CategoryType category)
          Compares two category instances to see if they are equal
static java.util.List getAllCategoryTypes()
          Returns a list of all the supported category types
 java.lang.String getName()
          Returns the name of the category
 java.lang.String toString()
          Returns the to String representation of the category
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CATEGORY_DDC

public static final CategoryType CATEGORY_DDC
Stores a reference to the DDC (dewey decimal characterisation) category


CATEGORY_LCSH

public static final CategoryType CATEGORY_LCSH
Stores a reference to the LCSH (library of congress subject headings) category.


CATEGORY_GENERAL_KEYWORDS

public static final CategoryType CATEGORY_GENERAL_KEYWORDS
Stores a reference to the general keyword category.


name

private java.lang.String name
Stores a reference to the name of the category.


categories

public static java.util.List categories
Stores a reference to all the categoryTypes

Constructor Detail

CategoryType

private CategoryType(java.lang.String name)
Private constructor to create the supported category

Parameters:
name - The name of the category being created
Method Detail

getAllCategoryTypes

public static java.util.List getAllCategoryTypes()
Returns a list of all the supported category types

Returns:
list of Protocol objects

getName

public java.lang.String getName()
Returns the name of the category

Returns:
The category name

equals

public boolean equals(CategoryType category)
Compares two category instances to see if they are equal

Parameters:
category - The category to compare against this instance
Returns:
true if the two instances are the same

toString

public java.lang.String toString()
Returns the to String representation of the category

Overrides:
toString in class java.lang.Object
Returns:
The category name