org.apache.jetspeed.om.registry.base
Class BaseParameterStyle

java.lang.Object
  extended byorg.apache.jetspeed.om.registry.base.BaseParameterStyle
All Implemented Interfaces:
ParameterStyle

public class BaseParameterStyle
extends java.lang.Object
implements ParameterStyle

Bean like implementation of the ParameterStyle interface suitable for Castor serialization.

Version:
$Id: BaseParameterStyle.java,v 1.1 2005/05/04 20:26:37 morciuch Exp $
Author:
Mark Orciuch
See Also:
ParameterStyle

Constructor Summary
BaseParameterStyle()
           
 
Method Summary
 void addOption(StyleOption option)
          Adds a new parameter style option
 java.lang.String getName()
          Returns parameter style name
 StyleOption getOption(java.lang.String name)
          Returns specific style option
 java.util.Vector getOptions()
          Returns a vector of parameter style options
 java.lang.String getTemplate()
          Returns optional parameter style template.
 boolean hasOption(java.lang.String name)
          Returns true if specific style option exists
 void removeOption(java.lang.String name)
          Remove specific parameter style option
 void setName(java.lang.String value)
          Sets the parameter style name
 void setOptions(java.util.Vector options)
          Sets parameter style options to a vector of options
 void setTemplate(java.lang.String value)
          Sets the optional parameter style template
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseParameterStyle

public BaseParameterStyle()
Method Detail

getName

public java.lang.String getName()
Description copied from interface: ParameterStyle
Returns parameter style name

Specified by:
getName in interface ParameterStyle
Returns:
parameter style name

setName

public void setName(java.lang.String value)
Description copied from interface: ParameterStyle
Sets the parameter style name

Specified by:
setName in interface ParameterStyle
Parameters:
value -

getTemplate

public java.lang.String getTemplate()
Description copied from interface: ParameterStyle
Returns optional parameter style template. If not specified it is assumed to be [parameter style name].vm or .jsp depending on the style name.

Specified by:
getTemplate in interface ParameterStyle
Returns:
parameter style template

setTemplate

public void setTemplate(java.lang.String value)
Description copied from interface: ParameterStyle
Sets the optional parameter style template

Specified by:
setTemplate in interface ParameterStyle
Parameters:
value -

getOptions

public java.util.Vector getOptions()
Description copied from interface: ParameterStyle
Returns a vector of parameter style options

Specified by:
getOptions in interface ParameterStyle
Returns:
parameter style options

getOption

public StyleOption getOption(java.lang.String name)
Description copied from interface: ParameterStyle
Returns specific style option

Specified by:
getOption in interface ParameterStyle
Parameters:
name -
Returns:
option

addOption

public void addOption(StyleOption option)
Description copied from interface: ParameterStyle
Adds a new parameter style option

Specified by:
addOption in interface ParameterStyle
Parameters:
option - to add

removeOption

public void removeOption(java.lang.String name)
Description copied from interface: ParameterStyle
Remove specific parameter style option

Specified by:
removeOption in interface ParameterStyle
Parameters:
name - of style option

setOptions

public void setOptions(java.util.Vector options)
Description copied from interface: ParameterStyle
Sets parameter style options to a vector of options

Specified by:
setOptions in interface ParameterStyle
Parameters:
options -

hasOption

public boolean hasOption(java.lang.String name)
Description copied from interface: ParameterStyle
Returns true if specific style option exists

Specified by:
hasOption in interface ParameterStyle
Parameters:
name - of the option
Returns:
true or false


Copyright © 2000-2005 Apache Software Foundation. All Rights Reserved.