com.adobe.icc.dbforms.obj
Class Category

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

public final class Category
extends java.lang.Object
implements java.io.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 java.lang.String ASSOCIATION_CUTPOINT
          For internal use.
static java.lang.String CATEGORY_CLASS
          For internal use.
static int CATEGORY_LOWER
          Constant to represent lower category.
static int CATEGORY_UPPER
          Constant to represent upper category.
static java.lang.String FIRST_LEVEL_CUTPOINT
          For internal use.
static java.lang.String HIERARCHY_CUTPOINT
          For internal use.
 
Constructor Summary
Category()
          Default constructor.
Category(java.lang.String name, int type)
          Constructor based on name and type.
Category(java.lang.String id, java.lang.String name, int type)
          Constructor from parameters.
 
Method Summary
 java.util.Map getExtendedProperties()
          Get the extended properties for the Asset.
 java.lang.String getId()
          Get the unique identifier of the Category.
 java.lang.String getName()
          Get the name of the Category.
 java.lang.String getNodeName()
          Returns name of the category node.
 int getType()
          Get the type of the Category.
 void setExtendedProperties(java.util.Map extendedProperties)
          Sets the extended properties for the Asset.
 void setId(java.lang.String id)
          Sets the unique identifier of the Category.
 void setName(java.lang.String name)
          Sets the name of the Category.
 void setNodeName(java.lang.String nodeName)
          Sets name of the category node.
 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 java.lang.String CATEGORY_CLASS
For internal use.


ASSOCIATION_CUTPOINT

public static final java.lang.String ASSOCIATION_CUTPOINT
For internal use.


HIERARCHY_CUTPOINT

public static final java.lang.String HIERARCHY_CUTPOINT
For internal use.


FIRST_LEVEL_CUTPOINT

public static final java.lang.String FIRST_LEVEL_CUTPOINT
For internal use.


CATEGORY_UPPER

public static final transient int CATEGORY_UPPER
Constant to represent upper category.

See Also:
Constant Field Values

CATEGORY_LOWER

public static final transient int CATEGORY_LOWER
Constant to represent lower category.

See Also:
Constant Field Values
Constructor Detail

Category

public Category(java.lang.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(java.lang.String id,
                java.lang.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 java.lang.String getId()
Get the unique identifier of the Category.

Returns:
the unique identifier of the Category.

getName

public java.lang.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(java.lang.String id)
Sets the unique identifier of the Category.

Parameters:
id - The unique identifier of the Category.

setName

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

Parameters:
name - The name of the Category.

getExtendedProperties

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

Returns:
The Map of extended properties for the Asset.

setExtendedProperties

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

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

getNodeName

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

Returns:
node name

setNodeName

public void setNodeName(java.lang.String nodeName)
Sets name of the category node.

Parameters:
nodeName - node name


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