|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.topbraidcomposer.ui.viewers.trees.ResourceTreeNode
public abstract class ResourceTreeNode
An object representing a node in a Resource tree.
Instances of this class are typically used in conjunction with a
TreeContentProvider such as ResourceTreeContentProvider.
| Constructor Summary | |
|---|---|
protected |
ResourceTreeNode(ResourceTreeNode parentNode,
com.hp.hpl.jena.rdf.model.Resource resource)
|
| Method Summary | |
|---|---|
ResourceTreeNode |
addChildNode(com.hp.hpl.jena.rdf.model.Resource childResource)
|
abstract ResourceTreeNode |
createChildNode(com.hp.hpl.jena.rdf.model.Resource childResource)
Creates a node for a given resource, with this as parent node. |
protected void |
createChildren()
|
ResourceTreeNode |
createExpandedClone(com.hp.hpl.jena.rdf.model.Model model,
ResourceTreeNode clonedParentNode)
|
void |
deleteAny(com.hp.hpl.jena.rdf.model.Resource resource,
org.eclipse.jface.viewers.TreeViewer treeViewer)
|
void |
ensureChildrenExist()
|
ResourceTreeNode |
findChildNode(com.hp.hpl.jena.rdf.model.Resource resource)
|
ResourceTreeNode |
findChildNode(com.hp.hpl.jena.rdf.model.Resource resource,
java.util.Set<com.hp.hpl.jena.rdf.model.Resource> reached)
|
ResourceTreeNode |
findCreatedChildNode(com.hp.hpl.jena.rdf.model.Resource resource)
|
ResourceTreeNode |
getChildNode(com.hp.hpl.jena.rdf.model.Resource r)
|
ResourceTreeNode |
getChildNode(java.lang.String uri)
|
ResourceTreeNode[] |
getChildren()
|
ResourceTreeNode |
getParentNode()
|
com.hp.hpl.jena.rdf.model.Resource |
getResource()
|
boolean |
hasChild(com.hp.hpl.jena.rdf.model.Resource resource)
|
boolean |
hasChildren()
|
abstract java.util.Iterator<com.hp.hpl.jena.rdf.model.Resource> |
listChildResources()
Finds the Resources that shall be placed as child nodes of this node. |
ResourceTreeNode |
removeChildNode(com.hp.hpl.jena.rdf.model.Resource childResource)
Attempts to delete a child node with a given resource. |
protected void |
replaceResource(com.hp.hpl.jena.rdf.model.Resource resource)
|
java.lang.String |
toString()
|
void |
visitCreatedNodes(IResourceTreeNodeVisitor visitor)
|
void |
visitNodes(IResourceTreeNodeVisitor visitor)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
protected ResourceTreeNode(ResourceTreeNode parentNode,
com.hp.hpl.jena.rdf.model.Resource resource)
| Method Detail |
|---|
public ResourceTreeNode addChildNode(com.hp.hpl.jena.rdf.model.Resource childResource)
public abstract ResourceTreeNode createChildNode(com.hp.hpl.jena.rdf.model.Resource childResource)
childResource - the resource to create a node for
protected void createChildren()
public ResourceTreeNode createExpandedClone(com.hp.hpl.jena.rdf.model.Model model,
ResourceTreeNode clonedParentNode)
public void deleteAny(com.hp.hpl.jena.rdf.model.Resource resource,
org.eclipse.jface.viewers.TreeViewer treeViewer)
public void ensureChildrenExist()
public ResourceTreeNode findChildNode(com.hp.hpl.jena.rdf.model.Resource resource)
public ResourceTreeNode findChildNode(com.hp.hpl.jena.rdf.model.Resource resource,
java.util.Set<com.hp.hpl.jena.rdf.model.Resource> reached)
public ResourceTreeNode findCreatedChildNode(com.hp.hpl.jena.rdf.model.Resource resource)
public ResourceTreeNode getChildNode(com.hp.hpl.jena.rdf.model.Resource r)
public ResourceTreeNode getChildNode(java.lang.String uri)
public ResourceTreeNode[] getChildren()
public ResourceTreeNode getParentNode()
public com.hp.hpl.jena.rdf.model.Resource getResource()
public boolean hasChild(com.hp.hpl.jena.rdf.model.Resource resource)
public boolean hasChildren()
public abstract java.util.Iterator<com.hp.hpl.jena.rdf.model.Resource> listChildResources()
public ResourceTreeNode removeChildNode(com.hp.hpl.jena.rdf.model.Resource childResource)
childResource - the resource on the child node
protected void replaceResource(com.hp.hpl.jena.rdf.model.Resource resource)
public java.lang.String toString()
toString in class java.lang.Objectpublic void visitNodes(IResourceTreeNodeVisitor visitor)
public void visitCreatedNodes(IResourceTreeNodeVisitor visitor)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||