Enum Preview.PreviewAttribute

  • All Implemented Interfaces:
    Comet3Attribute, java.io.Serializable, java.lang.Comparable<Preview.PreviewAttribute>
    Enclosing class:
    Preview

    public static enum Preview.PreviewAttribute
    extends java.lang.Enum<Preview.PreviewAttribute>
    implements Comet3Attribute
    Attributes for the Comet3 Preview type.
    CAUTION! Do not change the order of these attributes or add or remove attributes, otherwise the InDesign Comet Plug-Ins and other clients will misinterpret the data sent from the Publishing Server.
    Depending on the Preview-type (i.e. text, image or snippet), some of the fields have different semantics. Just ignore the Attribute names and use the getter and setter methods defined for the concrete implementations (TextPreview etc.).
    • Method Detail

      • values

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

        public static Preview.PreviewAttribute valueOf​(java.lang.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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null