org.jboss.dna.graph
Class GraphImporter.CreateOnGraphInBatch

java.lang.Object
  extended by org.jboss.dna.graph.GraphImporter.CreateOnGraphInBatch
All Implemented Interfaces:
XmlHandler.Destination
Enclosing class:
GraphImporter

@NotThreadSafe
protected static final class GraphImporter.CreateOnGraphInBatch
extends Object
implements XmlHandler.Destination


Constructor Summary
protected GraphImporter.CreateOnGraphInBatch(Graph.Batch batch)
           
 
Method Summary
 void create(Path path, List<Property> properties)
          Create a node at the supplied path and with the supplied attributes.
 void create(Path path, Property firstProperty, Property... additionalProperties)
          Create a node at the supplied path and with the supplied attributes.
 ExecutionContext getExecutionContext()
          Obtain the execution context of the destination.
 void submit()
          Signal to this destination that any enqueued create requests should be submitted.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GraphImporter.CreateOnGraphInBatch

protected GraphImporter.CreateOnGraphInBatch(Graph.Batch batch)
Method Detail

getExecutionContext

public ExecutionContext getExecutionContext()
Description copied from interface: XmlHandler.Destination
Obtain the execution context of the destination.

Specified by:
getExecutionContext in interface XmlHandler.Destination
Returns:
the destination's execution context

create

public void create(Path path,
                   List<Property> properties)
Description copied from interface: XmlHandler.Destination
Create a node at the supplied path and with the supplied attributes. The path will be absolute.

Specified by:
create in interface XmlHandler.Destination
Parameters:
path - the absolute path of the node
properties - the properties for the node; never null, but may be empty if there are no properties

create

public void create(Path path,
                   Property firstProperty,
                   Property... additionalProperties)
Description copied from interface: XmlHandler.Destination
Create a node at the supplied path and with the supplied attributes. The path will be absolute.

Specified by:
create in interface XmlHandler.Destination
Parameters:
path - the absolute path of the node
firstProperty - the first property
additionalProperties - the remaining properties for the node

submit

public void submit()
Description copied from interface: XmlHandler.Destination
Signal to this destination that any enqueued create requests should be submitted. Usually this happens at the end of the document parsing, but an implementer must allow for it to be called multiple times and anytime during parsing.

Specified by:
submit in interface XmlHandler.Destination


Copyright © 2008-Present JBoss a division of Red Hat. All Rights Reserved.