Class FlatPathDto
java.lang.Object
org.ehrbase.openehr.sdk.webtemplate.path.flat.FlatPathDto
-
Constructor Summary
ConstructorsConstructorDescriptionFlatPathDto(CharSequence path) FlatPathDto(String name, FlatPathDto child, Integer count, String attributeName) -
Method Summary
Modifier and TypeMethodDescriptionstatic FlatPathDtoaddEnd(FlatPathDto path, FlatPathDto add) booleanformat()static <T> Map.Entry<FlatPathDto,T> get(Map<FlatPathDto, T> map, String otherPath) getChild()getCount()getLast()getName()inthashCode()booleanisEqualTo(CharSequence otherPath) Forcount0 and null are considered equal.booleanisEqualTo(FlatPathDto otherPath) booleanisEqualTo(FlatPathDto otherPath, boolean ignoreCount, boolean ignoreAttribute) static booleanisEqualTo(FlatPathDto me, FlatPathDto other, boolean ignoreCount, boolean ignoreAttribute) static booleanisNodeEqual(FlatPathDto me, FlatPathDto other) static booleanisNodeEqual(FlatPathDto me, FlatPathDto other, boolean ignoreCount, boolean ignoreAttribute) nodeWithAttributeName(String attributeName) Clones this node and sets the attributeName propertynodeWithChild(FlatPathDto child) Clones this node and appends the childnodeWithCount(Integer count) Clones this node and sets the count propertypathWithAttributeName(String attributeName) Clones the whole path and sets the attributeName property of the trailing nodepathWithChild(FlatPathDto child) Appends the child to a clone of this pathpathWithCount(Integer count) Clones the whole path and sets the count property of the trailing nodestatic FlatPathDtoremoveEnd(FlatPathDto path, FlatPathDto remove) static FlatPathDtoremoveStart(FlatPathDto path, FlatPathDto remove) static FlatPathDtoreplaceEnd(FlatPathDto path, UnaryOperator<FlatPathDto> replacement) booleanstartsWith(CharSequence otherPath) booleanstartsWith(FlatPathDto other) toString()
-
Constructor Details
-
FlatPathDto
-
FlatPathDto
-
-
Method Details
-
getName
-
getChild
-
nodeWithChild
Clones this node and appends the child- Parameters:
child-- Returns:
-
pathWithChild
Appends the child to a clone of this path- Parameters:
child-- Returns:
-
getAttributeName
-
nodeWithAttributeName
Clones this node and sets the attributeName property- Parameters:
attributeName-- Returns:
-
pathWithAttributeName
Clones the whole path and sets the attributeName property of the trailing node- Parameters:
attributeName-- Returns:
-
getCount
-
nodeWithCount
Clones this node and sets the count property- Parameters:
count-- Returns:
-
pathWithCount
Clones the whole path and sets the count property of the trailing node- Parameters:
count-- Returns:
-
format
-
getLast
-
removeEnd
-
replaceEnd
-
isNodeEqual
-
isNodeEqual
public static boolean isNodeEqual(FlatPathDto me, FlatPathDto other, boolean ignoreCount, boolean ignoreAttribute) -
removeStart
-
addEnd
-
toString
-
startsWith
-
startsWith
-
isEqualTo
Forcount0 and null are considered equal.- Parameters:
otherPath-- Returns:
-
isEqualTo
-
isEqualTo
-
isEqualTo
public static boolean isEqualTo(FlatPathDto me, FlatPathDto other, boolean ignoreCount, boolean ignoreAttribute) -
equals
-
hashCode
public int hashCode() -
get
-