org.jboss.dna.graph.sequencer
Class SequencerContext

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

public class SequencerContext
extends ExecutionContext

Author:
John Verhaeg

Constructor Summary
SequencerContext(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, create, create, getAccessControlContext, getClassLoader, getLogger, getLogger, getLoginContext, getMimeTypeDetector, getNamespaceRegistry, getPropertyFactory, getSubject, getValueFactories, toString, with, with, with, with, with, with, with
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SequencerContext

public SequencerContext(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-Present JBoss a division of Red Hat. All Rights Reserved.