Package com.rosetta.model.lib.path
Class RosettaPath.Element
java.lang.Object
com.rosetta.model.lib.path.RosettaPath.Element
- All Implemented Interfaces:
Comparable<RosettaPath.Element>
- Enclosing class:
RosettaPath
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(RosettaPath.Element other) Path elements with a zero index are equivalent to elements with no index.static RosettaPath.Elementstatic RosettaPath.Elementstatic RosettaPath.ElementbooleangetIndex()getMetas()getPath()getUri()inthashCode()toString()static RosettaPath.ElementwithIndex(int newIndex)
-
Field Details
-
DEFAULT_URI
- See Also:
-
-
Method Details
-
create
-
create
-
create
public static RosettaPath.Element create(String uri, String path, OptionalInt index, Map<String, String> attrs) -
valueOf
- Parameters:
element- of the form: fieldName(index)[attributes]=value, where (index) and [attributes] are optional
-
withIndex
-
getUri
-
getPath
-
getIndex
-
getMetas
-
toString
-
equals
-
hashCode
public int hashCode() -
compareTo
Path elements with a zero index are equivalent to elements with no index. The compareTo implementation is required to sort paths where no index and zero index are equal.- Specified by:
compareToin interfaceComparable<RosettaPath.Element>
-