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 String
description
The description of the macro.protected String
name
protected Map<String,FilterStreamPropertyDescriptor<?>>
parameterDescriptorMap
A map containing theFilterStreamPropertyDescriptor
for 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 String
getDescription()
String
getName()
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 theFilterStreamPropertyDescriptor
for each parameters supported for this filter.The
Map
keys 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:
getName
in interfaceFilterStreamDescriptor
- Returns:
- human readable name of filter input source type.
-
getDescription
public String getDescription()
- Specified by:
getDescription
in interfaceFilterStreamDescriptor
- Returns:
- the description of the filter
-
getPropertyDescriptor
public <T> FilterStreamPropertyDescriptor<T> getPropertyDescriptor(String propertyName)
Description copied from interface:FilterStreamDescriptor
Return descriptor for the provided property name. The property name is not case sensitive.- Specified by:
getPropertyDescriptor
in 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:
getProperties
in interfaceFilterStreamDescriptor
- Returns:
- the properties of filter.
-
-