public final class CopyPropositionVisitor extends AbstractPropositionVisitor
PropositionVisitable.accept(org.protempa.proposition.visitor.PropositionVisitor)
and call getCopy().
You may override the copy's field values by setting the corresponding fields
of this class (e.g., deleteDate). The default behavior will use
the original proposition's values for all fields.| Constructor and Description |
|---|
CopyPropositionVisitor() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears the stored copy.
|
Proposition |
getCopy()
Gets the stored copy.
|
Date |
getCreateDate()
Returns the create date for copies made with this visitor.
|
Date |
getDeleteDate()
Returns the delete date for copies made with this visitor.
|
Date |
getDownloadDate()
Returns the download date for copies made with this visitor.
|
Map<String,Value> |
getProperties()
Returns the properties for copies made with this visitor.
|
Map<String,List<UniqueId>> |
getReferences()
Returns the references for copies made with this visitor.
|
SourceSystem |
getSourceSystem()
Returns the source system for copies made with this visitor.
|
UniqueId |
getUniqueId()
Returns the unique id for copies made with this visitor.
|
Date |
getUpdateDate()
Returns the update date for copies made with this visitor.
|
void |
setCreateDate(Date createDate)
Overrides the create date for copies made with this visitor.
|
void |
setDeleteDate(Date deleteDate)
Overrides the delete date for copies made with this visitor.
|
void |
setDownloadDate(Date downloadDate)
Overrides the download date for copies made with this visitor.
|
void |
setProperties(Map<String,Value> properties)
Overrides the properties for copies made with this visitor.
|
void |
setReferences(Map<String,List<UniqueId>> references)
Overrides the references for copies made with this visitor.
|
void |
setSourceSystem(SourceSystem sourceSystem)
Overrides the source system for copies made with this visitor.
|
void |
setUniqueId(UniqueId uniqueId)
Overrides the unique id for copies made with this visitor.
|
void |
setUpdateDate(Date updateDate)
Overrides the update date for copies made with this visitor.
|
void |
visit(AbstractParameter abstractParameter)
Copies an
AbstractParameter proposition. |
void |
visit(Constant constant)
Copies a
Constant proposition. |
void |
visit(Context context)
Copies a
Context proposition. |
void |
visit(Event event)
Copies a
Event proposition. |
void |
visit(PrimitiveParameter primitiveParameter)
Copies a
PrimitiveParameter proposition. |
visit, visitpublic Map<String,Value> getProperties()
null. A
value of null means that this visitor is using the original
proposition's value for this field.public void setProperties(Map<String,Value> properties)
properties - a map of property name to value pairs, or
null to use the original proposition's value for this field.public Map<String,List<UniqueId>> getReferences()
null.
A value of null means that this visitor is using the
original proposition's value for this field.public void setReferences(Map<String,List<UniqueId>> references)
references - a map of reference name to reference pairs, or
null to use the original proposition's value for this field.public UniqueId getUniqueId()
null. A value of null
means that this visitor is using the original proposition's value for
this field.public void setUniqueId(UniqueId uniqueId)
uniqueId - an unique id, or null to use the original
proposition's value for this field.public SourceSystem getSourceSystem()
null. A value of
null means that this visitor is using the original
proposition's value for this field.public void setSourceSystem(SourceSystem sourceSystem)
sourceSystem - a source system, or null to use the
original proposition's value for this field.public Date getDownloadDate()
null. A value of null means
that this visitor is using the original proposition's value for this
field.public void setDownloadDate(Date downloadDate)
downloadDate - a date, or null to use the original
proposition's value for this field.public Date getCreateDate()
null. A value of null means
that this visitor is using the original proposition's value for this
field.public void setCreateDate(Date createDate)
createDate - a date, or null to use the original
proposition's value for this field.public Date getUpdateDate()
null. A value of null means
that this visitor is using the original proposition's value for this
field.public void setUpdateDate(Date updateDate)
updateDate - a date, or null to use the original
proposition's value for this field.public Date getDeleteDate()
null. A value of null means
that this visitor is using the original proposition's value for this
field.public void setDeleteDate(Date deleteDate)
deleteDate - a date, or null to use the original
proposition's value for this field.public void visit(Context context)
visit in interface PropositionVisitorvisit in class AbstractPropositionVisitorcontext - the context to copy. Cannot be null.public void visit(Constant constant)
visit in interface PropositionVisitorvisit in class AbstractPropositionVisitorconstant - the constant to copy. Cannot be null.public void visit(PrimitiveParameter primitiveParameter)
PrimitiveParameter proposition. Retrieve it by
subsequently calling getCopy().visit in interface PropositionVisitorvisit in class AbstractPropositionVisitorprimitiveParameter - the primitive parameter to copy. Cannot be
null.public void visit(Event event)
visit in interface PropositionVisitorvisit in class AbstractPropositionVisitorevent - the event to copy. Cannot be null.public void visit(AbstractParameter abstractParameter)
AbstractParameter proposition. Retrieve it by
subsequently calling getCopy().visit in interface PropositionVisitorvisit in class AbstractPropositionVisitorabstractParameter - the abstract parameter to copy. Cannot be
null.public Proposition getCopy()
public void clear()
Copyright © 2012–2018 Emory University. All rights reserved.