org.homeunix.thecave.buddi.model.impl
Class AccountTypeImpl

java.lang.Object
  extended by org.homeunix.thecave.buddi.model.impl.ModelObjectImpl
      extended by org.homeunix.thecave.buddi.model.impl.AccountTypeImpl
All Implemented Interfaces:
java.lang.Comparable<ModelObject>, AccountType, Expandable, ModelObject

public class AccountTypeImpl
extends ModelObjectImpl
implements AccountType

Default implementation of an AccountType. You should not create this object directly; instead, please use the ModelFactory to create it, as this will ensure that all required fields are correctly set.

Author:
wyatt

Field Summary
 
Fields inherited from class org.homeunix.thecave.buddi.model.impl.ModelObjectImpl
document, modifiedTime, uid
 
Constructor Summary
AccountTypeImpl()
           
 
Method Summary
 int compareTo(ModelObject o)
           
 java.lang.String getName()
          Returns the name of this account type
 boolean isCredit()
          Does this account type represent a credit account?
 boolean isExpanded()
          Is the node currently expanded
 void setCredit(boolean credit)
          Set the credit value of this account type
 void setExpanded(boolean isExpanded)
          Should the node be expanded
 void setName(java.lang.String name)
          Sets the name of this account type
 
Methods inherited from class org.homeunix.thecave.buddi.model.impl.ModelObjectImpl
equals, getDocument, getModified, getUid, setChanged, setDocument, setModified, setModified, setUid
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.homeunix.thecave.buddi.model.ModelObject
getDocument, getModified, getUid, setChanged, setDocument
 

Constructor Detail

AccountTypeImpl

public AccountTypeImpl()
Method Detail

isCredit

public boolean isCredit()
Description copied from interface: AccountType
Does this account type represent a credit account?

Specified by:
isCredit in interface AccountType
Returns:

setCredit

public void setCredit(boolean credit)
Description copied from interface: AccountType
Set the credit value of this account type

Specified by:
setCredit in interface AccountType

getName

public java.lang.String getName()
Description copied from interface: AccountType
Returns the name of this account type

Specified by:
getName in interface AccountType
Returns:

setName

public void setName(java.lang.String name)
             throws InvalidValueException
Description copied from interface: AccountType
Sets the name of this account type

Specified by:
setName in interface AccountType
Throws:
InvalidValueException

isExpanded

public boolean isExpanded()
Description copied from interface: Expandable
Is the node currently expanded

Specified by:
isExpanded in interface Expandable
Returns:

setExpanded

public void setExpanded(boolean isExpanded)
Description copied from interface: Expandable
Should the node be expanded

Specified by:
setExpanded in interface Expandable

compareTo

public int compareTo(ModelObject o)
Specified by:
compareTo in interface java.lang.Comparable<ModelObject>
Specified by:
compareTo in interface ModelObject
Overrides:
compareTo in class ModelObjectImpl