mail
Class Addressbook

java.lang.Object
  extended by mail.Addressbook

public class Addressbook
extends java.lang.Object


Field Summary
private  java.io.File basedir
           
private  javax.xml.parsers.DocumentBuilder builder
           
private  EncSupply enc
           
private  java.util.Collection<FriendNode> friends
           
private static java.lang.String LIST
           
private  javax.xml.transform.Transformer trans
           
 
Constructor Summary
Addressbook(java.io.File basedir, EncSupply enc)
           
 
Method Summary
 void add(FriendNode fn)
           
 java.util.Collection<FriendNode> get(java.lang.String part)
           
 java.util.Vector<FriendNode> getAll()
           
 FriendNode getForID(ID id)
           
 boolean remove(FriendNode n)
           
 void save()
           
private  void update()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LIST

private static final java.lang.String LIST
See Also:
Constant Field Values

friends

private java.util.Collection<FriendNode> friends

builder

private javax.xml.parsers.DocumentBuilder builder

trans

private javax.xml.transform.Transformer trans

basedir

private java.io.File basedir

enc

private EncSupply enc
Constructor Detail

Addressbook

public Addressbook(java.io.File basedir,
                   EncSupply enc)
            throws LoadingException
Throws:
LoadingException
Method Detail

getAll

public java.util.Vector<FriendNode> getAll()

get

public java.util.Collection<FriendNode> get(java.lang.String part)

getForID

public FriendNode getForID(ID id)

add

public void add(FriendNode fn)
         throws SavingException
Throws:
SavingException

remove

public boolean remove(FriendNode n)
               throws SavingException
Throws:
SavingException

save

public void save()
          throws SavingException
Throws:
SavingException

update

private void update()
             throws SavingException
Throws:
SavingException