jSyncManager

org.jSyncManager.API.Conduit.Tools.vTypes.vCommon
Class vObject

java.lang.Object
  extended byorg.jSyncManager.API.Protocol.Util.DLPRecord
      extended byorg.jSyncManager.API.Conduit.Tools.vTypes.vCommon.vObject
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
vCard, vProperty

public abstract class vObject
extends DLPRecord

Base object class for vTypes.

Version:
$Revision: 1.4 $
Author:
dingodave
Last modified by: $Author: dingodave $ on $Date: 2004/08/09 04:52:49 $.
See Also:
Serialized Form

Field Summary
static java.lang.String BEGIN
          Designator for beginning of vObject instantiated class type.
static java.lang.String CRLF
          Standard line terminator for .vcs files
static java.lang.String END
          Designator for end of vObject instantiated class type.
protected  PropertyList properties
           
 
Fields inherited from class org.jSyncManager.API.Protocol.Util.DLPRecord
ARCHIVED, attributes, BUSY, category, data, DATA_INCLUDED, DELETE_ALL_IN_CATEGORY, DELETE_ALL_RECORDS, DELETED, DIRTY, index, inputData, recordID, recordSize, SECRET, SORT_DATABASE
 
Constructor Summary
vObject()
          Creates a new instance of vCalendar
vObject(DLPRecord record)
           
vObject(vFoldedFile file, java.lang.Integer tmplineno)
           
 
Method Summary
protected  boolean checkExclusive()
           
protected  boolean checkMandatory()
           
 java.lang.String format()
           
 java.lang.String getGroup()
          Getter for property group.
 int getLineno()
          Getter for property lineno.
 java.lang.String getName()
          Getter for property getname.
 PropertyList getProperties()
          Getter for property properties.
 vResource getResources()
          Getter for property resources.
 vObject getVObjectClass(vFoldedFile file, int lineno)
           
 void importRecord(DLPRecord rec)
           
 boolean isSingleInstance()
          Getter for property singleInstance.
 boolean isStarted()
          Getter for property started.
protected  void parse(vFoldedFile file, int tmplineno)
           
protected  java.lang.String parseName(java.lang.String tmpline)
           
 void setGroup(java.lang.String group)
          Setter for property group.
protected  void setLineno(int lineno)
          Setter for property lineno.
 void setName(java.lang.String name)
          Setter for property name.
 void setProperties(PropertyList properties)
          Setter for property properties.
 void setResources(vResource resources)
          Setter for property resources.
 void setStarted(boolean started)
          Setter for property started.
 java.lang.String toString()
          Convert to String output format
 
Methods inherited from class org.jSyncManager.API.Protocol.Util.DLPRecord
addAttribute, checkAttribute, clearAttribute, generateData, getAttributes, getCategory, getData, getIndex, getRecordID, getRecordSize, parseFields, setAttributes, setCategory, setData, setIndex, setRecordID, setRecordSize
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CRLF

public static final java.lang.String CRLF
Standard line terminator for .vcs files

See Also:
Constant Field Values

BEGIN

public static final java.lang.String BEGIN
Designator for beginning of vObject instantiated class type.

See Also:
Constant Field Values

END

public static final java.lang.String END
Designator for end of vObject instantiated class type.

See Also:
Constant Field Values

properties

protected PropertyList properties
Constructor Detail

vObject

public vObject()
Creates a new instance of vCalendar


vObject

public vObject(DLPRecord record)
        throws java.text.ParseException,
               java.io.IOException

vObject

public vObject(vFoldedFile file,
               java.lang.Integer tmplineno)
        throws java.text.ParseException,
               java.io.IOException
Method Detail

parse

protected void parse(vFoldedFile file,
                     int tmplineno)
              throws java.text.ParseException
Throws:
java.text.ParseException

getVObjectClass

public vObject getVObjectClass(vFoldedFile file,
                               int lineno)
                        throws java.text.ParseException
Throws:
java.text.ParseException

parseName

protected java.lang.String parseName(java.lang.String tmpline)
                              throws java.text.ParseException
Throws:
java.text.ParseException

checkMandatory

protected boolean checkMandatory()

checkExclusive

protected boolean checkExclusive()

format

public java.lang.String format()

toString

public java.lang.String toString()
Convert to String output format

Overrides:
toString in class DLPRecord
Returns:
String representation of vCard

importRecord

public void importRecord(DLPRecord rec)

getName

public java.lang.String getName()
Getter for property getname.

Returns:
Value of property name.

setName

public void setName(java.lang.String name)
Setter for property name.

Parameters:
name - New value of property name.

getProperties

public PropertyList getProperties()
Getter for property properties.

Returns:
Value of property properties.

setProperties

public void setProperties(PropertyList properties)
Setter for property properties.

Parameters:
properties - New value of property properties.
Throws:
java.beans.PropertyVetoException - if some vetoable listeners reject the new value

isStarted

public boolean isStarted()
Getter for property started.

Returns:
Value of property started.

isSingleInstance

public boolean isSingleInstance()
Getter for property singleInstance.

Returns:
Value of property singleInstance.

setStarted

public void setStarted(boolean started)
Setter for property started.

Parameters:
started - New value of property started.
Throws:
java.beans.PropertyVetoException - if some vetoable listeners reject the new value

getResources

public vResource getResources()
Getter for property resources.

Returns:
Value of property resources.

setResources

public void setResources(vResource resources)
Setter for property resources.

Parameters:
resources - New value of property resources.

getLineno

public int getLineno()
Getter for property lineno.

Returns:
Value of property lineno.

setLineno

protected void setLineno(int lineno)
Setter for property lineno.

Parameters:
lineno - New value of property lineno.

getGroup

public java.lang.String getGroup()
Getter for property group.

Returns:
Value of property group.

setGroup

public void setGroup(java.lang.String group)
Setter for property group.

Parameters:
group - New value of property group.

jSyncManager

Copyright (c) 1999 - 2004 Brad BARCLAY and others. All Rights Reserved.