com.adobe.icc.dbforms.obj
Class Category

java.lang.Object
  extended by com.adobe.icc.dbforms.obj.Category
All Implemented Interfaces:
Serializable

public final class Category
extends Object
implements Serializable

POJO for a Category or Subcategory.

Category or Subcategory is determined by the type.

type = 0 implies Category
type = 1 implies Subcategory

See Also:
Serialized Form

Field Summary
static String ASSOCIATION_CUTPOINT
           
static String CATEGORY_CLASS
           
static int CATEGORY_LOWER
           
static int CATEGORY_UPPER
           
static String FIRST_LEVEL_CUTPOINT
           
static String HIERARCHY_CUTPOINT
           
 
Constructor Summary
Category()
          Default constructor.
Category(String name, int type)
          Constructor based on name and type.
Category(String id, String name, int type)
          Constructor from parameters.
 
Method Summary
 Map getExtendedProperties()
          Get the extended properties for the Asset.
 String getId()
          Get the unique identifier of the Category.
 String getName()
          Get the name of the Category.
 int getType()
          Get the type of the Category.
 void setExtendedProperties(Map extendedProperties)
          Sets the extended properties for the Asset.
 void setId(String id)
          Sets the unique identifier of the Category.
 void setName(String name)
          Sets the name of the Category.
 void setType(int type)
          Sets the type of the Category.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CATEGORY_CLASS

public static final String CATEGORY_CLASS

ASSOCIATION_CUTPOINT

public static final String ASSOCIATION_CUTPOINT

HIERARCHY_CUTPOINT

public static final String HIERARCHY_CUTPOINT

FIRST_LEVEL_CUTPOINT

public static final String FIRST_LEVEL_CUTPOINT

CATEGORY_UPPER

public static final transient int CATEGORY_UPPER
See Also:
Constant Field Values

CATEGORY_LOWER

public static final transient int CATEGORY_LOWER
See Also:
Constant Field Values
Constructor Detail

Category

public Category(String name,
                int type)
Constructor based on name and type.

Parameters:
name - A name for the Category
type - A type (0/1) for the Category

Category

public Category()
Default constructor.


Category

public Category(String id,
                String name,
                int type)
Constructor from parameters.

Parameters:
id - Category unique identifier.
name - Category display name
type - Category type (CATEGORY_LOWER, CATEGORY_UPPER)
Method Detail

setType

public void setType(int type)
Sets the type of the Category.

Parameters:
type - The type of the Category.

getId

public String getId()
Get the unique identifier of the Category.

Returns:
the unique identifier of the Category.

getName

public String getName()
Get the name of the Category.

Returns:
The name of the Category.

getType

public int getType()
Get the type of the Category.

Returns:
The type of the Category.

setId

public void setId(String id)
Sets the unique identifier of the Category.

Parameters:
id - The unique identifier of the Category.

setName

public void setName(String name)
Sets the name of the Category.

Parameters:
name - The name of the Category.

getExtendedProperties

public Map getExtendedProperties()
Get the extended properties for the Asset.

Returns:
The Map of extended properties for the Asset.

setExtendedProperties

public void setExtendedProperties(Map extendedProperties)
Sets the extended properties for the Asset.

Parameters:
extendedProperties - The Map of extended properties for the Asset.


[an error occurred while processing this directive] [an error occurred while processing this directive]