in drools-drl/drools-drl-parser/src/main/java/org/drools/drl/parser/lang/ParserHelper.java [287:357]
public boolean validateAttribute( int index ) {
String text2Validate = retrieveLT( index );
return validateText( text2Validate,
DroolsSoftKeywords.SALIENCE ) ||
validateText( text2Validate,
DroolsSoftKeywords.ENABLED ) ||
(validateText( text2Validate,
DroolsSoftKeywords.NO ) &&
validateLT( index + 1,
"-" ) &&
validateLT( index + 2,
DroolsSoftKeywords.LOOP )) ||
(validateText( text2Validate,
DroolsSoftKeywords.AUTO ) &&
validateLT( index + 1,
"-" ) &&
validateLT( index + 2,
DroolsSoftKeywords.FOCUS )) ||
(validateText( text2Validate,
DroolsSoftKeywords.LOCK ) &&
validateLT( index + 1,
"-" ) &&
validateLT( index + 2,
DroolsSoftKeywords.ON ) &&
validateLT( index + 3,
"-" ) &&
validateLT( index + 4,
DroolsSoftKeywords.ACTIVE )) ||
(validateText( text2Validate,
DroolsSoftKeywords.AGENDA ) &&
validateLT( index + 1,
"-" ) &&
validateLT( index + 2,
DroolsSoftKeywords.GROUP )) ||
(validateText( text2Validate,
DroolsSoftKeywords.ACTIVATION ) &&
validateLT( index + 1,
"-" ) &&
validateLT( index + 2,
DroolsSoftKeywords.GROUP )) ||
(validateText( text2Validate,
DroolsSoftKeywords.RULEFLOW ) &&
validateLT( index + 1,
"-" ) &&
validateLT( index + 2,
DroolsSoftKeywords.GROUP )) ||
(validateText( text2Validate,
DroolsSoftKeywords.DATE ) &&
validateLT( index + 1,
"-" ) &&
validateLT( index + 2,
DroolsSoftKeywords.EFFECTIVE )) ||
(validateText( text2Validate,
DroolsSoftKeywords.DATE ) &&
validateLT( index + 1,
"-" ) &&
validateLT( index + 2,
DroolsSoftKeywords.EXPIRES )) ||
validateText( text2Validate,
DroolsSoftKeywords.DIALECT ) ||
validateText( text2Validate,
DroolsSoftKeywords.CALENDARS ) ||
validateText( text2Validate,
DroolsSoftKeywords.TIMER ) ||
validateText( text2Validate,
DroolsSoftKeywords.DURATION ) ||
validateText( text2Validate,
DroolsSoftKeywords.REFRACT ) ||
validateText( text2Validate,
DroolsSoftKeywords.DIRECT );
}