eu.etaxonomy.cdm.model.common
Class Credit

java.lang.Object
  extended by eu.etaxonomy.cdm.model.common.CdmBase
      extended by eu.etaxonomy.cdm.model.common.VersionableEntity
          extended by eu.etaxonomy.cdm.model.common.AnnotatableEntity
              extended by eu.etaxonomy.cdm.model.common.LanguageStringBase
                  extended by eu.etaxonomy.cdm.model.common.Credit
All Implemented Interfaces:
IAnnotatableEntity, ICdmBase, IVersionableEntity, Serializable, Cloneable

public class Credit
extends LanguageStringBase
implements Cloneable

Version:
1.0
Author:
a.mueller
See Also:
Serialized Form

Field Summary
 
Fields inherited from class eu.etaxonomy.cdm.model.common.LanguageStringBase
language, text
 
Fields inherited from class eu.etaxonomy.cdm.model.common.AnnotatableEntity
annotations, markers
 
Fields inherited from class eu.etaxonomy.cdm.model.common.CdmBase
uuid
 
Constructor Summary
protected Credit()
           
protected Credit(String text, Language language)
           
 
Method Summary
 Object clone()
          Clones this versionable entity.
 String getAbbreviatedText()
           
 AgentBase getAgent()
           
static Credit NewInstance(AgentBase agent, String text)
           
static Credit NewInstance(AgentBase agent, String text, String abbreviatedText, Language language)
           
 void setAbbreviatedText(String abbreviatedText)
           
 void setAgent(AgentBase agent)
           
 
Methods inherited from class eu.etaxonomy.cdm.model.common.LanguageStringBase
getLanguage, getLanguageLabel, getLanguageLabel, getText, setLanguage, setText
 
Methods inherited from class eu.etaxonomy.cdm.model.common.AnnotatableEntity
addAnnotation, addMarker, getAnnotations, getMarkers, hasMarker, hasMarker, removeAnnotation, removeMarker
 
Methods inherited from class eu.etaxonomy.cdm.model.common.VersionableEntity
equals, getUpdated, getUpdatedBy, setUpdated, setUpdatedBy
 
Methods inherited from class eu.etaxonomy.cdm.model.common.CdmBase
addPropertyChangeListener, addPropertyChangeListener, clone, deproxy, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getCreated, getCreatedBy, getId, getUuid, hashCode, hasListeners, invokeSetMethod, invokeSetMethodWithNull, isInstanceOf, removePropertyChangeListener, removePropertyChangeListener, setCreated, setCreatedBy, setId, setUuid, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface eu.etaxonomy.cdm.model.common.IVersionableEntity
getUpdated, getUpdatedBy, setUpdated, setUpdatedBy
 
Methods inherited from interface eu.etaxonomy.cdm.model.common.ICdmBase
getCreated, getCreatedBy, getId, getUuid, setCreated, setCreatedBy, setId, setUuid
 

Constructor Detail

Credit

protected Credit()

Credit

protected Credit(String text,
                 Language language)
Method Detail

NewInstance

public static Credit NewInstance(AgentBase agent,
                                 String text)

NewInstance

public static Credit NewInstance(AgentBase agent,
                                 String text,
                                 String abbreviatedText,
                                 Language language)

getAgent

public AgentBase getAgent()
Returns:
the agent

setAgent

public void setAgent(AgentBase agent)
Parameters:
agent - the agent to set

getAbbreviatedText

public String getAbbreviatedText()
Returns:
the abbreviatedText

setAbbreviatedText

public void setAbbreviatedText(String abbreviatedText)
Parameters:
abbreviatedText - the abbreviatedText to set

clone

public Object clone()
             throws CloneNotSupportedException
Description copied from class: VersionableEntity
Clones this versionable entity. Set fields for nextVersion, previousVersion, updated, updatedBy and createdBy are set to null The id is set to 0. The uuid is created new. The createdWhen is set to the current date.

Overrides:
clone in class LanguageStringBase
Throws:
CloneNotSupportedException
See Also:
Object.clone()


Copyright © 2007-2012 EDIT. All Rights Reserved.