Class 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
    • Constructor Detail

      • AsposeSimpleDataAdapter

        public AsposeSimpleDataAdapter​(Map<String,​String> values)
        Parameters:
        values - Values for replacing placeholders in the document.
    • Method Detail

      • getFieldValuesMe

        public List<String[]> getFieldValuesMe​(String fieldName)
      • replaceValue

        public String replaceValue​(String fieldName,
                                   de.xima.aspose.processor.interfaces.IDataAdapter dataAdapter)
        Specified by:
        replaceValue in interface de.xima.aspose.processor.interfaces.IReplacer
      • getPatternList

        public List<Pattern> getPatternList()
        Specified by:
        getPatternList in interface de.xima.aspose.processor.interfaces.IReplacer
      • matchPlaceholder

        public boolean matchPlaceholder​(String text)
        Specified by:
        matchPlaceholder in interface de.xima.aspose.processor.interfaces.IReplacer
      • getFieldValues

        public List<String[]> getFieldValues​(String fieldName)
        Specified by:
        getFieldValues in interface de.xima.aspose.processor.interfaces.IDataAdapter
      • hasField

        public boolean hasField​(String fieldName)
        Specified by:
        hasField in interface de.xima.aspose.processor.interfaces.IDataAdapter
      • getFieldValuesMap

        public Map<String,​List<String[]>> getFieldValuesMap()
        Specified by:
        getFieldValuesMap in interface de.xima.aspose.processor.interfaces.IDataAdapter
      • isElementLooped

        public boolean isElementLooped​(String elementName)
        Specified by:
        isElementLooped in interface de.xima.aspose.processor.interfaces.IDataAdapter
      • loopCount

        public int loopCount​(String elementName)
        Specified by:
        loopCount in interface de.xima.aspose.processor.interfaces.IDataAdapter
      • getMetaDataMap

        public Map<String,​String> getMetaDataMap()
        Specified by:
        getMetaDataMap in interface de.xima.aspose.processor.interfaces.IDataAdapter
      • resolveAliasName

        public String resolveAliasName​(String alias)
        Specified by:
        resolveAliasName in interface de.xima.aspose.processor.interfaces.IDataAdapter
      • getStringsAsVal

        public String[] getStringsAsVal​(String... val)
        Specified by:
        getStringsAsVal in interface de.xima.aspose.processor.interfaces.IDataAdapter
      • getFieldOptions

        public HashMap<String,​HashMap<String,​String>> getFieldOptions​(String identifier,
                                                                                  boolean asAlias)
        Specified by:
        getFieldOptions in interface de.xima.aspose.processor.interfaces.IDataAdapter
      • asStringValue

        public String asStringValue​(List<String[]> value)
        Specified by:
        asStringValue in interface de.xima.aspose.processor.interfaces.IDataAdapter
      • asStringValue

        public String asStringValue​(String[] value)
        Specified by:
        asStringValue in interface de.xima.aspose.processor.interfaces.IDataAdapter