jSyncManager

org.jSyncManager.API.Conduit.Tools.vTypes
Class vCard

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

public class vCard
extends vObject

vCard specification implementation for the AddressRecord API class.

Version:
$Revision: 1.4 $
Author:
David A. Bartmess <dingodave@edingo.net>
Last modified by: $Author: yaztromo $ on $Date: 2004/08/10 10:00:49 $.
See Also:
AddressRecord, Serialized Form

Field Summary
 AddressRecord record
          AddressRecord variable.
static java.lang.String RECORDNAME
          Recordname type identifier for PDA database record.
 
Fields inherited from class org.jSyncManager.API.Conduit.Tools.vTypes.vCommon.vObject
BEGIN, CRLF, END, 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
vCard()
          Creates a new default instance of vCard
vCard(AddressRecord rec)
          Create new JSXMLDocument with given AddressRecord.
vCard(vFoldedFile file, java.lang.Integer lineno)
          Creates a new instance of vCard using input from BufferedReader
 
Method Summary
 PropertyList getProperties()
          Getter for property properties.
 vObject getProperty(java.lang.String key)
          Getter for property properties.
 AddressRecord getRecord(AddressRecord rec)
          Setter for property record.
 void importRecord(AddressRecord rec)
          Setter for property record.
static void main(java.lang.String[] argv)
          Main test method
 void setProperties(PropertyList properties)
          Setter for property properties.
 
Methods inherited from class org.jSyncManager.API.Conduit.Tools.vTypes.vCommon.vObject
checkExclusive, checkMandatory, format, getGroup, getLineno, getName, getResources, getVObjectClass, importRecord, isSingleInstance, isStarted, parse, parseName, setGroup, setLineno, setName, setResources, setStarted, toString
 
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

RECORDNAME

public static java.lang.String RECORDNAME
Recordname type identifier for PDA database record.


record

public AddressRecord record
AddressRecord variable.

See Also:
AddressRecord
Constructor Detail

vCard

public vCard()
Creates a new default instance of vCard


vCard

public vCard(vFoldedFile file,
             java.lang.Integer lineno)
      throws java.text.ParseException
Creates a new instance of vCard using input from BufferedReader

Parameters:
file - a vFoldedFile instance.
lineno - the line number to use.
Throws:
java.text.ParseException - Text parsing exception
java.io.IOException - IOException from BufferedReader input

vCard

public vCard(AddressRecord rec)
      throws java.text.ParseException,
             java.io.IOException
Create new JSXMLDocument with given AddressRecord.

Parameters:
rec - AddressRecord
Throws:
java.text.ParseException - in case of parsing exception from AddressRecord information.
java.io.IOException - in case of I/O exception.
Method Detail

getProperty

public vObject getProperty(java.lang.String key)
Getter for property properties.

Parameters:
key - String key checked against resource list of type names for vCard
Returns:
vProperty value of property.

getProperties

public PropertyList getProperties()
Getter for property properties.

Overrides:
getProperties in class vObject
Returns:
Value of property properties.

setProperties

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

Overrides:
setProperties in class vObject
Parameters:
properties - New value of property properties.

getRecord

public AddressRecord getRecord(AddressRecord rec)
Setter for property record.

Parameters:
rec - New value of property record.

importRecord

public void importRecord(AddressRecord rec)
Setter for property record.

Parameters:
rec - New value of property record.

main

public static void main(java.lang.String[] argv)
Main test method

Parameters:
argv - String[]

jSyncManager

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