Package de.xima.fc.word
Class AsposeSimpleDataAdapter
- java.lang.Object
-
- de.xima.fc.word.AsposeSimpleDataAdapter
-
- All Implemented Interfaces:
de.xima.aspose.processor.interfaces.IDataAdapter
,de.xima.aspose.processor.interfaces.IReplacer
public class AsposeSimpleDataAdapter extends Object implements de.xima.aspose.processor.interfaces.IDataAdapter, de.xima.aspose.processor.interfaces.IReplacer
-
-
Field Summary
Fields Modifier and Type Field Description static String
MATCHER_DYNAMIC_FIELD_REF
-
Constructor Summary
Constructors Constructor Description AsposeSimpleDataAdapter(HashMap<String,String> values)
Deprecated.AsposeSimpleDataAdapter(Map<String,String> values)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
asStringValue(String[] value)
String
asStringValue(List<String[]> value)
HashMap<String,HashMap<String,String>>
getFieldOptions(String identifier, boolean asAlias)
List<String[]>
getFieldValues(String fieldName)
Map<String,List<String[]>>
getFieldValuesMap()
List<String[]>
getFieldValuesMe(String fieldName)
Map<String,String>
getMetaDataMap()
List<Pattern>
getPatternList()
String[]
getStringsAsVal(String... val)
boolean
hasField(String fieldName)
boolean
isElementLooped(String elementName)
int
loopCount(String elementName)
boolean
matchPlaceholder(String text)
String
replaceValue(String fieldName, de.xima.aspose.processor.interfaces.IDataAdapter dataAdapter)
String
resolveAliasName(String alias)
-
-
-
Field Detail
-
MATCHER_DYNAMIC_FIELD_REF
public static final String MATCHER_DYNAMIC_FIELD_REF
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AsposeSimpleDataAdapter
public AsposeSimpleDataAdapter(Map<String,String> values)
- Parameters:
values
- Values for replacing placeholders in the document.
-
AsposeSimpleDataAdapter
@Deprecated public AsposeSimpleDataAdapter(HashMap<String,String> values)
Deprecated.- Parameters:
values
- Values for replacing placeholders in the document.
-
-
Method Detail
-
replaceValue
public String replaceValue(String fieldName, de.xima.aspose.processor.interfaces.IDataAdapter dataAdapter)
- Specified by:
replaceValue
in interfacede.xima.aspose.processor.interfaces.IReplacer
-
getPatternList
public List<Pattern> getPatternList()
- Specified by:
getPatternList
in interfacede.xima.aspose.processor.interfaces.IReplacer
-
matchPlaceholder
public boolean matchPlaceholder(String text)
- Specified by:
matchPlaceholder
in interfacede.xima.aspose.processor.interfaces.IReplacer
-
getFieldValues
public List<String[]> getFieldValues(String fieldName)
- Specified by:
getFieldValues
in interfacede.xima.aspose.processor.interfaces.IDataAdapter
-
hasField
public boolean hasField(String fieldName)
- Specified by:
hasField
in interfacede.xima.aspose.processor.interfaces.IDataAdapter
-
getFieldValuesMap
public Map<String,List<String[]>> getFieldValuesMap()
- Specified by:
getFieldValuesMap
in interfacede.xima.aspose.processor.interfaces.IDataAdapter
-
isElementLooped
public boolean isElementLooped(String elementName)
- Specified by:
isElementLooped
in interfacede.xima.aspose.processor.interfaces.IDataAdapter
-
loopCount
public int loopCount(String elementName)
- Specified by:
loopCount
in interfacede.xima.aspose.processor.interfaces.IDataAdapter
-
getMetaDataMap
public Map<String,String> getMetaDataMap()
- Specified by:
getMetaDataMap
in interfacede.xima.aspose.processor.interfaces.IDataAdapter
-
resolveAliasName
public String resolveAliasName(String alias)
- Specified by:
resolveAliasName
in interfacede.xima.aspose.processor.interfaces.IDataAdapter
-
getStringsAsVal
public String[] getStringsAsVal(String... val)
- Specified by:
getStringsAsVal
in interfacede.xima.aspose.processor.interfaces.IDataAdapter
-
getFieldOptions
public HashMap<String,HashMap<String,String>> getFieldOptions(String identifier, boolean asAlias)
- Specified by:
getFieldOptions
in interfacede.xima.aspose.processor.interfaces.IDataAdapter
-
asStringValue
public String asStringValue(List<String[]> value)
- Specified by:
asStringValue
in interfacede.xima.aspose.processor.interfaces.IDataAdapter
-
-