com.funambol.common.pim.model.model
Class Property

java.lang.Object
  extended by com.funambol.common.pim.model.model.Property
All Implemented Interfaces:
VisitorInterface, java.lang.Comparable

public class Property
extends java.lang.Object
implements VisitorInterface, java.lang.Comparable

This object represents a property for ICalendar (V2), VCalendar, VNote object (i.e. its value and its parameters)

Version:
$Id: Property.java,v 1.3 2008-04-10 11:13:38 mauro Exp $

Constructor Summary
Property(PropertySemantics ps, java.lang.String v)
          Constructor for a property
Property(java.lang.String n, boolean x, java.util.List p, java.lang.String v)
          Constructor for a property
Property(java.lang.String n, java.lang.String v)
          Constructor for a property
 
Method Summary
 void accept(Visitor v)
          visitor.
 java.lang.Object accept(VisitorObject v, java.lang.Object argu)
          visitor with arguments.
 void addParameter(Parameter p)
           
 java.lang.Object clone()
           
 int compareTo(java.lang.Object o)
           
 void delParameter(Parameter p)
           
 boolean equals(java.lang.Object obj)
           
 java.lang.String getName()
           
 Parameter getParameter(java.lang.String name)
           
 java.util.List getParameters()
           
 PropertySemantics getPs()
           
 java.lang.String getValue()
           
 boolean isCustom()
           
 void setParameter(Parameter p)
           
 void setParameters(java.util.List parameters)
           
 void setPropertySemantics(PropertySemantics ps)
          Adds the semantics object of the property.
 void setValue(java.lang.String value)
           
 java.lang.String toString()
           
 java.lang.StringBuffer toString(java.lang.StringBuffer buffer)
           
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Property

public Property(java.lang.String n,
                boolean x,
                java.util.List p,
                java.lang.String v)
Constructor for a property

Parameters:
n - The name of the property.
x - Indicator if it is a custom property.
p - The parameter list.
v - The value of the property.

Property

public Property(java.lang.String n,
                java.lang.String v)
Constructor for a property

Parameters:
n - The name of the property.
v - The value of the property.

Property

public Property(PropertySemantics ps,
                java.lang.String v)
Constructor for a property

Parameters:
ps - The semantics of the property.
v - The value of the property.
Method Detail

setPropertySemantics

public void setPropertySemantics(PropertySemantics ps)
Adds the semantics object of the property.


accept

public void accept(Visitor v)
            throws VisitorException
visitor.

Specified by:
accept in interface VisitorInterface
Parameters:
v - the visitor
Throws:
VisitorException

accept

public java.lang.Object accept(VisitorObject v,
                               java.lang.Object argu)
                        throws VisitorException
visitor with arguments.

Specified by:
accept in interface VisitorInterface
Parameters:
v - the visitor
argu - the argument
Returns:
the result of the visit
Throws:
VisitorException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

toString

public java.lang.StringBuffer toString(java.lang.StringBuffer buffer)

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

compareTo

public int compareTo(java.lang.Object o)
Specified by:
compareTo in interface java.lang.Comparable

addParameter

public void addParameter(Parameter p)

delParameter

public void delParameter(Parameter p)

getParameter

public Parameter getParameter(java.lang.String name)

setParameter

public void setParameter(Parameter p)

getPs

public PropertySemantics getPs()

getName

public java.lang.String getName()

isCustom

public boolean isCustom()

getParameters

public java.util.List getParameters()

setParameters

public void setParameters(java.util.List parameters)

getValue

public java.lang.String getValue()

setValue

public void setValue(java.lang.String value)

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Overrides:
clone in class java.lang.Object
Throws:
java.lang.CloneNotSupportedException


Copyright © 2001-2009 Funambol.