Interface DocumentContextRuleLocal
public interface DocumentContextRuleLocal
The Interface DocumentContextRuleLocal.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe Constant MAPPED_NAME: "com.priint.pubserver.comet.bridge.contextrule.DocumentContextRule" -
Method Summary
Modifier and TypeMethodDescriptionuseDocumentVariable(String contextCriteria, String name) Use a document variable for this context criteria.useLayerName(String contextCriteria, String format) Use the layer name of the output document to determine context criteria.\nThis method takes one parameter, which describes the expected format of the layer name, e.g.
-
Field Details
-
MAPPED_NAME
The Constant MAPPED_NAME: "com.priint.pubserver.comet.bridge.contextrule.DocumentContextRule"- See Also:
-
-
Method Details
-
useDocumentVariable
Use a document variable for this context criteria.- Parameters:
contextCriteria- the context criterianame- the name- Returns:
- the string
- Throws:
PubServerException- the pub server exception
-
useLayerName
Use the layer name of the output document to determine context criteria.\nThis method takes one parameter, which describes the expected format of the layer name, e.g. \"text#language\".\nWhen applied for the language criteria and the target layer name is \"descriptions#eng\", the context language will be set to English. The same rule applied for country, well or assortment will result in empty values for these criteria.- Parameters:
contextCriteria- the context criteriaformat- the format- Returns:
- the string
-