當前位置: 首頁>>代碼示例>>Java>>正文


Java StandardValidators類代碼示例

本文整理匯總了Java中org.apache.nifi.processor.util.StandardValidators的典型用法代碼示例。如果您正苦於以下問題:Java StandardValidators類的具體用法?Java StandardValidators怎麽用?Java StandardValidators使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


StandardValidators類屬於org.apache.nifi.processor.util包,在下文中一共展示了StandardValidators類的13個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: getSupportedDynamicPropertyDescriptor

import org.apache.nifi.processor.util.StandardValidators; //導入依賴的package包/類
@Override
protected PropertyDescriptor getSupportedDynamicPropertyDescriptor(final String propertyDescriptorName) {
    return new PropertyDescriptor.Builder()
    .name(propertyDescriptorName)
    .description("Sets the environment variable '" + propertyDescriptorName + "' for the process' environment")
    .dynamic(true)
    .addValidator(StandardValidators.NON_EMPTY_VALIDATOR)
    .build();
}
 
開發者ID:dream-lab,項目名稱:echo,代碼行數:10,代碼來源:ExecuteProcessBatch.java

示例2: getSupportedDynamicPropertyDescriptor

import org.apache.nifi.processor.util.StandardValidators; //導入依賴的package包/類
/**
 *
 */
@Override
protected PropertyDescriptor getSupportedDynamicPropertyDescriptor(final String propertyDescriptorName) {
    return new PropertyDescriptor.Builder()
            .description("Specifies the value for '" + propertyDescriptorName
                    + "' property to be set on the provided ConnectionFactory implementation.")
            .name(propertyDescriptorName).addValidator(StandardValidators.NON_EMPTY_VALIDATOR).dynamic(true)
            .build();
}
 
開發者ID:lsac,項目名稱:nifi-jms-jndi,代碼行數:12,代碼來源:JNDIConnectionFactoryProvider.java

示例3: getSupportedDynamicPropertyDescriptor

import org.apache.nifi.processor.util.StandardValidators; //導入依賴的package包/類
@Override
protected PropertyDescriptor getSupportedDynamicPropertyDescriptor(final String propertyDescriptorName) {
    PropertyDescriptor.Builder propertyBuilder = new PropertyDescriptor.Builder()
            .name(propertyDescriptorName)
            .required(false)
            .addValidator(StandardValidators.ATTRIBUTE_KEY_PROPERTY_NAME_VALIDATOR)
            .addValidator(StandardValidators.createAttributeExpressionLanguageValidator(AttributeExpression.ResultType.STRING, true))
            .expressionLanguageSupported(true)
            .dynamic(true);

    return propertyBuilder
            .build();
}
 
開發者ID:datamindedbe,項目名稱:nifi-dataminded-bundle,代碼行數:14,代碼來源:GenerateOracleTableFetch.java

示例4: getSupportedDynamicPropertyDescriptor

import org.apache.nifi.processor.util.StandardValidators; //導入依賴的package包/類
@Override
protected PropertyDescriptor getSupportedDynamicPropertyDescriptor(final String propertyDescriptorName) {
    return new PropertyDescriptor.Builder()
            .name(propertyDescriptorName)
            .description("Sets the environment variable '" + propertyDescriptorName + "' for the process' environment")
            .dynamic(true)
            .addValidator(StandardValidators.NON_EMPTY_VALIDATOR)
            .build();
}
 
開發者ID:datamindedbe,項目名稱:nifi-dataminded-bundle,代碼行數:10,代碼來源:SimpleTriggeredProcessExecutor.java

示例5: getSupportedDynamicPropertyDescriptor

import org.apache.nifi.processor.util.StandardValidators; //導入依賴的package包/類
@Override
public PropertyDescriptor getSupportedDynamicPropertyDescriptor(String propertyDescriptorName) {
    if (propertyDescriptorName.startsWith(PATTERN_PROPERTY_PREFIX)) {
        return new PropertyDescriptor
                .Builder().name(propertyDescriptorName)
                .description(PATTERN_PROPERTY_PREFIX_DESC)
                .addValidator(StandardValidators.NON_EMPTY_VALIDATOR)
                .expressionLanguageSupported(true)
                .dynamic(true)
                .sensitive(false)
                .build();
    }
    return null;
}
 
開發者ID:bcgov,項目名稱:nifi-atlas,代碼行數:15,代碼來源:RegexClusterResolver.java

示例6: getSupportedDynamicPropertyDescriptor

import org.apache.nifi.processor.util.StandardValidators; //導入依賴的package包/類
@Override
protected PropertyDescriptor getSupportedDynamicPropertyDescriptor(final String propertyDescriptorName) {
	return new PropertyDescriptor.Builder().name(propertyDescriptorName).required(false)
			.addValidator(StandardValidators
					.createAttributeExpressionLanguageValidator(AttributeExpression.ResultType.STRING, true))
			.addValidator(StandardValidators.ATTRIBUTE_KEY_PROPERTY_NAME_VALIDATOR)
			.expressionLanguageSupported(true).dynamic(true).build();
}
 
開發者ID:cslbehring,項目名稱:public_hdf_processors_ConvertAvroToCSV,代碼行數:9,代碼來源:Avro2CsvProcessor.java

示例7: getSupportedDynamicPropertyDescriptor

