Skip navigation links


oracle.iam.configservice.vo
Class CategoryDefinition

java.lang.Object
  extended by oracle.iam.configservice.vo.CategoryDefinition

All Implemented Interfaces:
java.io.Serializable

public class CategoryDefinition
extends java.lang.Object
implements java.io.Serializable

The CategoryDefinition is a value object representing a category. A category is used to categorise attributes on the UI. The category has a name and list of attributes that belong to the category. Each attribute can belong to only one category.

See Also:
Serialized Form

Constructor Summary
CategoryDefinition(java.lang.String name)
           

 

Method Summary
 void addAttribute(java.lang.String attributeName)
          Add a new attribute to this category.
 java.util.List getAttributes()
          Get the list of attributes belonging to this category.
 java.lang.String getDisplayName()
          Get the display name of the category, to be shown on the UI.
 java.lang.String getDisplayName(java.util.ResourceBundle bundle)
          Get the display name of the category, to be shown on the UI.
 java.lang.String getName()
          Get the name of the category, as set while creating the definition.
 void setAttributes(java.util.List attributes)
          Set the attributes for this category.

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

CategoryDefinition

public CategoryDefinition(java.lang.String name)

Method Detail

getName

public java.lang.String getName()
Get the name of the category, as set while creating the definition.
Returns:
name of the category

getDisplayName

public java.lang.String getDisplayName()
Get the display name of the category, to be shown on the UI. If display name is null, it will return the name.
Returns:
display name of the category

getDisplayName

public java.lang.String getDisplayName(java.util.ResourceBundle bundle)
Get the display name of the category, to be shown on the UI. It fetches the translation from the passed bundle.
Parameters:
bundle - the resource bundle which contains the translation for the category name
Returns:
display name of the category

getAttributes

public java.util.List getAttributes()
Get the list of attributes belonging to this category.
Returns:
list of attributes belonging to this category

setAttributes

public void setAttributes(java.util.List attributes)
Set the attributes for this category.
Parameters:
attributes - list of attributes

addAttribute

public void addAttribute(java.lang.String attributeName)
Add a new attribute to this category.
Parameters:
attributeName - attribute to be added to this category

Skip navigation links


Copyright © 2010, Oracle and/or its affiliates. All rights reserved.