com.hammurapi.party
Interface DateEffectiveObject

All Superinterfaces:
org.eclipse.emf.ecore.EObject, org.eclipse.emf.common.notify.Notifier, Tagged
All Known Subinterfaces:
Address, ContactInfo, Custom, EMail, MatrixRelationship, Phone, Role, URL, USAddress, Web
All Known Implementing Classes:
CustomImpl, EMailImpl, MatrixRelationshipImpl, PhoneImpl, RoleImpl, USAddressImpl, WebImpl

public interface DateEffectiveObject
extends Tagged

A representation of the model object 'Date Effective Object'. Object which is effective for a certain period of time.

The following features are supported:

See Also:
PartyPackage.getDateEffectiveObject()

Method Summary
 Date getEnd()
          Returns the value of the 'End' attribute.
 Date getStart()
          Returns the value of the 'Start' attribute.
 boolean isEffective(Date date)
          Returns true if object is effective at given date.
 boolean isEffectiveNow()
          Returns true if object is currently effective.
 void setEnd(Date value)
          Sets the value of the 'End' attribute.
 void setStart(Date value)
          Sets the value of the 'Start' attribute.
 
Methods inherited from interface com.hammurapi.party.Tagged
getComment, getTags, setComment
 
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eIsProxy, eIsSet, eResource, eSet, eUnset
 
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
 

Method Detail

getStart

Date getStart()
Returns the value of the 'Start' attribute. Start date.

Returns:
the value of the 'Start' attribute.
See Also:
setStart(Date), PartyPackage.getDateEffectiveObject_Start()

setStart

void setStart(Date value)
Sets the value of the 'Start' attribute.

Parameters:
value - the new value of the 'Start' attribute.
See Also:
getStart()

getEnd

Date getEnd()
Returns the value of the 'End' attribute. End date.

Returns:
the value of the 'End' attribute.
See Also:
setEnd(Date), PartyPackage.getDateEffectiveObject_End()

setEnd

void setEnd(Date value)
Sets the value of the 'End' attribute.

Parameters:
value - the new value of the 'End' attribute.
See Also:
getEnd()

isEffectiveNow

boolean isEffectiveNow()
Returns true if object is currently effective.


isEffective

boolean isEffective(Date date)
Returns true if object is effective at given date.

Parameters:
date - Date for which effectiveness is checked.