Package com.independentsoft.office.spreadsheet.styles

# Class Protection

java.lang.Object
com.independentsoft.office.spreadsheet.styles.Protection

public class Protection extends Object
The Class Protection.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `Protection()`
  Instantiates a new protection.
  `Protection​(InternalXMLStreamReader reader)`
  Instantiates a new protection.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `Protection`
  `clone()`
  `boolean`
  `isHidden()`
  Checks if is hidden.
  `boolean`
  `isLocked()`
  Checks if is locked.
  `void`
  `setHidden​(boolean isHidden)`
  Sets the hidden.
  `void`
  `setLocked​(boolean isLocked)`
  Sets the locked.
  `String`
  `toString()`

  ### Methods inherited from class java.lang.Object

  `equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- ## Constructor Details

  - ### Protection

    public Protection()
    Instantiates a new protection.

  - ### Protection

    public Protection​(InternalXMLStreamReader reader) throws XMLStreamException
    Instantiates a new protection.
    Parameters:
      `reader` - the reader
    Throws:
      `XMLStreamException` - the xML stream exception

- ## Method Details

  - ### clone

    public Protection clone()
    Overrides:
      `clone` in class `Object`

  - ### toString

    public String toString()
    Overrides:
      `toString` in class `Object`

  - ### isHidden

    public boolean isHidden()
    Checks if is hidden.
    Returns:
      true, if is hidden

  - ### setHidden

    public void setHidden​(boolean isHidden)
    Sets the hidden.
    Parameters:
      `isHidden` - the new hidden

  - ### isLocked

    public boolean isLocked()
    Checks if is locked.
    Returns:
      true, if is locked

  - ### setLocked

    public void setLocked​(boolean isLocked)
    Sets the locked.
    Parameters:
      `isLocked` - the new locked