pulse - the web application framework Get pulse at SourceForge.net. Fast, secure and Free Open Source software downloads Ohloh project report for pulse-java

org.torweg.pulse.site.content
Class AbstractBasicVariant<T extends AbstractBasicVariant<T>>

java.lang.Object
  extended by org.torweg.pulse.util.entity.AbstractBasicEntity
      extended by org.torweg.pulse.util.entity.AbstractNamedEntity
          extended by org.torweg.pulse.util.entity.AbstractNamableEntity
              extended by org.torweg.pulse.site.content.Variant<T>
                  extended by org.torweg.pulse.site.content.AbstractBasicVariant<T>
Type Parameters:
T - the actual implementation
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<T>, ExtendedJDOMable, JDOMable, IHasVariants, ILinkCorretable, INameable, INamed
Direct Known Subclasses:
AbstractSummaryDescriptionVariant

@MappedSuperclass
public abstract class AbstractBasicVariant<T extends AbstractBasicVariant<T>>
extends Variant<T>

Version:
$Revision: 1984 $
Author:
Christian Schatt, Daniel Dietz
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.torweg.pulse.site.content.Variant
LOGGER
 
Constructor Summary
AbstractBasicVariant()
           
 
Method Summary
 org.jdom.Element deserializeToJDOM()
          Returns the state of the AbstractBasicVariant as a JDOM Element.
 org.jdom.Element deserializeToJDOM(ServiceRequest pServiceRequest)
          Returns the state of the AbstractBasicVariant as a JDOM Element.
 Content getContent()
          Returns the Content of the AbstractBasicVariant .
 java.lang.StringBuilder getFullTextValue()
          Returns the AbstractBasicVariant's textual information as it is supposed to be supplied for the index.
 java.util.Set<ILinkCorrectableElement> getLinkCorrectables()
          a set with the Elements to be corrected.
 java.lang.String getSummary()
          Returns the summary of the AbstractBasicVariant.
 org.jdom.Element getSummaryElement()
          Returns the summary of the AbstractBasicVariant as a JDOM Element.
 void setContent(Content pContent)
          Sets the Content of the AbstractBasicVariant.
 void setSummary(org.jdom.Element pSummaryElement)
          Sets the summary of the AbstractBasicVariant from a JDOM Element.
 
Methods inherited from class org.torweg.pulse.site.content.Variant
addVariant, compareTo, createCopy, equals, getAssociatedVirtualFiles, getAttachments, getParentVariant, getVariants, hashCode, onVirtualFileSystemChange, processHTML, removeVariant, setAssociatedVirtualFiles, setAttachments, setVariants, updateHTML
 
Methods inherited from class org.torweg.pulse.util.entity.AbstractNamableEntity
setName
 
Methods inherited from class org.torweg.pulse.util.entity.AbstractNamedEntity
getName
 
Methods inherited from class org.torweg.pulse.util.entity.AbstractBasicEntity
compareTo, getFullQualifiedClassNameJAXB, getId
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.torweg.pulse.util.INamed
getName
 

Constructor Detail

AbstractBasicVariant

public AbstractBasicVariant()
Method Detail

getContent

public final Content getContent()
Returns the Content of the AbstractBasicVariant .

Specified by:
getContent in class Variant<T extends AbstractBasicVariant<T>>
Returns:
the Content of the AbstractBasicVariant .

setContent

public void setContent(Content pContent)
Sets the Content of the AbstractBasicVariant.

Specified by:
setContent in class Variant<T extends AbstractBasicVariant<T>>
Parameters:
pContent - the Content to be set.

getSummary

public final java.lang.String getSummary()
Returns the summary of the AbstractBasicVariant.

Returns:
the summary of the AbstractBasicVariant.

setSummary

public final void setSummary(org.jdom.Element pSummaryElement)
Sets the summary of the AbstractBasicVariant from a JDOM Element.

Parameters:
pSummaryElement - the JDOM Element representing the summary to be set.

getSummaryElement

public final org.jdom.Element getSummaryElement()
Returns the summary of the AbstractBasicVariant as a JDOM Element.

Returns:
the summary of the AbstractBasicVariant as a JDOM Element.

getFullTextValue

public java.lang.StringBuilder getFullTextValue()
Returns the AbstractBasicVariant's textual information as it is supposed to be supplied for the index.

Implementing classes may override the method to supply more information for the index.

Specified by:
getFullTextValue in class Variant<T extends AbstractBasicVariant<T>>
Returns:
the AbstractBasicVariant's textual information as it is supposed to be supplied for the index.

deserializeToJDOM

public org.jdom.Element deserializeToJDOM()
Returns the state of the AbstractBasicVariant as a JDOM Element.

Returns:
the state of the AbstractBasicVariant as a JDOM Element.

deserializeToJDOM

public org.jdom.Element deserializeToJDOM(ServiceRequest pServiceRequest)
Returns the state of the AbstractBasicVariant as a JDOM Element.

Parameters:
pServiceRequest - the current ServiceRequest or null.
Returns:
the state of the AbstractBasicVariant as a JDOM Element.

getLinkCorrectables

public java.util.Set<ILinkCorrectableElement> getLinkCorrectables()
Description copied from interface: ILinkCorretable
a set with the Elements to be corrected.

Returns:
the set of ILinkCorrectableElements
See Also:
ILinkCorretable.getLinkCorrectables()