org.apache.poi.xwpf.converter.core.styles
Class AbstractValueProvider<Value,XWPFElement>

java.lang.Object
  extended by org.apache.poi.xwpf.converter.core.styles.AbstractValueProvider<Value,XWPFElement>
All Implemented Interfaces:
IValueProvider<Value,XWPFElement>
Direct Known Subclasses:
AbstractParagraphRunValueProvider, AbstractParagraphValueProvider, AbstractRunValueProvider, AbstractTableCellValueProvider, AbstractTableRowExValueProvider, AbstractTableRowValueProvider, AbstractTableValueProvider

public abstract class AbstractValueProvider<Value,XWPFElement>
extends Object
implements IValueProvider<Value,XWPFElement>


Constructor Summary
AbstractValueProvider()
           
 
Method Summary
protected abstract  org.openxmlformats.schemas.wordprocessingml.x2006.main.CTStyle getDefaultStyle(XWPFElement element, XWPFStylesDocument stylesDocument)
           
protected  Value getDefaultValue(XWPFElement element, XWPFStylesDocument stylesDocument)
           
protected  String getKey(XWPFElement element, XWPFStylesDocument stylesDocument, String styleId, org.openxmlformats.schemas.wordprocessingml.x2006.main.STTblStyleOverrideType.Enum type)
           
protected  StringBuilder getKeyBuffer(XWPFElement element, XWPFStylesDocument stylesDocument, String styleId, org.openxmlformats.schemas.wordprocessingml.x2006.main.STTblStyleOverrideType.Enum type)
           
protected abstract  org.apache.poi.xwpf.usermodel.XWPFTableCell getParentTableCell(XWPFElement element)
          Returns the table cell which is the parent of the XWPF element and null otherwise
protected  Value getStaticValue(XWPFElement element, XWPFStylesDocument stylesDocument)
           
protected abstract  String[] getStyleID(XWPFElement element)
           
 Value getValue(XWPFElement element, XWPFStylesDocument stylesDocument)
           
protected  Value getValueFromDefaultStyle(XWPFElement element, XWPFStylesDocument stylesDocument)
           
protected abstract  Value getValueFromDocDefaultsStyle(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTDocDefaults docDefaults, XWPFStylesDocument stylesDocument)
           
protected  Value getValueFromDocDefaultsStyle(XWPFElement element, XWPFStylesDocument stylesDocument)
           
abstract  Value getValueFromElement(XWPFElement element, XWPFStylesDocument stylesDocument)
           
protected abstract  Value getValueFromStyle(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTStyle style, XWPFStylesDocument stylesDocument)
           
 Object getValueFromStyleIds(XWPFElement element, XWPFStylesDocument stylesDocument, Object defaultValue)
           
 Value getValueFromStyles(XWPFElement element, XWPFStylesDocument stylesDocument)
           
protected abstract  Value getValueFromTableStyle(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTblStylePr tblStylePr, XWPFStylesDocument stylesDocument)
           
 Value internalGetValue(XWPFElement element, XWPFStylesDocument stylesDocument)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractValueProvider

public AbstractValueProvider()
Method Detail

getValue

public Value getValue(XWPFElement element,
                      XWPFStylesDocument stylesDocument)
Specified by:
getValue in interface IValueProvider<Value,XWPFElement>

internalGetValue

public Value internalGetValue(XWPFElement element,
                              XWPFStylesDocument stylesDocument)

getValueFromStyles

public Value getValueFromStyles(XWPFElement element,
                                XWPFStylesDocument stylesDocument)

getValueFromStyleIds

public Object getValueFromStyleIds(XWPFElement element,
                                   XWPFStylesDocument stylesDocument,
                                   Object defaultValue)

getValueFromElement

public abstract Value getValueFromElement(XWPFElement element,
                                          XWPFStylesDocument stylesDocument)

getDefaultValue

protected Value getDefaultValue(XWPFElement element,
                                XWPFStylesDocument stylesDocument)

getStaticValue

protected Value getStaticValue(XWPFElement element,
                               XWPFStylesDocument stylesDocument)

getKey

protected String getKey(XWPFElement element,
                        XWPFStylesDocument stylesDocument,
                        String styleId,
                        org.openxmlformats.schemas.wordprocessingml.x2006.main.STTblStyleOverrideType.Enum type)

getKeyBuffer

protected StringBuilder getKeyBuffer(XWPFElement element,
                                     XWPFStylesDocument stylesDocument,
                                     String styleId,
                                     org.openxmlformats.schemas.wordprocessingml.x2006.main.STTblStyleOverrideType.Enum type)

getStyleID

protected abstract String[] getStyleID(XWPFElement element)

getValueFromStyle

protected abstract Value getValueFromStyle(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTStyle style,
                                           XWPFStylesDocument stylesDocument)

getValueFromTableStyle

protected abstract Value getValueFromTableStyle(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTTblStylePr tblStylePr,
                                                XWPFStylesDocument stylesDocument)

getValueFromDefaultStyle

protected Value getValueFromDefaultStyle(XWPFElement element,
                                         XWPFStylesDocument stylesDocument)

getValueFromDocDefaultsStyle

protected Value getValueFromDocDefaultsStyle(XWPFElement element,
                                             XWPFStylesDocument stylesDocument)

getValueFromDocDefaultsStyle

protected abstract Value getValueFromDocDefaultsStyle(org.openxmlformats.schemas.wordprocessingml.x2006.main.CTDocDefaults docDefaults,
                                                      XWPFStylesDocument stylesDocument)

getDefaultStyle

protected abstract org.openxmlformats.schemas.wordprocessingml.x2006.main.CTStyle getDefaultStyle(XWPFElement element,
                                                                                                  XWPFStylesDocument stylesDocument)

getParentTableCell

protected abstract org.apache.poi.xwpf.usermodel.XWPFTableCell getParentTableCell(XWPFElement element)
Returns the table cell which is the parent of the XWPF element and null otherwise

Parameters:
element -
Returns:


Copyright © 2013. All rights reserved.