@Named("Single word") @Description("Filters single word values from multiple word values.") @Categorized(FilterCategory.class) @Deprecated public class SingleWordFilter implements Filter<ValidationCategory> {
@Override public ComponentSuperCategory getComponentSuperCategory() { final Categorized categorized = getAnnotation(Categorized.class); Class<? extends ComponentSuperCategory> superCategoryClass; if (categorized == null) { superCategoryClass = getDefaultComponentSuperCategoryClass(); } else { superCategoryClass = categorized.superCategory(); if (superCategoryClass == ComponentSuperCategory.class) { superCategoryClass = getDefaultComponentSuperCategoryClass(); } } return ReflectionUtils.newInstance(superCategoryClass); }
@Override public Set<ComponentCategory> getComponentCategories() { final Categorized categorized = getAnnotation(Categorized.class); if (categorized == null) { return Collections.emptySet(); } final Class<? extends ComponentCategory>[] value = categorized.value(); if (value == null || value.length == 0) { return Collections.emptySet(); } final Set<ComponentCategory> result = new HashSet<>(); for (final Class<? extends ComponentCategory> categoryClass : value) { if (categoryClass != ComponentCategory.class) { final ComponentCategory category = ReflectionUtils.newInstance(categoryClass); result.add(category); } } return result; }
@Named("Expression language (EL) transformer") @Description("Generates a column based on an EL expression") @Categorized({ ScriptingCategory.class }) public class ELTransformer implements Transformer {
@Named("XML decoder") @Description("Decodes XML content into plain text") @Categorized(EncodingCategory.class) public class XmlDecoderTransformer implements Transformer {
@Named("Convert number to IP") @Categorized(NetworkToolsCategory.class) @Description("Converts a number representation of an IPv4 address to it's regular string representation.") public class NumberToIpConverter implements Transformer {
@Named("HTML encoder") @Description("Encodes/escapes plain text into HTML content") @Categorized(EncodingCategory.class) public class HtmlEncoderTransformer implements Transformer {
@Named("Convert IP to number") @Categorized(NetworkToolsCategory.class) @Description( "Converts an IPv4 string to a number value, which makes it appropriate for eg. persisting in a number column.")
@Named("Resolve hostname") @Categorized(NetworkToolsCategory.class) @Description("Resolves the IP of a hostname") public class ResolveHostnameTransformer implements Transformer {
@Categorized({ ContactDataCategory.class }) @Deprecated public class EmailStandardizerTransformer implements Transformer {
@Named("URL parser") @Description("Retrieve the individual parts of an URL, including protocol, domain, port, path and querystring.") @Categorized({ TextCategory.class }) public class UrlStandardizerTransformer implements Transformer { private static final Logger logger = LoggerFactory.getLogger(UrlStandardizerTransformer.class);
@Named("Format date") @Description("Allows you to format a date as a string by applying your own date format.") @Categorized(DateAndTimeCategory.class) public class FormatDateTransformer implements Transformer { @Configured("Date") InputColumn<Date> dateColumn; @Configured String dateFormat = "yyyy-MM-dd HH:mm:ss"; @Override public OutputColumns getOutputColumns() { return new OutputColumns(String.class, dateColumn.getName() + " (formatted)"); } @Override public String[] transform(final InputRow inputRow) { final Date date = inputRow.getValue(dateColumn); if (date == null) { return new String[] { null }; } final SimpleDateFormat format = new SimpleDateFormat(dateFormat); return new String[] { format.format(date) }; } }
@Categorized(DateAndTimeCategory.class) public class DateToAgeTransformer implements Transformer {
@Named("Compose & write JSON document") @Description("Creates a string representation of a data structure as a JSON (JavaScript Object Notation) document") @Categorized(DataStructuresCategory.class) public class ComposeJsonTransformer implements Transformer {
@Categorized({ ContactDataCategory.class }) @Deprecated public class NameStandardizerTransformer implements Transformer {
@Named("XML encoder") @Description("Encodes/escapes plain text into XML content") @Categorized(EncodingCategory.class) public class XmlEncoderTransformer implements Transformer {
@Named("Read & parse JSON document") @Description("Parses a JSON document (as a string) and materializes the data structure it represents") @Categorized(DataStructuresCategory.class) public class ParseJsonTransformer implements Transformer {
@Named("Hash value") @Description("It creates a hash from specified input. ") @Categorized(EncodingCategory.class) public class HashTransformer implements Transformer { @Configured
@Categorized(DataStructuresCategory.class) public class ReadFromListTransformer implements Transformer {
@Named("URL encoder") @Description("Encodes/escapes a URL or part of a URL") @Categorized(EncodingCategory.class) public class UrlEncoderTransformer implements Transformer {