@Component(value="ui_FormatterLoadFactory")
public class FormatterLoadFactory
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected org.springframework.context.ApplicationContext |
applicationContext |
protected java.util.Map<java.lang.String,java.util.function.Function<org.dom4j.Element,? extends Formatter>> |
FORMATTERS_MAP |
Constructor and Description |
---|
FormatterLoadFactory() |
Modifier and Type | Method and Description |
---|---|
Formatter<?> |
createFormatter(org.dom4j.Element element)
Creates a formatter from XML element.
|
boolean |
isFormatter(org.dom4j.Element element)
Checks if XML element is a formatter.
|
protected CollectionFormatter |
loadCollectionFormatter(org.dom4j.Element element) |
protected Formatter |
loadCustomFormatter(org.dom4j.Element element) |
protected DateFormatter |
loadDateFormatter(org.dom4j.Element element) |
protected NumberFormatter |
loadNumberFormatter(org.dom4j.Element element) |
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
protected org.springframework.context.ApplicationContext applicationContext
protected final java.util.Map<java.lang.String,java.util.function.Function<org.dom4j.Element,? extends Formatter>> FORMATTERS_MAP
@Autowired public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
@Nullable public Formatter<?> createFormatter(org.dom4j.Element element)
element
- XML elementpublic boolean isFormatter(org.dom4j.Element element)
element
- XML elementtrue
if the element is formatter, false
otherwiseprotected CollectionFormatter loadCollectionFormatter(org.dom4j.Element element)
protected Formatter loadCustomFormatter(org.dom4j.Element element)
protected DateFormatter loadDateFormatter(org.dom4j.Element element)
protected NumberFormatter loadNumberFormatter(org.dom4j.Element element)