public class Segment
extends java.lang.Object
Since AEM segments are resolved client-side, this class makes a best-effort approach to represent the segments on the
server side, but some precision may be lost. For instance, script segments will not have their scripts loaded by this
segment, but will rather be referenced as Segment.Kind.ClientOnly
segments.
This class is intended to be used, but not extended by consumers.
Modifier and Type | Class and Description |
---|---|
static class |
Segment.Kind |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAME_PERCENTILE |
Modifier and Type | Method and Description |
---|---|
void |
addChild(Segment resolvedSegment) |
java.util.List<Segment> |
getChildren() |
Segment.Kind |
getKind() |
java.lang.String |
getName() |
java.lang.String |
getOperator() |
java.util.List<java.lang.String> |
getValue() |
static Segment |
newByPathSegment(java.lang.String path)
Creates a new ClientOnly segment instance
|
static Segment |
newDirectSegment(java.lang.String name,
java.lang.String operator,
java.util.List<java.lang.String> values) |
static Segment |
newDirectSegment(java.lang.String name,
java.lang.String operator,
java.lang.String value) |
static Segment |
newExternalReferenceSegment(java.lang.String name,
java.lang.String operator,
java.lang.String externalId) |
static Segment |
newLogicSegment(Segment.Kind kind) |
java.lang.String |
toString() |
public static final java.lang.String NAME_PERCENTILE
public static Segment newLogicSegment(Segment.Kind kind)
public static Segment newDirectSegment(java.lang.String name, java.lang.String operator, java.lang.String value)
public static Segment newDirectSegment(java.lang.String name, java.lang.String operator, java.util.List<java.lang.String> values)
public static Segment newExternalReferenceSegment(java.lang.String name, java.lang.String operator, java.lang.String externalId)
public static Segment newByPathSegment(java.lang.String path)
path
- the repository location of the segmentpublic Segment.Kind getKind()
public java.lang.String getName()
public java.lang.String getOperator()
public java.util.List<java.lang.String> getValue()
public java.util.List<Segment> getChildren()
public void addChild(Segment resolvedSegment)
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2010 - 2020 Adobe. All Rights Reserved