|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.funambol.common.pim.model.model.PropertySemantics
public class PropertySemantics
The PropertySemantics class provides the limitations of the properties.
Field Summary | |
---|---|
java.lang.String |
name
|
Constructor Summary | |
---|---|
PropertySemantics(java.lang.String name,
ValueInterface value,
java.util.Hashtable registry)
The constructor for the semantics of a property. |
|
PropertySemantics(java.lang.String name,
ValueInterface value,
ParameterSemantics[] parameters,
int min,
int max,
java.util.Hashtable registry)
The constructor for the semantics of a property. |
Method Summary | |
---|---|
boolean |
checkParameter(java.lang.String pn,
java.lang.String pv)
Perform a check if the parameter (name and value) of the property are allowed according to the standard. |
boolean |
checkValue(java.lang.String v)
Perform a check for the value of the property if it is according to the standard. |
int |
getMaxOccurrences()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public java.lang.String name
Constructor Detail |
---|
public PropertySemantics(java.lang.String name, ValueInterface value, java.util.Hashtable registry)
name
- the name of the property (String).value
- the value class of the property (ValueInterface)registry
- The quick lookup to register the property semantics.public PropertySemantics(java.lang.String name, ValueInterface value, ParameterSemantics[] parameters, int min, int max, java.util.Hashtable registry)
name
- the name of the property (String).value
- the value class of the property (ValueInterface)parameters
- the parameters allowed for the property (ParameterSematics[]).min
- the minimum amount of occurencesmax
- the maximum amount of occurencesregistry
- The quick lookup to register the property semantics.Method Detail |
---|
public boolean checkValue(java.lang.String v)
v
- The String based value.
public boolean checkParameter(java.lang.String pn, java.lang.String pv)
pn
- The name of the parameter.pv
- The String based value of the parameter.
public int getMaxOccurrences()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |