Skip navigation links


com.fatwire.services.beans.asset.basic.template
Class ArgumentBean

java.lang.Object
  extended by com.fatwire.services.beans.BaseBean
      extended by com.fatwire.services.beans.asset.basic.template.ArgumentBean

All Implemented Interfaces:
java.io.Serializable

public class ArgumentBean
extends BaseBean

The ArgumentBean represents an argument associated with a template. A template argument has a name, description and a map of argument values. The template argument values are keys to the map of argument values and the description of the template argument values are values in that map. For example, let there be a template argument called "color" described as "Product color" which can have possible values: ['red', 'blue']. For these values, let the corresponding description be: ["Color: Red", "Color: Blue"]. For such an argument, name is set as "color", description as "Product Color", and the map of argument values is constructed like: {"red"="Color: Red", "blue"="Color: Blue"}.

See Also:
Serialized Form

Constructor Summary
ArgumentBean()
           

 

Method Summary
 java.lang.String getDescription()
          Returns a description for this template argument.
 java.lang.String getName()
          Returns the name of this template argument.
 java.util.Map<java.lang.String,java.lang.String> getValues()
          Returns a mapping of template argument values and their corresponding description.
 void setDescription(java.lang.String description)
          Sets a description for this template argument.
 void setName(java.lang.String name)
          Sets the name of this template argument.

 

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

 

Constructor Detail

ArgumentBean

public ArgumentBean()

Method Detail

getName

public java.lang.String getName()
Returns the name of this template argument.
Returns:
the name.

setName

public void setName(java.lang.String name)
Sets the name of this template argument.
Parameters:
name - the name of this template argument to set.

getDescription

public java.lang.String getDescription()
Returns a description for this template argument.
Returns:
the description.

setDescription

public void setDescription(java.lang.String description)
Sets a description for this template argument.
Parameters:
description - the description to set.

getValues

public java.util.Map<java.lang.String,java.lang.String> getValues()
Returns a mapping of template argument values and their corresponding description.
Returns:
Map containing template argument values as keys and value description as values in the map.

Skip navigation links


Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.