Enum ZugferdVersionType

  • All Implemented Interfaces:
    Serializable, Comparable<ZugferdVersionType>

    public enum ZugferdVersionType
    extends Enum<ZugferdVersionType>
     <?xml version="1.0" encoding="UTF-8"?><p xmlns:p567934_="urn:jaxb.jvnet.org:plugin:inheritance" xmlns:p643558_="https://jakarta.ee/xml/ns/jaxb" xmlns:tns="http://schema.webpdf.de/1.0/operation" xmlns:xs="http://www.w3.org/2001/XMLSchema">Used to define the version of the ZUGFeRD XML file that should be embedded with "xmlFile". Versions
                         1.0, 2.0, 2.1.x and 2.2 are supported. Only the "Comfort" profile is available for version 1.0.
                         Meanwhile, the "Minimum", "Basic WL", "Basic", "EN16931" (Comfort), and "Extended" profiles are
                         supported for version 2.0.
                     </p>
     
     <?xml version="1.0" encoding="UTF-8"?><p xmlns:p567934_="urn:jaxb.jvnet.org:plugin:inheritance" xmlns:p643558_="https://jakarta.ee/xml/ns/jaxb" xmlns:tns="http://schema.webpdf.de/1.0/operation" xmlns:xs="http://www.w3.org/2001/XMLSchema"><b>Note:</b>
                         Since version 2.x, the referenced profile "XRECHNUNG" is additionally available. This profile has
                         been included specifically to include invoices for Germany, based on and under the sole
                         responsibility of KoSIT, Germany's central coordination agency for IT's e-invoice CIUS "XRechnung".
                         It is defined as the Standard for electronic invoices issued to public administrations, and
                         essentially adds specific business rules to EN 16931 in order to comply with national laws and
                         regulations.</p>
     
     <?xml version="1.0" encoding="UTF-8"?><p xmlns:p567934_="urn:jaxb.jvnet.org:plugin:inheritance" xmlns:p643558_="https://jakarta.ee/xml/ns/jaxb" xmlns:tns="http://schema.webpdf.de/1.0/operation" xmlns:xs="http://www.w3.org/2001/XMLSchema"><b>Note:</b>
                         Since version 2.1.1 ZUGFeRD and Factur-X are technically identical and both formats use Factur-X as
                         common identification.</p>
     
     <?xml version="1.0" encoding="UTF-8"?><p xmlns:p567934_="urn:jaxb.jvnet.org:plugin:inheritance" xmlns:p643558_="https://jakarta.ee/xml/ns/jaxb" xmlns:tns="http://schema.webpdf.de/1.0/operation" xmlns:xs="http://www.w3.org/2001/XMLSchema">
                         List of versions with the corresponding profiles:
                         <ul><li>v10Comfort</li><li>v20Minimum</li><li>v20BasicWL</li><li>v20Basic</li><li>v20EN16931</li><li>v20Extended</li><li>v21Minimum</li><li>v21BasicWL</li><li>v21Basic</li><li>v21EN16931</li><li>v21Extended</li><li>v21XRechnung</li><li>v22Minimum</li><li>v22BasicWL</li><li>v22Basic</li><li>v22EN16931</li><li>v22Extended</li><li>v22XRechnung</li></ul></p>
     

    Java class for ZugferdVersionType

    .

    The following schema fragment specifies the expected content contained within this class.

    
     <simpleType name="ZugferdVersionType">
       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
         <enumeration value="v10Comfort"/>
         <enumeration value="v20Minimum"/>
         <enumeration value="v20BasicWL"/>
         <enumeration value="v20Basic"/>
         <enumeration value="v20EN16931"/>
         <enumeration value="v20Extended"/>
         <enumeration value="v21Minimum"/>
         <enumeration value="v21BasicWL"/>
         <enumeration value="v21Basic"/>
         <enumeration value="v21EN16931"/>
         <enumeration value="v21Extended"/>
         <enumeration value="v21XRechnung"/>
         <enumeration value="v22Minimum"/>
         <enumeration value="v22BasicWL"/>
         <enumeration value="v22Basic"/>
         <enumeration value="v22EN16931"/>
         <enumeration value="v22Extended"/>
         <enumeration value="v22XRechnung"/>
       </restriction>
     </simpleType>
     
    • Method Detail

      • values

        public static ZugferdVersionType[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (ZugferdVersionType c : ZugferdVersionType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static ZugferdVersionType valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • value

        public String value()
        Gets the value associated to the enum constant.
        Returns:
        The value linked to the enum.
      • fromValue

        public static ZugferdVersionType fromValue​(String v)
        Gets the enum associated to the value passed as parameter.
        Parameters:
        v - The value to get the enum from.
        Returns:
        The enum which corresponds to the value, if it exists.
        Throws:
        IllegalArgumentException - If no value matches in the enum declaration.