ru.bitel.bgbilling.kernel.contract.balance.common.bean

## Class PaymentType

- java.lang.Object
- - ru.bitel.common.model.Id
  - - ru.bitel.common.model.IdTitle
    - - ru.bitel.bgbilling.kernel.contract.balance.common.bean.PaymentType

- All Implemented Interfaces:
    java.io.Serializable, Idable, ListItem
  Direct Known Subclasses:
    AbstractPaymentTypes

      public class PaymentType
      extends IdTitle

  Bean типа прихода, использовать через справочник: getContext().getDirectory( PaymentType.class )....
  See Also:
    Serialized Form

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `protected boolean` | `editable`
    `protected java.lang.Integer` | `parentId`
    `protected int` | `type`
    `static int` | `TYPE_ALL`
    `static int` | `TYPE_BRANCH`
    `static int` | `TYPE_EDITABLE`
    `static int` | `TYPE_LEAF`
    `static int` | `TYPE_UNEDITABLE`

    - ### Fields inherited from class ru.bitel.common.model.IdTitle

      `title`

    - ### Fields inherited from class ru.bitel.common.model.Id

      `id`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `PaymentType()`
    `PaymentType(int id, java.lang.String title, int type, boolean editable, java.lang.Integer parentId)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `getEditable()` true - редактируется, false - не редактируется.
    `java.lang.Integer` | `getParentId()`
    `int` | `getType()` Получение типа элемента в дереве.
    `void` | `setEditable(boolean editable)`
    `void` | `setParentId(java.lang.Integer parentId)`
    `void` | `setType(int type)` Установка типа элемента в дереве.

    - ### Methods inherited from class ru.bitel.common.model.IdTitle

      `getTitle, setTitle, toString`

    - ### Methods inherited from class ru.bitel.common.model.Id

      `equals, getId, hashCode, newIdList, newIdSet, newIdSet, newIdSet, newIdSet, newMap, setId`

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

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

    - ### Methods inherited from interface ru.bitel.common.model.ListItem

      `getId`

- - ### Field Detail

    - #### TYPE_LEAF

          public static final int TYPE_LEAF

      See Also:
        Constant Field Values

    - #### TYPE_BRANCH

          public static final int TYPE_BRANCH

      See Also:
        Constant Field Values

    - #### TYPE_ALL

          public static final int TYPE_ALL

      See Also:
        Constant Field Values

    - #### TYPE_EDITABLE

          public static final int TYPE_EDITABLE

      See Also:
        Constant Field Values

    - #### TYPE_UNEDITABLE

          public static final int TYPE_UNEDITABLE

      See Also:
        Constant Field Values

    - #### type

          protected int type

    - #### editable

          protected boolean editable

    - #### parentId

          protected java.lang.Integer parentId

  - ### Constructor Detail

    - #### PaymentType

          public PaymentType()

    - #### PaymentType

          public PaymentType(int id,
                             java.lang.String title,
                             int type,
                             boolean editable,
                             java.lang.Integer parentId)

  - ### Method Detail

    - #### getType

          public int getType()

      Получение типа элемента в дереве.
      Returns:
        0 - элемент группы( `TYPE_LEAF` ), 1 - группа( `TYPE_BRANCH` ).

    - #### getEditable

          public boolean getEditable()

      true - редактируется, false - не редактируется.

    - #### getParentId

          public java.lang.Integer getParentId()

    - #### setType

          public void setType(int type)

      Установка типа элемента в дереве.
      Parameters:
        `type` - 0 - элемент группы( `TYPE_LEAF` ), 1 - группа( `TYPE_BRANCH` ).

    - #### setEditable

          public void setEditable(boolean editable)

    - #### setParentId

          public void setParentId(java.lang.Integer parentId)