Package com.enonic.xp.region
Class ComponentPath
- java.lang.Object
-
- com.enonic.xp.region.ComponentPath
-
- All Implemented Interfaces:
java.lang.Iterable<ComponentPath.RegionAndComponent>
@PublicApi public final class ComponentPath extends java.lang.Object implements java.lang.Iterable<ComponentPath.RegionAndComponent>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ComponentPath.ComponentIndex
static class
ComponentPath.RegionAndComponent
static class
ComponentPath.RegionName
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
DIVIDER
-
Constructor Summary
Constructors Constructor Description ComponentPath(com.google.common.collect.ImmutableList<ComponentPath.RegionAndComponent> regionAndComponentList)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
static ComponentPath
from(RegionPath parentPath, int componentIndex)
static ComponentPath
from(java.lang.String str)
int
getComponentIndex()
int
hashCode()
boolean
isEmpty()
java.util.Iterator<ComponentPath.RegionAndComponent>
iterator()
java.lang.String
toString()
-
-
-
Field Detail
-
DIVIDER
public static final java.lang.String DIVIDER
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ComponentPath
public ComponentPath(com.google.common.collect.ImmutableList<ComponentPath.RegionAndComponent> regionAndComponentList)
-
-
Method Detail
-
from
public static ComponentPath from(RegionPath parentPath, int componentIndex)
-
from
public static ComponentPath from(java.lang.String str)
-
getComponentIndex
public int getComponentIndex()
-
isEmpty
public boolean isEmpty()
-
iterator
public java.util.Iterator<ComponentPath.RegionAndComponent> iterator()
- Specified by:
iterator
in interfacejava.lang.Iterable<ComponentPath.RegionAndComponent>
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-