com.funambol.common.pim.model.model
Class ParameterSemantics

java.lang.Object
  extended by com.funambol.common.pim.model.model.ParameterSemantics

public class ParameterSemantics
extends java.lang.Object

The ParameterSemantics class provides the limitations of the parameters.

Version:
$Id: ParameterSemantics.java,v 1.2 2007-11-28 11:14:05 nichele Exp $

Field Summary
 java.lang.String name
           
 
Constructor Summary
ParameterSemantics(java.lang.String name, ValueInterface value, boolean multiple, java.util.Hashtable registry)
          The constructor for the semantics of a parameter
ParameterSemantics(java.lang.String name, ValueInterface value, java.util.Hashtable registry)
          The constructor for the semantics of a parameter
 
Method Summary
 boolean checkValue(java.lang.String v)
          Perform a check for the value of the parameter if it is according to the standard.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

public java.lang.String name
Constructor Detail

ParameterSemantics

public ParameterSemantics(java.lang.String name,
                          ValueInterface value,
                          java.util.Hashtable registry)
The constructor for the semantics of a parameter

Parameters:
name - the name of the parameter(String).
value - the value class of the paramter (ValueInterface)
registry - The quick lookup to register the parameter semantics.

ParameterSemantics

public ParameterSemantics(java.lang.String name,
                          ValueInterface value,
                          boolean multiple,
                          java.util.Hashtable registry)
The constructor for the semantics of a parameter

Parameters:
name - the name of the parameter(String).
value - the value class of the paramter (ValueInterface)
multiple - the boolean indicator whether multiple values are allowed
registry - The quick lookup to register the parameter semantics.
Method Detail

checkValue

public boolean checkValue(java.lang.String v)
Perform a check for the value of the parameter if it is according to the standard.

Parameters:
v - The String based value.
Returns:
True if the value is allowed according to the specification.


Copyright © 2001-2009 Funambol.