Enum DocMdpType

  • All Implemented Interfaces:
    Serializable, Comparable<DocMdpType>

    public enum DocMdpType
    extends Enum<DocMdpType>
     <?xml version="1.0" encoding="UTF-8"?><p xmlns="http://schema.webpdf.de/1.0/extraction/info" xmlns:xs="http://www.w3.org/2001/XMLSchema">A document "Modification Detection and Prevention" may be set, that defines which modifications of the document are allowed and which modifications would render the signature invalid.
                         <ul><li>none = The document is unprotected - modify it as you please.</li><li>noChangesAllowed = Any modifications of the document would render the signatures invalid.</li><li>formFillingSignatures = You may fill in forms and further sign the document.</li><li>formFillingSignaturesAndAnnotations = Form filling, signing and adding annotations are allowed.</li></ul></p>
     

    Java class for DocMdpType

    .

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

    
     <simpleType name="DocMdpType">
       <restriction base="{http://www.w3.org/2001/XMLSchema}string">
         <enumeration value="none"/>
         <enumeration value="noChangesAllowed"/>
         <enumeration value="formFillingSignatures"/>
         <enumeration value="formFillingSignaturesAnnotations"/>
       </restriction>
     </simpleType>
     
    • Enum Constant Detail

      • NO_CHANGES_ALLOWED

        public static final DocMdpType NO_CHANGES_ALLOWED
      • FORM_FILLING_SIGNATURES

        public static final DocMdpType FORM_FILLING_SIGNATURES
      • FORM_FILLING_SIGNATURES_ANNOTATIONS

        public static final DocMdpType FORM_FILLING_SIGNATURES_ANNOTATIONS
    • Method Detail

      • values

        public static DocMdpType[] 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 (DocMdpType c : DocMdpType.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static DocMdpType 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 DocMdpType 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.