public class PropertyResource.PropertyVisit extends Object implements Child<PropertyResource>
Child
used by PropertyResource.accept(Visitor)
when visiting the map of PropertyResource.getProperties()
Modifier and Type | Method and Description |
---|---|
boolean |
accept(Visitor visitor)
Accepts a
Visitor to this WorkflowBean . |
PropertyResource |
getParent()
Returns the parent of this workflow bean, or
null if it is orphan. |
URI |
getPredicateUri() |
Set<PropertyObject> |
getPropertiesForPredicate() |
void |
setParent(PropertyResource parent)
Sets the parent of this workflow bean.
|
String |
toString() |
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 PropertyResource getParent()
Child
null
if it is orphan.getParent
in interface Child<PropertyResource>
null
if it is orphanpublic URI getPredicateUri()
public Set<PropertyObject> getPropertiesForPredicate()
public void setParent(PropertyResource 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<PropertyResource>
parent
- the parent of this workflow beanCopyright © 2013 myGrid. All rights reserved.