org.electrocodeogram.cpc.core.api.data.special
Interface ICreatorClone

All Superinterfaces:
java.lang.Cloneable, java.lang.Comparable<IClone>, org.eclipse.core.runtime.IAdaptable, IClone, ICloneDataElement, ICloneObject, java.io.Serializable
All Known Subinterfaces:
ICloneInterfaces

public interface ICreatorClone
extends IClone

Internal sub-interface of IClone containing internal methods which are related to the creation of new clone objects as well as the modification of a clone contents.

This interface may only be used by modules which create or modify clone objects.

Users:

Author:
vw
See Also:
IClone

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.electrocodeogram.cpc.core.api.data.IClone
IClone.State
 
Field Summary
 
Fields inherited from interface org.electrocodeogram.cpc.core.api.data.IClone
PERSISTENCE_CLASS_IDENTIFIER
 
Fields inherited from interface org.electrocodeogram.cpc.core.api.data.ICloneObject
PERSISTENCE_OBJECT_IDENTIFIER
 
Method Summary
 void setContent(java.lang.String content)
          Sets the current content for the position range specified by the clone.
 void setCreationDate(java.util.Date creationDate)
          Sets the creation date of this clone.
 void setCreator(java.lang.String creator)
          Sets the creator (username) of this clone.
 void setFileUuid(java.lang.String fileUuid)
          Sets the UUID for the clone file in which this clone is located.
 
Methods inherited from interface org.electrocodeogram.cpc.core.api.data.IClone
addClassification, compareTo, getClassifications, getCloneState, getCloneStateChangeDate, getCloneStateDismissalDate, getCloneStateMessage, getCloneStateWeight, getContent, getCreationDate, getCreator, getEndOffset, getFileUuid, getGroupUuid, getLength, getModificationDate, getOffset, getOriginalContent, getOriginUuid, hasClassification, intersects, intersects, isTransient, removeClassification, setCloneState, setGroupUuid, setLength, setOffset, setOriginUuid, setTransient
 
Methods inherited from interface org.electrocodeogram.cpc.core.api.data.ICloneObject
addExtension, clone, equals, equalsAll, getExtension, getExtensions, getUuid, hasExtensions, hashCode, isMarked, removeExtension, removeExtension, setMarked, toString
 
Methods inherited from interface org.electrocodeogram.cpc.core.api.data.ICloneDataElement
isSealed, seal
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 

Method Detail

setCreationDate

void setCreationDate(java.util.Date creationDate)
Sets the creation date of this clone.
This method will also set the IClone.getModificationDate() and IClone.getCloneStateChangeDate() values to the given date.

Parameters:
creationDate - the creation date, never null.
See Also:
IClone.getModificationDate(), IClone.getCloneStateChangeDate()

setCreator

void setCreator(java.lang.String creator)
Sets the creator (username) of this clone.
If the creator can't be determined, the value should be set to NULL.

Parameters:
creator - the creator of this clone, may be NULL.

setFileUuid

void setFileUuid(java.lang.String fileUuid)
Sets the UUID for the clone file in which this clone is located.

Parameters:
fileUuid - clone file uuid, never null.

setContent

void setContent(java.lang.String content)
Sets the current content for the position range specified by the clone.
This method is called on creation of a new clone and after each modification to the content of a clone.
The first call of this method will also set the IClone.getOriginalContent() value.
This method also sets the IClone.getModificationDate() value to the current time.

Parameters:
content - the new clone content, never null.
See Also:
IClone.getModificationDate()