Class OperationXslTransformationFile


  • public class OperationXslTransformationFile
    extends Object
    This element defines a file necessary for the transformation, which is passed \"Base64 encoded\". This element can be used with `<resources>` or `<visualization>`. In the case of `<resources>`, this is a file that defines, for example, an XLST stylesheet or a CSS resource. In the case of an X invoice and the parent `<visualization>` it defines a file (XLST stylesheet) which defines a different layout for the PDF output.
    • Constructor Detail

      • OperationXslTransformationFile

        public OperationXslTransformationFile()
    • Method Detail

      • getFileName

        @Nullable
        public @Nullable String getFileName()
        The filename of the file. This is the name under which the resource can be found again and is especially important for resources that are referenced from other files passed here via this name. (For example, the name of a CSS stylesheet that is referenced by name from an XSLT stylesheet).
        Returns:
        fileName
      • setFileName

        public void setFileName​(String fileName)
      • getFormat

        @Nullable
        public @Nullable OperationXslTransformationFile.FormatEnum getFormat()
        The type of the resource passed * xlst = An XSLT stylesheet to be used for the transformation. * other = Any other resource that is needed for the transformation. For example, this can be a CSS stylesheet, which is used by an output file of a transformation if it results in HTML output. **Important:** The order of the resources can be important if multiple transformations are to be performed, i.e. multiple resources of the format \"xlst\" are passed. The transformations are performed in the order in which they are passed, in which case each transformation uses the output of the previous transformation as the starting point for its own transformation.
        Returns:
        format
      • getSource

        @Nullable
        public @Nullable OperationXslTransformationFile.SourceEnum getSource()
        Selects the data source for the hereby expressed resource. Possible values are: * value = The element's value shall contain the BASE64 encoded data. * uri = The data shall be located at the given uri.
        Returns:
        source
      • getUri

        @Nullable
        public @Nullable String getUri()
        The uri the data shall be located at. (This shall only have effect, if the \"source\" is \"uri\".)
        Returns:
        uri
      • setUri

        public void setUri​(String uri)
      • getValue

        @Nullable
        public @org.jetbrains.annotations.Nullable byte[] getValue()
        Get value
        Returns:
        value
      • setValue

        public void setValue​(byte[] value)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object