|
ModeShape Distribution 3.0.0.Alpha6 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.modeshape.jcr.ExecutionContext
org.modeshape.jcr.text.TextExtractorContext
public class TextExtractorContext
A context for extracting the content.
Field Summary |
---|
Fields inherited from class org.modeshape.jcr.ExecutionContext |
---|
DEFAULT_CONTEXT |
Constructor Summary | |
---|---|
TextExtractorContext(ExecutionContext context,
String mimeType,
Problems problems)
|
Method Summary | |
---|---|
String |
getMimeType()
|
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. |
TextExtractorContext |
with(Map<String,String> data)
Create a new execution context that mirrors this context but that contains the supplied data. |
TextExtractorContext |
with(MimeTypeDetector mimeTypeDetector)
Create a new execution context that is the same as this context, but which uses the supplied MIME
type detector . |
TextExtractorContext |
with(NamespaceRegistry namespaceRegistry)
Create a new execution context that mirrors this context but that uses the supplied namespace registry. |
TextExtractorContext |
with(SecurityContext securityContext)
Create an ExecutionContext that is the same as this context, but which uses the supplied security context . |
TextExtractorContext |
with(String processId)
Create a new execution context that mirrors this context but that contains the supplied process identifier. |
TextExtractorContext |
with(String key,
String value)
Create a new execution context that mirrors this context but that contains the supplied key-value pair in the new context's data. |
Methods inherited from class org.modeshape.jcr.ExecutionContext |
---|
clone, getBinaryStore, getData, getId, getLogger, getLogger, getMimeTypeDetector, getNamespaceRegistry, getProcessId, getPropertyFactory, getSecurityContext, getThreadPool, getThreadPoolFactory, getValueFactories, initializeDefaultNamespaces, releaseThreadPool, toString, with, with, with |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TextExtractorContext(ExecutionContext context, String mimeType, Problems problems)
Method Detail |
---|
public String getMimeType()
getMimeType
in interface TextExtractor.Context
public Problems getProblems()
public TextExtractorContext with(Map<String,String> data)
ExecutionContext
with
in class ExecutionContext
data
- the data that is to be affiliated with the resulting context or null if the resulting context should have no
data
public TextExtractorContext with(MimeTypeDetector mimeTypeDetector)
ExecutionContext
MIME
type detector
.
with
in class ExecutionContext
mimeTypeDetector
- the new MIME type detector implementation, or null if the context should use a
MimeTypeDetectors
instance with an ExtensionBasedMimeTypeDetector
public TextExtractorContext with(NamespaceRegistry namespaceRegistry)
ExecutionContext
value factories
and property factory
all make use of
the new namespace registry.
with
in class ExecutionContext
namespaceRegistry
- the new namespace registry implementation, or null if the default implementation should be used
public TextExtractorContext with(SecurityContext securityContext)
ExecutionContext
ExecutionContext
that is the same as this context, but which uses the supplied security context
.
with
in class ExecutionContext
securityContext
- the new security context to use; may be null
public TextExtractorContext with(String key, String value)
ExecutionContext
with
in class ExecutionContext
key
- the key for the new data that is to be affiliated with the resulting contextvalue
- the data value to be affiliated with the supplied key in the resulting context, or null if an existing data
affiliated with the key should be removed in the resulting context
public TextExtractorContext with(String processId)
ExecutionContext
with
in class ExecutionContext
processId
- the identifier of the process
|
ModeShape Distribution 3.0.0.Alpha6 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |