Klasse FacturXSettings

java.lang.Object
com.inet.report.FacturXSettings
Alle implementierten Schnittstellen:
NodeParser, com.inet.report.ReferenceHolder, Serializable

public class FacturXSettings extends Object implements Serializable, com.inet.report.ReferenceHolder, NodeParser
Settings for the FacturX plugin to generate a PDF file with a FacturX attachment.
Seit:
20.10
Siehe auch:
  • Methodendetails

    • setProfile

      public void setProfile(@Nonnull com.inet.report.renderer.factur.model.ProfileLevel profile)
      Set the profile of the FacturX.
      Parameter:
      profile - the new profile
      Seit:
      20.10
    • getProfile

      public @Nonnull com.inet.report.renderer.factur.model.ProfileLevel getProfile()
      Get the profile of the FacturX.
      Gibt zurück:
      the profile
      Seit:
      20.10
    • put

      public void put(com.inet.report.renderer.factur.model.FacturModelNode node, Field field)
      Put a mapping between a FacturX node and a field from the report.
      Parameter:
      node - the target FacturX node
      field - the value source
      Seit:
      20.10
    • getFields

      public HashMap<String,Field> getFields()
      Provides a map with all available field mappings.
      Gibt zurück:
      a map with all field mappings
      Seit:
      20.10
    • remove

      public void remove(com.inet.report.renderer.factur.model.FacturModelNode node)
      Remove a mapping between a FacturX node and a field from the report.
      Parameter:
      node - the FacturX node
      Seit:
      20.10
    • clearMappings

      public void clearMappings()
      Removes all mappings between FacturX nodes and fields from the report.
      Seit:
      20.10
    • setDataGroup

      public void setDataGroup(@Nullable GroupField group)
      Set for which group a line in the invoice should be created. Null means for every visible detail area.
      Parameter:
      group - the group
      Seit:
      20.10
    • getDataGroup

      public GroupField getDataGroup()
      Get the group for which a line in the invoice should be created. Null means for every visible detail area.
      Gibt zurück:
      the group or null
      Seit:
      20.10
    • parseElement

      public NodeParser parseElement(com.inet.report.parser.XMLTag group, String tag, Attributes atts, Map<String,Object> parserMap) throws FatalParserException
      FOR INTERNAL USE ONLY Internal method for reading report XML

      Parses an XML node with the given information, and returns either a sub-element which was created as a result, or null if no sub-element was created, i.e. the information was applied to the ReportComponent itself. Note that the parsing is highly tolerant, i.e. exceptions are intercepted and suppressed if at all possible.

      Angegeben von:
      parseElement in Schnittstelle NodeParser
      Parameter:
      group - XMLTag of the current node to be parsed, or null if there is no such current group. An XMLTag is a group of nodes bundled together, usually it is a Properties node such as CommonProperties, BorderProperties, etc.
      tag - The XMLTag to be parsed
      atts - The set of attributes in the current XMLTag
      parserMap - The map of current Parser.
      Gibt zurück:
      The NodeParser sub-element if one needed to be created, or null if none was created.
      Löst aus:
      FatalParserException - if an exception occurs which causes the report to not be able to be read: causes the abortion of the reading of the report.
    • parseText

      public void parseText(String text, Map<String,Object> parserMap)
      FOR INTERNAL USE ONLY Internal method for reading report XML

      This method is called if text was encountered in the context of this node. (Examples would be a formula's text or a text element's text)

      Angegeben von:
      parseText in Schnittstelle NodeParser
      Parameter:
      text - text encountered and to be stored
      parserMap - The map of current Parser.
    • parseEndElement

      public void parseEndElement(com.inet.report.parser.XMLTag group, String tag, Map<String,Object> parserMap) throws FatalParserException
      FOR INTERNAL USE ONLY Internal method for reading report XML

      Receive notification of the end of an XML tag.

      Angegeben von:
      parseEndElement in Schnittstelle NodeParser
      Parameter:
      group - XMLTag of the current node to be parsed, or null if there is no such current group.
      tag - The XMLTag to be parsed
      parserMap - The map of current Parser.
      Löst aus:
      FatalParserException - if an exception occurs which causes the report to not be able to be read: causes the abortion of the reading of the report.
    • isDOMParser

      public boolean isDOMParser()
      FOR INTERNAL USE ONLY Internal method for reading report XML

      Returns whether this node is to be read via a DOM parser.

      Angegeben von:
      isDOMParser in Schnittstelle NodeParser
      Gibt zurück:
      true if this node is to be read via a DOM parser, false otherwise.
    • parseDOM

      public void parseDOM(Node node, Map<String,Object> parserMap) throws FatalParserException
      FOR INTERNAL USE ONLY Internal method for reading report XML

      Parses the node.

      Angegeben von:
      parseDOM in Schnittstelle NodeParser
      Parameter:
      node - the node
      parserMap - The map of current Parser.
      Löst aus:
      FatalParserException - if an exception occurs which causes the report to not be able to be read: causes the abortion of the reading of the report.
    • addReferencedObject

      public void addReferencedObject(com.inet.report.ReferencedObject reference)
      FOR INTERNAL USE ONLY
      Angegeben von:
      addReferencedObject in Schnittstelle com.inet.report.ReferenceHolder
    • removeReferencedObject

      public void removeReferencedObject(com.inet.report.ReferencedObject reference)
      FOR INTERNAL USE ONLY
      Angegeben von:
      removeReferencedObject in Schnittstelle com.inet.report.ReferenceHolder
    • getReferencedObjectCount

      public int getReferencedObjectCount()
      FOR INTERNAL USE ONLY
      Angegeben von:
      getReferencedObjectCount in Schnittstelle com.inet.report.ReferenceHolder
    • getReferencedObjects

      public com.inet.report.ReferencedObject[] getReferencedObjects()
      FOR INTERNAL USE ONLY
      Angegeben von:
      getReferencedObjects in Schnittstelle com.inet.report.ReferenceHolder
    • setReferences

      public void setReferences()
      FOR INTERNAL USE ONLY
      Angegeben von:
      setReferences in Schnittstelle com.inet.report.ReferenceHolder
    • resetReferences

      public void resetReferences()
      FOR INTERNAL USE ONLY
      Angegeben von:
      resetReferences in Schnittstelle com.inet.report.ReferenceHolder
    • getRealReferencedObjectCount

      public int getRealReferencedObjectCount()
      FOR INTERNAL USE ONLY
      Angegeben von:
      getRealReferencedObjectCount in Schnittstelle com.inet.report.ReferenceHolder