Class Path.PathElement
java.lang.Object
ch.tocco.nice2.persist.core.api.entity.Path.PathElement
- All Implemented Interfaces:
Serializable
- Enclosing class:
Path
- See Also:
-
Constructor Summary
ConstructorDescriptionPathElement
(String identifier, @Nullable String selector, boolean optional) PathElement
(String identifier, @Nullable String selector, boolean optional, List<Path> subPaths) -
Method Summary
-
Constructor Details
-
PathElement
-
PathElement
-
-
Method Details
-
toString
-
toString
-
equals
-
hashCode
public int hashCode() -
getIdentifier
- Returns:
- The field or relation identifier without
selector
andquestion mark
.
-
getSelector
- Returns:
- The content of the selector (the thing in square brackets []), if any.
-
isOptional
public boolean isOptional()- Returns:
- Tells if the element was marked with the question mark operator "?".
-
hasSubPaths
public boolean hasSubPaths() -
getSubPaths
-