base.user.jcard
Class JCard

java.lang.Object
  extended by base.user.jcard.JCard
All Implemented Interfaces:
IVCard

public class JCard
extends java.lang.Object
implements IVCard


Constructor Summary
JCard()
           
 
Method Summary
 Property addProperty(java.lang.String propertyName)
           
 JCard newJCard(User user)
          This method has to be implemented in order to create a new JCard instance given a valid and alredy instanced internet-cafe user.
 User newUser(JCard jcard)
          This method has to be implemented in order to create a new internet-cafe User instance given a valid and alredy instanced JCard.
 void read(java.io.Reader reader)
          This method should be imlemented in order to import and create a new vCard instance from a vCard file.
 void write(java.io.File file)
           
 void write(java.lang.String fileName)
           
 void write(java.io.Writer writer)
          This method should be imlemented in order to export a vCard instace to a file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JCard

public JCard()
      throws JCardException
Throws:
JCardException
Method Detail

addProperty

public Property addProperty(java.lang.String propertyName)
                     throws JCardException
Throws:
JCardException

write

public void write(java.lang.String fileName)
           throws JCardException
Throws:
JCardException

write

public void write(java.io.File file)
           throws JCardException
Throws:
JCardException

write

public void write(java.io.Writer writer)
           throws JCardException
Description copied from interface: IVCard
This method should be imlemented in order to export a vCard instace to a file.

Specified by:
write in interface IVCard
Parameters:
writer - The writer associated to the file where the vCard must be saved.
Throws:
JCardException

read

public void read(java.io.Reader reader)
Description copied from interface: IVCard
This method should be imlemented in order to import and create a new vCard instance from a vCard file.

Specified by:
read in interface IVCard
Parameters:
reader - The reader associated to the file to be loaded as a vCard.

newUser

public User newUser(JCard jcard)
Description copied from interface: IVCard
This method has to be implemented in order to create a new internet-cafe User instance given a valid and alredy instanced JCard.

Specified by:
newUser in interface IVCard
Parameters:
jcard - The JCard from wich the user must be instantiated.
Returns:
A new instance of User with parameters taken from the jcard instance.

newJCard

public JCard newJCard(User user)
Description copied from interface: IVCard
This method has to be implemented in order to create a new JCard instance given a valid and alredy instanced internet-cafe user.

Specified by:
newJCard in interface IVCard
Parameters:
user - The internet-cafe User instance whose parameters must be exported as a JCard.
Returns:
A new instance of JCard whose parameters and properties are contained in the internet-cafe User instance passes as formal parameter.


Copyright © 2006 SF.net. All Rights Reserved.