Package com.inet.report
Class FacturXSettings
java.lang.Object
com.inet.report.FacturXSettings
- All Implemented Interfaces:
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.
- Since:
- 20.10
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddReferencedObject(com.inet.report.ReferencedObject reference) FOR INTERNAL USE ONLYvoidRemoves all mappings between FacturX nodes and fields from the report.Get the group for which a line in the invoice should be created.Provides a map with all available field mappings.@Nonnull com.inet.report.renderer.factur.model.ProfileLevelGet the profile of the FacturX.intFOR INTERNAL USE ONLYintFOR INTERNAL USE ONLYcom.inet.report.ReferencedObject[]FOR INTERNAL USE ONLYbooleanFOR INTERNAL USE ONLY Internal method for reading report XMLvoidFOR INTERNAL USE ONLY Internal method for reading report XMLparseElement(com.inet.report.parser.XMLTag group, String tag, Attributes atts, Map<String, Object> parserMap) FOR INTERNAL USE ONLY Internal method for reading report XMLvoidparseEndElement(com.inet.report.parser.XMLTag group, String tag, Map<String, Object> parserMap) FOR INTERNAL USE ONLY Internal method for reading report XMLvoidFOR INTERNAL USE ONLY Internal method for reading report XMLvoidPut a mapping between a FacturX node and a field from the report.voidremove(com.inet.report.renderer.factur.model.FacturModelNode node) Remove a mapping between a FacturX node and a field from the report.voidremoveReferencedObject(com.inet.report.ReferencedObject reference) FOR INTERNAL USE ONLYvoidFOR INTERNAL USE ONLYvoidsetDataGroup(@Nullable GroupField group) Set for which group a line in the invoice should be created.voidsetProfile(@Nonnull com.inet.report.renderer.factur.model.ProfileLevel profile) Set the profile of the FacturX.voidFOR INTERNAL USE ONLY
-
Method Details
-
setProfile
public void setProfile(@Nonnull @Nonnull com.inet.report.renderer.factur.model.ProfileLevel profile) Set the profile of the FacturX.- Parameters:
profile- the new profile- Since:
- 20.10
-
getProfile
@Nonnull public @Nonnull com.inet.report.renderer.factur.model.ProfileLevel getProfile()Get the profile of the FacturX.- Returns:
- the profile
- Since:
- 20.10
-
put
Put a mapping between a FacturX node and a field from the report.- Parameters:
node- the target FacturX nodefield- the value source- Since:
- 20.10
-
getFields
Provides a map with all available field mappings.- Returns:
- a map with all field mappings
- Since:
- 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.- Parameters:
node- the FacturX node- Since:
- 20.10
-
clearMappings
public void clearMappings()Removes all mappings between FacturX nodes and fields from the report.- Since:
- 20.10
-
setDataGroup
Set for which group a line in the invoice should be created. Null means for every visible detail area.- Parameters:
group- the group- Since:
- 20.10
-
getDataGroup
Get the group for which a line in the invoice should be created. Null means for every visible detail area.- Returns:
- the group or null
- Since:
- 20.10
-
parseElement
public NodeParser parseElement(com.inet.report.parser.XMLTag group, String tag, Attributes atts, Map<String, Object> parserMap) throws FatalParserExceptionFOR INTERNAL USE ONLY Internal method for reading report XMLParses 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.
- Specified by:
parseElementin interfaceNodeParser- Parameters:
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 parsedatts- The set of attributes in the current XMLTagparserMap- The map of current Parser.- Returns:
- The NodeParser sub-element if one needed to be created, or null if none was created.
- Throws:
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
FOR INTERNAL USE ONLY Internal method for reading report XMLThis 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)
- Specified by:
parseTextin interfaceNodeParser- Parameters:
text- text encountered and to be storedparserMap- The map of current Parser.
-
parseEndElement
public void parseEndElement(com.inet.report.parser.XMLTag group, String tag, Map<String, Object> parserMap) throws FatalParserExceptionFOR INTERNAL USE ONLY Internal method for reading report XMLReceive notification of the end of an XML tag.
- Specified by:
parseEndElementin interfaceNodeParser- Parameters:
group- XMLTag of the current node to be parsed, or null if there is no such current group.tag- The XMLTag to be parsedparserMap- The map of current Parser.- Throws:
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 XMLReturns whether this node is to be read via a DOM parser.
- Specified by:
isDOMParserin interfaceNodeParser- Returns:
- true if this node is to be read via a DOM parser, false otherwise.
-
parseDOM
FOR INTERNAL USE ONLY Internal method for reading report XMLParses the node.
- Specified by:
parseDOMin interfaceNodeParser- Parameters:
node- the nodeparserMap- The map of current Parser.- Throws:
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- Specified by:
addReferencedObjectin interfacecom.inet.report.ReferenceHolder
-
removeReferencedObject
public void removeReferencedObject(com.inet.report.ReferencedObject reference) FOR INTERNAL USE ONLY- Specified by:
removeReferencedObjectin interfacecom.inet.report.ReferenceHolder
-
getReferencedObjectCount
public int getReferencedObjectCount()FOR INTERNAL USE ONLY- Specified by:
getReferencedObjectCountin interfacecom.inet.report.ReferenceHolder
-
getReferencedObjects
public com.inet.report.ReferencedObject[] getReferencedObjects()FOR INTERNAL USE ONLY- Specified by:
getReferencedObjectsin interfacecom.inet.report.ReferenceHolder
-
setReferences
public void setReferences()FOR INTERNAL USE ONLY- Specified by:
setReferencesin interfacecom.inet.report.ReferenceHolder
-
resetReferences
public void resetReferences()FOR INTERNAL USE ONLY- Specified by:
resetReferencesin interfacecom.inet.report.ReferenceHolder
-
getRealReferencedObjectCount
public int getRealReferencedObjectCount()FOR INTERNAL USE ONLY- Specified by:
getRealReferencedObjectCountin interfacecom.inet.report.ReferenceHolder
-