public abstract class AbstractProposition extends Object implements Proposition
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractProposition()
Here only for use by deserialization of
Serializable
subclasses of this class. |
| Modifier and Type | Method and Description |
|---|---|
void |
addPropertyChangeListener(PropertyChangeListener l)
Adds a
PropertyChangeListener to the listener list. |
void |
addReference(String name,
UniqueId ref) |
boolean |
equals(Object o) |
Date |
getCreateDate()
Gets the date this proposition was created in the source system, or for
derived propositions, the date it was created through the temporal
abstraction process.
|
Date |
getDeleteDate()
Gets the date this proposition was deleted from the source system, or
for derived propositions, the date it was invalidated due to data
changes.
|
Date |
getDownloadDate()
Gets the date this proposition was downloaded from the source system.
|
String |
getId()
Gets this proposition's data type.
|
Value |
getProperty(String name)
Gets the value of the specified property.
|
String[] |
getPropertyNames()
Get the property names for the proposition
|
String[] |
getReferenceNames()
Get the reference names for the proposition
|
List<UniqueId> |
getReferences(String name)
Gets the global unique identifiers for the propositions that have the
specified 1:N relationship with this proposition.
|
SourceSystem |
getSourceSystem()
Returns the data source type of the Proposition.
|
UniqueId |
getUniqueId()
Gets this proposition's global unique identifier.
|
Date |
getUpdateDate()
Gets the date this proposition was last updated in the source
system, or for derived propositions, the date it was last updated
through the temporal abstraction process.
|
int |
hashCode() |
protected void |
initializeAbstractProposition(String id,
UniqueId uniqueId)
Assigns fields specified in the constructor.
|
protected void |
initializeProperties() |
protected void |
initializePropertyChangeSupport() |
protected void |
initializeReferences() |
boolean |
isEqual(Object other)
Determines if the specified object is a
Proposition and has
the same field values as this proposition. |
protected void |
readAbstractProposition(ObjectInputStream s) |
void |
removePropertyChangeListener(PropertyChangeListener l)
Removes a
PropertyChangeListener from the listener list. |
void |
setCreateDate(Date createDate)
Sets the date this proposition was created according to the source
system from which it was obtained, or for derived propositions, the
date it was created through the temporal abstraction process.
|
void |
setDeleteDate(Date deleteDate)
Sets the date this proposition was deleted from the source system.
|
void |
setDownloadDate(Date downloadDate)
Sets the date this proposition was downloaded from the source system.
|
void |
setProperty(String name,
Value value) |
void |
setReferences(String name,
List<UniqueId> refs) |
void |
setSourceSystem(SourceSystem sourceSystem) |
void |
setUpdateDate(Date updateDate)
Sets the date this proposition was last updated according to the source
system from which it was obtained, or for derived propositions, the
date it was last updated through the temporal abstraction process.
|
String |
toString() |
protected void |
writeAbstractProposition(ObjectOutputStream s) |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitacceptacceptCheckedprotected AbstractProposition()
Serializable
subclasses of this class. Do not call this for any other reason because
id and uniqueId are left uninitialized! Subclasses that are serializable
should implement a
readObject method that calls readAbstractProposition(java.io.ObjectInputStream).protected final void initializeAbstractProposition(String id, UniqueId uniqueId)
id - the proposition id.uniqueId - the proposition's unique id.protected void initializeProperties()
protected void initializeReferences()
protected void initializePropertyChangeSupport()
public String getId()
PropositiongetId in interface PropositionString for the type of data
represented by this proposition.public final Value getProperty(String name)
PropositiongetProperty in interface Propositionname - the name String of a valid property. Cannot be
null.Value of the specified property.public final String[] getPropertyNames()
PropositiongetPropertyNames in interface Propositionpublic SourceSystem getSourceSystem()
PropositiongetSourceSystem in interface PropositionSourceSystem.public void setSourceSystem(SourceSystem sourceSystem)
public final UniqueId getUniqueId()
PropositiongetUniqueId in interface PropositionUniqueIdentifier.public final List<UniqueId> getReferences(String name)
PropositiongetReferences in interface Propositionname - the name of the relationship. Cannot be null.List of global unique identifiers.
Guaranteed not null.to get the propositions with the specified
relationship.public final String[] getReferenceNames()
PropositiongetReferenceNames in interface Propositionpublic final void addPropertyChangeListener(PropertyChangeListener l)
PropositionPropertyChangeListener to the listener list. The listener
is registered for all bound properties of this class (none at present).
If listener is null, no exception is thrown and no action is performed.addPropertyChangeListener in interface Propositionl - the PropertyChangeListener to be added.public final void removePropertyChangeListener(PropertyChangeListener l)
PropositionPropertyChangeListener from the listener list. This
method should be used to remove PropertyChangeListeners that were
registered for all bound properties of this class.
If listener is null, no exception is thrown and no action is performed.removePropertyChangeListener in interface Propositionl - the PropertyChangeListener to be removedpublic boolean isEqual(Object other)
PropositionProposition and has
the same field values as this proposition.isEqual in interface Propositionother - an Object.true if the specified object is a
Proposition and has the same field values, false
otherwise.protected void writeAbstractProposition(ObjectOutputStream s) throws IOException
IOExceptionprotected void readAbstractProposition(ObjectInputStream s) throws IOException, ClassNotFoundException
IOExceptionClassNotFoundExceptionpublic final Date getCreateDate()
PropositiongetCreateDate in interface Propositionnull means the create date is not recorded.public final void setCreateDate(Date createDate)
createDate - a date.public final Date getUpdateDate()
PropositiongetUpdateDate in interface Propositionnull means the proposition has never been
updated.public final void setUpdateDate(Date updateDate)
updateDate - a date.public final Date getDownloadDate()
PropositiongetDownloadDate in interface Propositionnull if the proposition was not downloaded
from a source system.public final void setDownloadDate(Date downloadDate)
downloadDate - a date, or null if the proposition was
not downloaded from a source system.public Date getDeleteDate()
PropositiongetDeleteDate in interface Propositionnull if the proposition has not been
deleted.public void setDeleteDate(Date deleteDate)
deleteDate - a date, or null if the proposition has
not been deleted.Copyright © 2012–2016 Emory University. All rights reserved.