import org.apache.nifi.processor.util.StandardValidators; //導入依賴的package包/類
@Override
protected PropertyDescriptor getSupportedDynamicPropertyDescriptor(final String propertyDescriptorName) {
    return new PropertyDescriptor.Builder()
            .name(propertyDescriptorName)
            .addValidator(StandardValidators.NON_EMPTY_VALIDATOR)
            .expressionLanguageSupported(true)
            .required(false)
            .dynamic(true)
            .build();
}
 
開發者ID:Asymmetrik,項目名稱:nifi-nars,代碼行數:11,代碼來源:Md5HashAttributes.java

示例8: customValidate

import org.apache.nifi.processor.util.StandardValidators; //導入依賴的package包/類
@Override
protected Collection<ValidationResult> customValidate(final ValidationContext validationContext) {
    List<ValidationResult> results = new ArrayList<>();

    if (validationContext.getProperty(INSERT_COMMAND_SOURCE).getValue().equals("attribute")) {
        results.add(StandardValidators.NON_BLANK_VALIDATOR.validate(
                INSERT_COMMAND_ATTRIBUTE.getName(),
                validationContext.getProperty(INSERT_COMMAND_ATTRIBUTE).getValue(),
                validationContext));
    }

    return results;
}
 
開發者ID:Asymmetrik,項目名稱:nifi-nars,代碼行數:14,代碼來源:StoreInMongo.java

示例9: getSupportedDynamicPropertyDescriptor

import org.apache.nifi.processor.util.StandardValidators; //導入依賴的package包/類
@Override
protected PropertyDescriptor getSupportedDynamicPropertyDescriptor(String propertyDescriptorName) {
    return new PropertyDescriptor.Builder()
            .description("Specifies the value for '" + propertyDescriptorName + "' in the Accumulo configuration.")
            .name(propertyDescriptorName)
            .addValidator(StandardValidators.NON_EMPTY_VALIDATOR)
            .dynamic(true)
            .build();
}
 
開發者ID:pinkdevelops,項目名稱:nifi-accumulo-service,代碼行數:10,代碼來源:Accumulo_1_7_0_ConnectorService.java

示例10: getSupportedDynamicPropertyDescriptor

import org.apache.nifi.processor.util.StandardValidators; //導入依賴的package包/類
@Override
protected PropertyDescriptor getSupportedDynamicPropertyDescriptor(
		final String propertyDescriptorName) {
	return new PropertyDescriptor.Builder()
			.name(propertyDescriptorName)
			.description(
					"Adds a query parameter with name '"
							+ propertyDescriptorName
							+ "' to the Twitter query").required(false)
			.dynamic(true)
			.addValidator(StandardValidators.NON_EMPTY_VALIDATOR).build();
}
 
開發者ID:simonellistonball,項目名稱:nifi-GetTwitterWithProxy,代碼行數:13,代碼來源:GetTwitterWithProxy.java

示例11: getSupportedDynamicPropertyDescriptor

import org.apache.nifi.processor.util.StandardValidators; //導入依賴的package包/類
@Override
protected PropertyDescriptor getSupportedDynamicPropertyDescriptor(final String propertyDescriptorName) {
    return new PropertyDescriptor.Builder()
            .name(propertyDescriptorName)
            .required(false)
            .addValidator(StandardValidators.createAttributeExpressionLanguageValidator(AttributeExpression.ResultType.STRING, true))
            .addValidator(StandardValidators.ATTRIBUTE_KEY_PROPERTY_NAME_VALIDATOR)
            .expressionLanguageSupported(true)
            .dynamic(true)
            .build();
}
 
開發者ID:dstreev,項目名稱:nifi-processor-examples,代碼行數:12,代碼來源:GenerateRecordProcessor.java

示例12: getSupportedDynamicPropertyDescriptor

import org.apache.nifi.processor.util.StandardValidators; //導入依賴的package包/類
@Override
protected PropertyDescriptor getSupportedDynamicPropertyDescriptor(final String propertyDescriptorName) {
    return new PropertyDescriptor.Builder()
            .required(false)
            .name(propertyDescriptorName)
            .addValidator(StandardValidators.NON_EMPTY_VALIDATOR)
            .dynamic(true)
            .expressionLanguageSupported(true)
            .build();
}
 
開發者ID:jonathantelfer,項目名稱:nifi-neo4j,代碼行數:11,代碼來源:PutCypher.java

示例13: getSupportedDynamicPropertyDescriptor

import org.apache.nifi.processor.util.StandardValidators; //導入依賴的package包/類
/**
 * Returns a PropertyDescriptor for the given name. This is for the user to be able to define their own properties
 * which will be available as variables in the script
 *
 * @param propertyDescriptorName used to lookup if any property descriptors exist for that name
 * @return a PropertyDescriptor object corresponding to the specified dynamic property name
 */
@Override
protected PropertyDescriptor getSupportedDynamicPropertyDescriptor(final String propertyDescriptorName) {
    return new PropertyDescriptor.Builder()
            .name(propertyDescriptorName)
            .required(false)
            .addValidator(StandardValidators.NON_EMPTY_VALIDATOR)
            .expressionLanguageSupported(true)
            .dynamic(true)
            .build();
}
 
開發者ID:mattyb149,項目名稱:nifi-script-tester,代碼行數:18,代碼來源:ExecuteScript.java


注:本文中的org.apache.nifi.processor.util.StandardValidators類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。