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

java.lang.Object
  extended byorg.apache.jetspeed.om.registry.base.BaseRegistryEntry
      extended byorg.apache.jetspeed.om.registry.base.BaseSkinEntry
All Implemented Interfaces:
RegistryEntry, java.io.Serializable, SkinEntry

public class BaseSkinEntry
extends BaseRegistryEntry
implements SkinEntry

The BaseSkinEntry is a bean like implementation of the SkinEntry interface suitable for Castor XML serialization

Version:
$Id: BaseSkinEntry.java,v 1.5 2005/03/21 18:21:37 sgala Exp $
Author:
Raphaël Luta
See Also:
SkinEntry, Serialized Form

Field Summary
 
Fields inherited from class org.apache.jetspeed.om.registry.base.BaseRegistryEntry
_hidden, hidden, id, metaInfo, name, security, securityRef
 
Constructor Summary
BaseSkinEntry()
           
 
Method Summary
 void addParameter(Parameter param)
          Adds a new parameter for this entry
 void addParameter(java.lang.String name, java.lang.String value)
          Adds a new parameter for this entry
 boolean equals(java.lang.Object object)
          Implements the equals operation so that 2 elements are equal if all their member values are equal.
 Parameter getParameter(java.lang.String name)
          Search for a named parameter and return the associated parameter object.
 java.util.Map getParameterMap()
          Returns a map of parameter values keyed on the parameter names
 java.util.Iterator getParameterNames()
           
 java.util.Vector getParameters()
          Needed for Castor 0.8.11 XML serialization for retrieving the parameters objects associated to this object
 void removeParameter(java.lang.String name)
          Removes all parameter values associated with the name
 void setParameters(java.util.Vector parameters)
           
 
Methods inherited from class org.apache.jetspeed.om.registry.base.BaseRegistryEntry
getBaseMetaInfo, getBaseSecurity, getDescription, getHidden, getId, getMetaInfo, getName, getSecurity, getSecurityRef, getTitle, isHidden, setBaseMetaInfo, setBaseSecurity, setDescription, setHidden, setMetaInfo, setName, setSecurity, setSecurityRef, setTitle
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.jetspeed.om.registry.RegistryEntry
getDescription, getId, getMetaInfo, getName, getSecurity, getSecurityRef, getTitle, isHidden, setDescription, setHidden, setMetaInfo, setName, setSecurity, setSecurityRef, setTitle
 

Constructor Detail

BaseSkinEntry

public BaseSkinEntry()
Method Detail

equals

public boolean equals(java.lang.Object object)
Implements the equals operation so that 2 elements are equal if all their member values are equal.

Overrides:
equals in class BaseRegistryEntry

getParameterNames

public java.util.Iterator getParameterNames()
Specified by:
getParameterNames in interface SkinEntry
Returns:
an enumeration of this entry parameter names

getParameter

public Parameter getParameter(java.lang.String name)
Search for a named parameter and return the associated parameter object. The search is case sensitive.

Specified by:
getParameter in interface SkinEntry
Parameters:
name - the parameter name to look for
Returns:
the parameter object for a given parameter name

getParameterMap

public java.util.Map getParameterMap()
Returns a map of parameter values keyed on the parameter names

Specified by:
getParameterMap in interface SkinEntry
Returns:
the parameter values map

addParameter

public void addParameter(java.lang.String name,
                         java.lang.String value)
Adds a new parameter for this entry

Specified by:
addParameter in interface SkinEntry
Parameters:
name - the new parameter name
value - the new parameter value

addParameter

public void addParameter(Parameter param)
Adds a new parameter for this entry

Specified by:
addParameter in interface SkinEntry
Parameters:
param - the new parameter to add

removeParameter

public void removeParameter(java.lang.String name)
Removes all parameter values associated with the name

Specified by:
removeParameter in interface SkinEntry
Parameters:
name - the parameter name to remove

getParameters

public java.util.Vector getParameters()
Needed for Castor 0.8.11 XML serialization for retrieving the parameters objects associated to this object


setParameters

public void setParameters(java.util.Vector parameters)


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