org.apache.jetspeed.om.profile.psml
Class PsmlConfigElement

java.lang.Object
  extended byorg.apache.jetspeed.om.profile.psml.PsmlConfigElement
All Implemented Interfaces:
java.lang.Cloneable, ConfigElement, java.io.Serializable
Direct Known Subclasses:
PsmlControl, PsmlController, PsmlIdentityElement, PsmlLayout, PsmlSkin

public class PsmlConfigElement
extends java.lang.Object
implements ConfigElement, java.io.Serializable

Base simple bean-like implementation of the ConfigElement interface suitable for Castor XML serialization.

Version:
$Id: PsmlConfigElement.java,v 1.7 2005/03/21 18:21:37 sgala Exp $
Author:
RaphaŽl Luta, David Sean Taylor
See Also:
Serialized Form

Constructor Summary
PsmlConfigElement()
           
 
Method Summary
 void addParameter(Parameter vParameter)
           
 java.lang.Object clone()
          Create a clone of this object
 java.lang.String getName()
           
 Parameter[] getParameter()
           
 Parameter getParameter(int index)
           
 Parameter getParameter(java.lang.String name)
           
 int getParameterCount()
           
 java.util.Iterator getParameterIterator()
           
 java.util.Vector getParameters()
           
 java.lang.String getParameterValue(java.lang.String name)
           
 void removeAllParameter()
           
 Parameter removeParameter(int index)
           
 void setName(java.lang.String name)
          Changes the name of this entry
 void setParameter(int index, Parameter vParameter)
           
 void setParameters(java.util.Vector parameters)
          Sets the parameters for this element
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PsmlConfigElement

public PsmlConfigElement()
Method Detail

getName

public java.lang.String getName()
Specified by:
getName in interface ConfigElement
Returns:
the name of this entry. This value is guaranteed to be unique at least within the current Document.
See Also:
RegistryEntry.getName()

setName

public void setName(java.lang.String name)
Description copied from interface: ConfigElement
Changes the name of this entry

Specified by:
setName in interface ConfigElement
Parameters:
name - the new name for this entry
See Also:
RegistryEntry.setName(java.lang.String)

getParameters

public java.util.Vector getParameters()
Returns:
the parameters

setParameters

public void setParameters(java.util.Vector parameters)
Sets the parameters for this element

Parameters:
parameters -

getParameterValue

public java.lang.String getParameterValue(java.lang.String name)
Specified by:
getParameterValue in interface ConfigElement

getParameter

public Parameter getParameter(java.lang.String name)
Specified by:
getParameter in interface ConfigElement

getParameterIterator

public java.util.Iterator getParameterIterator()
Specified by:
getParameterIterator in interface ConfigElement

getParameter

public Parameter getParameter(int index)
                       throws java.lang.IndexOutOfBoundsException
Specified by:
getParameter in interface ConfigElement
Throws:
java.lang.IndexOutOfBoundsException

getParameterCount

public int getParameterCount()
Specified by:
getParameterCount in interface ConfigElement

removeAllParameter

public void removeAllParameter()
Specified by:
removeAllParameter in interface ConfigElement

removeParameter

public Parameter removeParameter(int index)
Specified by:
removeParameter in interface ConfigElement

setParameter

public void setParameter(int index,
                         Parameter vParameter)
                  throws java.lang.IndexOutOfBoundsException
Specified by:
setParameter in interface ConfigElement
Throws:
java.lang.IndexOutOfBoundsException

getParameter

public Parameter[] getParameter()
Specified by:
getParameter in interface ConfigElement

addParameter

public void addParameter(Parameter vParameter)
                  throws java.lang.IndexOutOfBoundsException
Specified by:
addParameter in interface ConfigElement
Throws:
java.lang.IndexOutOfBoundsException

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Create a clone of this object

Specified by:
clone in interface ConfigElement
Throws:
java.lang.CloneNotSupportedException


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