Package com.enonic.xp.region

## Class DescriptorBasedComponent

- java.lang.Object
- - com.enonic.xp.region.Component
  - - com.enonic.xp.region.DescriptorBasedComponent

- Direct Known Subclasses:
    `LayoutComponent`, `PartComponent`

      @PublicApi
      public abstract class DescriptorBasedComponent
      extends Component

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class | Description
    --- | --- | ---
    `static class` | `DescriptorBasedComponent.Builder` |

  - ### Constructor Summary

    Constructors
    Modifier | Constructor | Description
    --- | --- | ---
    `protected` | `DescriptorBasedComponent​(DescriptorBasedComponent.Builder builder)` |

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `boolean` | `equals​(Object o)` |
    `PropertyTree` | `getConfig()` |
    `DescriptorKey` | `getDescriptor()` |
    `boolean` | `hasConfig()` |
    `boolean` | `hasDescriptor()` |
    `int` | `hashCode()` |

    - ### Methods inherited from class com.enonic.xp.region.Component

      `copy, getName, getPath, getType, toString`

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

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

- - ### Constructor Detail

    - #### DescriptorBasedComponent

          protected DescriptorBasedComponent​(DescriptorBasedComponent.Builder builder)

  - ### Method Detail

    - #### getDescriptor

          public DescriptorKey getDescriptor()

    - #### hasDescriptor

          public boolean hasDescriptor()

    - #### hasConfig

          public boolean hasConfig()

    - #### getConfig

          public PropertyTree getConfig()

    - #### equals

          public boolean equals​(Object o)

      Overrides:
        `equals` in class `Component`

    - #### hashCode

          public int hashCode()

      Overrides:
        `hashCode` in class `Component`