com.groupdocs.parser

Interfaces

Classes

Exceptions

com.groupdocs.parser

Class ListItemOptions



  • public final class ListItemOptions
    extends Object

    Provides the options for a list item.

    • Field Detail

    • Constructor Detail

      • ListItemOptions

        public ListItemOptions(int style)

        Initializes a new instance of the ListItemOptions class.

        Parameters:
        style - A style of the item.
      • ListItemOptions

        public ListItemOptions(int style,
                       int depth)

        Initializes a new instance of the ListItemOptions class.

        Parameters:
        style - A style of the item.
        depth - A depth of the item.
      • ListItemOptions

        public ListItemOptions(int style,
                       int depth,
                       char bullet)

        Initializes a new instance of the ListItemOptions class.

        Parameters:
        style - A style of the item.
        depth - A depth of the item.
        bullet - A char that represents a bullet.
      • ListItemOptions

        public ListItemOptions(int style,
                       int depth,
                       char bullet,
                       String prefix,
                       String postfix)

        Initializes a new instance of the ListItemOptions class.

        Parameters:
        style - A style of the item.
        depth - A depth of the item.
        bullet - A char that represents a bullet.
        prefix - A prefix of the item.
        postfix - A postfix of the item.
    • Method Detail

      • getStyle

        public int getStyle()

        Gets a style of the item.

        Returns:
        A style of the item.
      • getDepth

        public int getDepth()

        Gets a depth of the item.

        Returns:
        A depth of the item.
      • getPrefix

        public String getPrefix()

        Gets a prefix of the item.

        Returns:
        A string with the prefix.
      • getPostfix

        public String getPostfix()

        Gets a postfix of the item.

        Returns:
        A string with the postfix.
      • getBullet

        public char getBullet()

        Gets a bullet char.

        Returns:
        A char that represents a bullet.
      • op_Equality

        public static boolean op_Equality(ListItemOptions left,
                          ListItemOptions right)

        Checks if the values of two operands are equal or not, if yes then condition becomes true.

        Parameters:
        left - The first object to compare.
        right - The second object to compare.
        Returns:
        A boolean true if values are equal; otherwise, false.
      • op_Inequality

        public static boolean op_Inequality(ListItemOptions left,
                            ListItemOptions right)

        Checks if the values of two operands are equal or not, if values are not equal then condition becomes true.

        Parameters:
        left - The first object to compare.
        right - The second object to compare.
        Returns:
        A boolean true if values are not equal; otherwise, false.
      • equals

        public boolean equals(ListItemOptions other)

        Indicates whether the current object is equal to another object of the same type.

        Parameters:
        other - An object to compare with this object.
        Returns:
        true if the current object is equal to the other parameter; otherwise, false.
      • equals

        public boolean equals(Object obj)

        Indicates whether some other object is "equal to" this one.

        Overrides:
        equals in class Object
        Parameters:
        obj - The reference object with which to compare.
        Returns:
        the reference object with which to compare.
      • hashCode

        public int hashCode()

        Returns a hash code value for the object.

        Overrides:
        hashCode in class Object
        Returns:
        A hash code value for this object.