public class Annotation extends AbstractNamed implements Named, Child<WorkflowBundle>
Modelled after http://openannotation.org/spec/core/20120509
AbstractCloneable.Cloning, AbstractCloneable.CopyVisitor
Constructor and Description |
---|
Annotation() |
Annotation(WorkflowBean target) |
Modifier and Type | Method and Description |
---|---|
boolean |
accept(Visitor visitor)
Accepts a
Visitor to this WorkflowBean . |
protected void |
cloneInto(WorkflowBean clone,
AbstractCloneable.Cloning cloning) |
Calendar |
getAnnotatedAt() |
URI |
getAnnotatedBy() |
URI |
getBody() |
WorkflowBundle |
getParent()
Returns the parent of this workflow bean, or
null if it is orphan. |
Calendar |
getSerializedAt() |
URI |
getSerializedBy() |
WorkflowBean |
getTarget() |
void |
setAnnotatedAt(Calendar annotatedAt) |
void |
setAnnotatedBy(URI annotatedBy) |
void |
setBody(URI body) |
void |
setParent(WorkflowBundle parent)
Sets the parent of this workflow bean.
|
void |
setSerializedAt(Calendar serializedAt) |
void |
setSerializedBy(URI serializedBy) |
void |
setTarget(WorkflowBean target) |
compareTo, equals, getName, hashCode, setName, toString
clone, cloneWorkflowBean
finalize, getClass, notify, notifyAll, wait, wait, wait
compareTo
clone
public Annotation(WorkflowBean target)
public Annotation()
public boolean accept(Visitor visitor)
WorkflowBean
Visitor
to this WorkflowBean
.accept
in interface WorkflowBean
visitor
- the Visitor
to accepttrue
if this WorkflowBeans
children should be visited.public Calendar getAnnotatedAt()
public URI getAnnotatedBy()
public Calendar getSerializedAt()
public URI getSerializedBy()
public WorkflowBean getTarget()
public void setAnnotatedAt(Calendar annotatedAt)
public void setAnnotatedBy(URI annotatedBy)
public void setSerializedAt(Calendar serializedAt)
public void setSerializedBy(URI serializedBy)
public void setTarget(WorkflowBean target)
public WorkflowBundle getParent()
Child
null
if it is orphan.getParent
in interface Child<WorkflowBundle>
null
if it is orphanpublic void setParent(WorkflowBundle parent)
Child
Setting the parent would normally also add the object to the relevant collection in the parent if it does not already exist there.
If the child has an existing, object-identity different parent, the child will first be removed from the parent collection if it exists there.
Note:If the child is Named
the parent collection will be a
NamedSet
. This implicit insertion would overwrite any conflicting sibling with the
same Named.getName()
- to avoid this, add the child to the parent collection by using
NamedSet.addWithUniqueName(Named)
before setting the parent.
setParent
in interface Child<WorkflowBundle>
parent
- the parent of this workflow beanpublic URI getBody()
public void setBody(URI body)
protected void cloneInto(WorkflowBean clone, AbstractCloneable.Cloning cloning)
cloneInto
in class AbstractNamed
Copyright © 2013 myGrid. All rights reserved.