org.archiviststoolkit.model
Class LookupList

java.lang.Object
  extended by com.jgoodies.binding.beans.Model
      extended by org.archiviststoolkit.mydomain.DomainObject
          extended by org.archiviststoolkit.model.LookupList
All Implemented Interfaces:
com.jgoodies.binding.beans.Observable, java.io.Serializable, java.lang.Comparable, Auditable, org.hibernate.classic.Lifecycle

public class LookupList
extends DomainObject

See Also:
Serialized Form

Field Summary
static java.lang.String PROPERTYNAME_LIST_NAME
           
static java.lang.String PROPERTYNAME_LIST_TYPE
           
static java.lang.String PROPERTYNAME_PAIRED_VALUES
           
static java.lang.String PROPERTYNAME_RESTRICT_TO_NMTOKEN
           
 
Fields inherited from class org.archiviststoolkit.mydomain.DomainObject
CREATED, CREATED_BY, LAST_UPDATED, LAST_UPDATED_BY
 
Fields inherited from interface org.hibernate.classic.Lifecycle
NO_VETO, VETO
 
Constructor Summary
LookupList()
          Creates a new instance of LookupList
 
Method Summary
 void addListItem(LookupListItems listItem)
          Adds a BillingDetails to the set.
 void addListItem(java.lang.String value)
           
 void addListItem(java.lang.String value, java.lang.Boolean editable)
           
 void addListItem(java.lang.String value, java.lang.String code)
           
 void addListItem(java.lang.String value, java.lang.String code, java.lang.Boolean editable)
           
 void addListItems(java.util.ArrayList array)
           
 boolean containsItem(java.lang.String item)
           
 java.lang.Long getIdentifier()
           
 LookupListItems getItem(java.lang.String item)
           
 java.util.Set<LookupListItems> getListItems()
           
 java.util.TreeSet<java.lang.String> getListItemsAsArrayList()
           
 java.util.TreeSet<java.lang.String> getListItemsWithBlankAtTop()
           
 java.util.TreeSet<LookupListItems> getListItemsWithBlankAtTopObjects()
           
 java.lang.String getListName()
           
 java.lang.Integer getListType()
           
 java.lang.Long getLookupListId()
           
 java.lang.Boolean getPairedValues()
           
 java.lang.Boolean getRestrictToNmtoken()
           
 void removeListItem(LookupListItems listItem)
          Removes a BillingDetails from the set.
 void setIdentifier(java.lang.Long identifier)
           
 void setListItems(java.util.Set<LookupListItems> listItems)
           
 void setListName(java.lang.String listName)
           
 void setListType(java.lang.Integer listType)
           
 void setLookupListId(java.lang.Long lookupListId)
           
 void setPairedValues(java.lang.Boolean pairedValues)
           
 void setRestrictToNmtoken(java.lang.Boolean restrictToNmtoken)
           
 
Methods inherited from class org.archiviststoolkit.mydomain.DomainObject
addRelatedObject, compareTo, creationDate, equals, getAuditInfo, getCreated, getCreatedBy, getLastUpdated, getLastUpdatedBy, getRelatedCollection, getRelatedObject, getUniqueConstraintKey, getVersion, hashCode, isNewRecord, lastUpdated, onDelete, onLoad, onSave, onUpdate, removeIdAndAuditInfo, removeRelatedObject, setAuditInfo, setVersion, testDeleteRules, validateAndDisplayDialog
 
Methods inherited from class com.jgoodies.binding.beans.Model
addPropertyChangeListener, addPropertyChangeListener, addVetoableChangeListener, addVetoableChangeListener, equals, fireIndexedPropertyChange, fireIndexedPropertyChange, fireIndexedPropertyChange, fireMultiplePropertiesChanged, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, fireVetoableChange, getPropertyChangeListeners, getPropertyChangeListeners, getVetoableChangeListeners, getVetoableChangeListeners, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, removeVetoableChangeListener
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROPERTYNAME_LIST_NAME

public static final java.lang.String PROPERTYNAME_LIST_NAME
See Also:
Constant Field Values

PROPERTYNAME_LIST_TYPE

public static final java.lang.String PROPERTYNAME_LIST_TYPE
See Also:
Constant Field Values

PROPERTYNAME_PAIRED_VALUES

public static final java.lang.String PROPERTYNAME_PAIRED_VALUES
See Also:
Constant Field Values

PROPERTYNAME_RESTRICT_TO_NMTOKEN

public static final java.lang.String PROPERTYNAME_RESTRICT_TO_NMTOKEN
See Also:
Constant Field Values
Constructor Detail

LookupList

public LookupList()
Creates a new instance of LookupList

Method Detail

getListName

public java.lang.String getListName()

setListName

public void setListName(java.lang.String listName)

addListItem

public void addListItem(LookupListItems listItem)
Adds a BillingDetails to the set.

This method checks if there is only one billing method in the set, then makes this the default.

Parameters:
listItem -

addListItem

public void addListItem(java.lang.String value)

addListItem

public void addListItem(java.lang.String value,
                        java.lang.String code)

addListItem

public void addListItem(java.lang.String value,
                        java.lang.String code,
                        java.lang.Boolean editable)

addListItem

public void addListItem(java.lang.String value,
                        java.lang.Boolean editable)

removeListItem

public void removeListItem(LookupListItems listItem)
Removes a BillingDetails from the set.

This method checks if the removed is the default element, and will throw a BusinessException if there is more than one left to chose from. This might actually not be the best way to handle this situation.

Parameters:
listItem -

addListItems

public void addListItems(java.util.ArrayList array)

getListItems

public java.util.Set<LookupListItems> getListItems()

containsItem

public boolean containsItem(java.lang.String item)

getItem

public LookupListItems getItem(java.lang.String item)

getListItemsWithBlankAtTop

public java.util.TreeSet<java.lang.String> getListItemsWithBlankAtTop()

getListItemsWithBlankAtTopObjects

public java.util.TreeSet<LookupListItems> getListItemsWithBlankAtTopObjects()

getListItemsAsArrayList

public java.util.TreeSet<java.lang.String> getListItemsAsArrayList()

setListItems

public void setListItems(java.util.Set<LookupListItems> listItems)

getIdentifier

public java.lang.Long getIdentifier()
Specified by:
getIdentifier in class DomainObject
Returns:
Returns the identifier.

setIdentifier

public void setIdentifier(java.lang.Long identifier)
Specified by:
setIdentifier in class DomainObject
Parameters:
identifier - The identifier to set.

getLookupListId

public java.lang.Long getLookupListId()

setLookupListId

public void setLookupListId(java.lang.Long lookupListId)

getListType

public java.lang.Integer getListType()

setListType

public void setListType(java.lang.Integer listType)

getPairedValues

public java.lang.Boolean getPairedValues()

setPairedValues

public void setPairedValues(java.lang.Boolean pairedValues)

getRestrictToNmtoken

public java.lang.Boolean getRestrictToNmtoken()

setRestrictToNmtoken

public void setRestrictToNmtoken(java.lang.Boolean restrictToNmtoken)