org.jboss.dna.graph.sequencer
Class StreamSequencerContext

java.lang.Object
  extended by org.jboss.dna.graph.ExecutionContext
      extended by org.jboss.dna.graph.sequencer.StreamSequencerContext
All Implemented Interfaces:
Cloneable, ClassLoaderFactory

@ThreadSafe
public class StreamSequencerContext
extends ExecutionContext

A special ExecutionContext that is used for sequencing streams.


Field Summary
 
Fields inherited from class org.jboss.dna.graph.ExecutionContext
DEFAULT_CONTEXT
 
Constructor Summary
StreamSequencerContext(ExecutionContext context, Path inputPath, Set<Property> inputProperties, String mimeType, Problems problems)
           
 
Method Summary
 Path getInputPath()
          Return the path of the input node containing the content being sequenced.
 Set<Property> getInputProperties()
          Return the set of properties from the input node containing the content being sequenced.
 Property getInputProperty(Name name)
          Return the property with the supplied name from the input node containing the content being sequenced.
 String getMimeType()
          Return the MIME-type of the content being sequenced.
 Problems getProblems()
          Get an interface that can be used to record various problems, warnings, and errors that are not extreme enough to warrant throwing exceptions.
 
Methods inherited from class org.jboss.dna.graph.ExecutionContext
clone, getClassLoader, getId, getLogger, getLogger, getMimeTypeDetector, getNamespaceRegistry, getPropertyFactory, getSecurityContext, getValueFactories, toString, with, with, with, with
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StreamSequencerContext

public StreamSequencerContext(ExecutionContext context,
                              Path inputPath,
                              Set<Property> inputProperties,
                              String mimeType,
                              Problems problems)
Method Detail

getInputPath

public Path getInputPath()
Return the path of the input node containing the content being sequenced.

Returns:
input node's path.

getInputProperties

public Set<Property> getInputProperties()
Return the set of properties from the input node containing the content being sequenced.

Returns:
the input node's properties; never null.

getInputProperty

public Property getInputProperty(Name name)
Return the property with the supplied name from the input node containing the content being sequenced.

Parameters:
name -
Returns:
the input node property, or null if none exists.

getMimeType

public String getMimeType()
Return the MIME-type of the content being sequenced.

Returns:
the MIME-type

getProblems

public Problems getProblems()
Get an interface that can be used to record various problems, warnings, and errors that are not extreme enough to warrant throwing exceptions.

Returns:
the interface for recording problems; never null


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