Package com.itextpdf.tool.xml
Interface WorkerContext
-
- All Known Implementing Classes:
WorkerContextImpl
public interface WorkerContext
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CustomContext
get(java.lang.String key)
Tag
getCurrentTag()
void
put(java.lang.String contextKey, CustomContext context)
Store a customContext for the given key.void
setCurrentTag(Tag t)
Contains the current tag.
-
-
-
Method Detail
-
get
CustomContext get(java.lang.String key) throws NoCustomContextException
- Parameters:
key
- the key to find the custom context for. (internally itextpdf.com uses the pipelines fully qualified klassName, so when you want to use our pipelines twice in the same 'line' you have to override it to change the key used)- Returns:
- a CustomContext for the given Class.
- Throws:
NoCustomContextException
- if no CustomContext is found.
-
put
void put(java.lang.String contextKey, CustomContext context)
Store a customContext for the given key.- Parameters:
contextKey
- the key to find the given CustomContext with.context
- the CustomContext to set for the given key
-
setCurrentTag
void setCurrentTag(Tag t)
Contains the current tag.- Parameters:
t
- the Tag
-
getCurrentTag
Tag getCurrentTag()
- Returns:
- the current tag
-
-