Package com.enonic.xp.region

## Class ComponentPath.RegionAndComponent

- java.lang.Object
- - com.enonic.xp.region.ComponentPath.RegionAndComponent

- Enclosing class:
    ComponentPath

      public static class ComponentPath.RegionAndComponent
      extends Object

- - ### Constructor Summary

    Constructors
    Constructor | Description
    --- | ---
    `RegionAndComponent​(ComponentPath.RegionName regionName, ComponentPath.ComponentIndex componentIndex)` |

  - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `static ComponentPath.RegionAndComponent` | `from​(String str)` |
    `static ComponentPath.RegionAndComponent` | `from​(String regionName, int componentIndex)` |
    `int` | `getComponentIndex()` |
    `String` | `getRegionName()` |
    `String` | `toString()` |

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

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

- - ### Constructor Detail

    - #### RegionAndComponent

          public RegionAndComponent​(ComponentPath.RegionName regionName,
                                    ComponentPath.ComponentIndex componentIndex)

  - ### Method Detail

    - #### from

          public static ComponentPath.RegionAndComponent from​(String regionName,
                                                              int componentIndex)

    - #### from

          public static ComponentPath.RegionAndComponent from​(String str)

    - #### getRegionName

          public String getRegionName()

    - #### getComponentIndex

          public int getComponentIndex()

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`