Bibi
19 Oct 2005 21:04

ujap.bibi
Class Entry

java.lang.Object
  extended byujap.bibi.Entry

public class Entry
extends Object

A BibTeX Entry. A Bean with the bound property "key".

Author:
Ute Platzer

Nested Class Summary
private static class Entry.AuthorRenderer
           
private static class Entry.TitleRenderer
           
 
Field Summary
static ListCellRenderer AUTHOR_RENDERER
           
static String[] ENTRY_TYPES
           
private  Fields fields
          title, author,...
private  String key
          author_et_al_year
 PropertyChangeSupport pest
          for the bound property "key"
static ListCellRenderer TITLE_RENDERER
           
private  String type
          article or book or inproceedings...
 
Constructor Summary
Entry()
           
 
Method Summary
 void addPropertyChangeListener(PropertyChangeListener listener)
          delegate to propertychangesupport
 void addPropertyChangeListener(String propertyName, PropertyChangeListener listener)
          delegate to propertychangesupport
 Object clone()
           
 boolean equals(Object o)
          two entries are equal if they are of the same type and contain the same fields (the key is not relevant because it may be auto-generated and thus have changed).
 Fields getFields()
           
 String getKey()
           
 String getType()
           
 int hashCode()
          fields.hashCode ^ getType().hashCode();
 void removePropertyChangeListener(PropertyChangeListener listener)
          delegate to propertychangesupport
 void removePropertyChangeListener(String propertyName, PropertyChangeListener listener)
          delegate to propertychangesupport
 void setFields(Fields fields)
          a two-dimensional array:
 void setKey(String key)
           
 void setType(String type)
           
 String toString()
          the key
 void writeXML(Writer w)
           
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

ENTRY_TYPES

public static final String[] ENTRY_TYPES

AUTHOR_RENDERER

public static final ListCellRenderer AUTHOR_RENDERER

TITLE_RENDERER

public static final ListCellRenderer TITLE_RENDERER

pest

public final PropertyChangeSupport pest
for the bound property "key"


type

private String type
article or book or inproceedings...


key

private String key
author_et_al_year


fields

private Fields fields
title, author,...

Constructor Detail

Entry

public Entry()
Method Detail

setType

public void setType(String type)

getType

public String getType()

setKey

public void setKey(String key)

getKey

public String getKey()

setFields

public void setFields(Fields fields)
a two-dimensional array:
 [1st author last name] [first name]
 [2nd author last name] [first name]
 [3rd author last name] [first name]


getFields

public Fields getFields()

equals

public boolean equals(Object o)
two entries are equal if they are of the same type and contain the same fields (the key is not relevant because it may be auto-generated and thus have changed).


hashCode

public int hashCode()
fields.hashCode ^ getType().hashCode();


toString

public String toString()
the key


clone

public Object clone()

writeXML

public void writeXML(Writer w)
              throws IOException
Throws:
IOException

addPropertyChangeListener

public void addPropertyChangeListener(PropertyChangeListener listener)
delegate to propertychangesupport


removePropertyChangeListener

public void removePropertyChangeListener(PropertyChangeListener listener)
delegate to propertychangesupport


addPropertyChangeListener

public void addPropertyChangeListener(String propertyName,
                                      PropertyChangeListener listener)
delegate to propertychangesupport


removePropertyChangeListener

public void removePropertyChangeListener(String propertyName,
                                         PropertyChangeListener listener)
delegate to propertychangesupport


Bibi
19 Oct 2005 21:04

Copyright ? 2002-2005 Ute Platzer. All Rights Reserved.