Class PathBuilder<V>
- java.lang.Object
-
- io.github.factoryfx.factory.storage.migration.datamigration.PathBuilder<V>
-
public class PathBuilder<V> extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description PathBuilder(java.lang.Class<V> valueClass)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description AttributePathTarget<V>attribute(java.lang.String attribute)AttributePathTarget<V>attribute(java.lang.String attribute, int index)static <V> AttributePathTarget<V>of(java.lang.Class<V> valueClass, java.lang.String path)the entire path based string
examples: referenceAttribute.stringAttribute referenceListAttribute[123].stringAttribute referenceAttribute.referenceListAttribute[123].stringAttributePathBuilder<V>pathElement(java.lang.String pathElement)PathBuilder<V>pathElement(java.lang.String pathElement, int index)static <V> PathBuilder<V>value(java.lang.Class<V> valueClass)
-
-
-
Constructor Detail
-
PathBuilder
public PathBuilder(java.lang.Class<V> valueClass)
-
-
Method Detail
-
value
public static <V> PathBuilder<V> value(java.lang.Class<V> valueClass)
-
pathElement
public PathBuilder<V> pathElement(java.lang.String pathElement)
-
pathElement
public PathBuilder<V> pathElement(java.lang.String pathElement, int index)
-
attribute
public AttributePathTarget<V> attribute(java.lang.String attribute)
-
attribute
public AttributePathTarget<V> attribute(java.lang.String attribute, int index)
-
of
public static <V> AttributePathTarget<V> of(java.lang.Class<V> valueClass, java.lang.String path)
the entire path based string
examples:- referenceAttribute.stringAttribute
- referenceListAttribute[123].stringAttribute
- referenceAttribute.referenceListAttribute[123].stringAttribute
- Type Parameters:
V- attribute type- Parameters:
valueClass- attribute value classpath- path as string- Returns:
- path
-
-