it.eng.spagobi.bo.lov
Class FixedListDetail

java.lang.Object
  extended by it.eng.spagobi.bo.lov.FixedListDetail
All Implemented Interfaces:
ILovDetail, java.io.Serializable

public class FixedListDetail
extends java.lang.Object
implements ILovDetail

Gives us all methods to handle the list of all values for the Fix Lov Selection Wizard.

See Also:
Serialized Form

Constructor Summary
FixedListDetail()
           
FixedListDetail(java.lang.String dataDefinition)
           
 
Method Summary
 void add(java.lang.String name, java.lang.String description)
          Adds a lov to the lov Detail List
static FixedListDetail fromXML(java.lang.String dataDefinition)
          Splits an XML string by using some SourceBean object methods in order to obtain the source LovDetail objects whom XML has been built.
 java.lang.String getLovResult(it.eng.spago.security.IEngUserProfile profile)
           
 java.util.List getLovs()
           
 void loadFromXML(java.lang.String dataDefinition)
           
 void remove(java.lang.String name, java.lang.String description)
          Deletes a lov from the lov Detail List
 void setLovs(java.util.List lovs)
           
 java.lang.String toXML()
          Loads the XML string defined by a LovDetail object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FixedListDetail

public FixedListDetail()

FixedListDetail

public FixedListDetail(java.lang.String dataDefinition)
                throws it.eng.spago.base.SourceBeanException
Throws:
it.eng.spago.base.SourceBeanException
Method Detail

loadFromXML

public void loadFromXML(java.lang.String dataDefinition)
                 throws it.eng.spago.base.SourceBeanException
Specified by:
loadFromXML in interface ILovDetail
Throws:
it.eng.spago.base.SourceBeanException

toXML

public java.lang.String toXML()
Loads the XML string defined by a LovDetail object. The object gives us all XML field values. Once obtained, the XML represents the data definition for a Fixed Lov Type Value LOV object.

Specified by:
toXML in interface ILovDetail
Returns:
The XML output String

getLovResult

public java.lang.String getLovResult(it.eng.spago.security.IEngUserProfile profile)
                              throws java.lang.Exception
Specified by:
getLovResult in interface ILovDetail
Throws:
java.lang.Exception

add

public void add(java.lang.String name,
                java.lang.String description)
Adds a lov to the lov Detail List

Parameters:
name - The added lov name
description - The added lov description

remove

public void remove(java.lang.String name,
                   java.lang.String description)
Deletes a lov from the lov Detail List

Parameters:
name - The deleted lov name
description - The deleted lov description

getLovs

public java.util.List getLovs()
Returns:
lovs

setLovs

public void setLovs(java.util.List lovs)
Parameters:
lovs - the lovs to set

fromXML

public static FixedListDetail fromXML(java.lang.String dataDefinition)
                               throws it.eng.spago.base.SourceBeanException
Splits an XML string by using some SourceBean object methods in order to obtain the source LovDetail objects whom XML has been built.

Parameters:
dataDefinition - The XML input String
Returns:
The corrispondent LovDetailList object
Throws:
it.eng.spago.base.SourceBeanException - If a SourceBean Exception occurred