Package org.xwiki.filter.descriptor
Class AbstractFilterStreamDescriptor
- java.lang.Object
-
- org.xwiki.filter.descriptor.AbstractFilterStreamDescriptor
-
- All Implemented Interfaces:
FilterStreamDescriptor
- Direct Known Subclasses:
CompositeFilterStreamDescriptor,DefaultFilterStreamBeanDescriptor
public abstract class AbstractFilterStreamDescriptor extends Object implements FilterStreamDescriptor
- Since:
- 6.2M1
- Version:
- $Id: 74ef985030fa0b3a22bcc2c1be27a9eecccc6736 $
-
-
Field Summary
Fields Modifier and Type Field Description protected StringdescriptionThe description of the macro.protected Stringnameprotected Map<String,FilterStreamPropertyDescriptor<?>>parameterDescriptorMapA map containing theFilterStreamPropertyDescriptorfor each parameters supported for this filter.
-
Constructor Summary
Constructors Constructor Description AbstractFilterStreamDescriptor(String name, String description)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetDescription()StringgetName()Collection<FilterStreamPropertyDescriptor<?>>getProperties()<T> FilterStreamPropertyDescriptor<T>getPropertyDescriptor(String propertyName)Return descriptor for the provided property name.
-
-
-
Field Detail
-
description
protected String description
The description of the macro.
-
parameterDescriptorMap
protected Map<String,FilterStreamPropertyDescriptor<?>> parameterDescriptorMap
A map containing theFilterStreamPropertyDescriptorfor each parameters supported for this filter.The
Mapkeys are lower cased for easier case insensitive search, to get the "real" name of the property useFilterStreamPropertyDescriptor.getName().
-
-
Method Detail
-
getName
public String getName()
- Specified by:
getNamein interfaceFilterStreamDescriptor- Returns:
- human readable name of filter input source type.
-
getDescription
public String getDescription()
- Specified by:
getDescriptionin interfaceFilterStreamDescriptor- Returns:
- the description of the filter
-
getPropertyDescriptor
public <T> FilterStreamPropertyDescriptor<T> getPropertyDescriptor(String propertyName)
Description copied from interface:FilterStreamDescriptorReturn descriptor for the provided property name. The property name is not case sensitive.- Specified by:
getPropertyDescriptorin interfaceFilterStreamDescriptor- Type Parameters:
T- the type of value associated to this property- Parameters:
propertyName- the name of the property- Returns:
- the descriptor of the property.
-
getProperties
public Collection<FilterStreamPropertyDescriptor<?>> getProperties()
- Specified by:
getPropertiesin interfaceFilterStreamDescriptor- Returns:
- the properties of filter.
-
-