public class CustomDirectiveCondition extends java.lang.Object implements AcceptCondition
Constructor and Description |
---|
CustomDirectiveCondition(java.lang.String expectedDirectiveName,
java.lang.String expectedDirectiveValue)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
accept(DocumentProcessingContext ctx,
ProcessableDocument pdoc) |
java.lang.String |
toString() |
public CustomDirectiveCondition(java.lang.String expectedDirectiveName, java.lang.String expectedDirectiveValue)
expectedDirectiveName
- the expected directive name, can not be nullexpectedDirectiveValue
- the expected directive value, if null or empty, only the presence of the directive will be checkedpublic boolean accept(DocumentProcessingContext ctx, ProcessableDocument pdoc)
accept
in interface AcceptCondition
public java.lang.String toString()
toString
in interface AcceptCondition
toString
in class java.lang.Object
Copyright © 2013 Dassault Systèmes, All Rights Reserved.