Package org.aksw.commons.path.json
Class PathOpsJson
java.lang.Object
org.aksw.commons.path.json.PathOpsJson
- All Implemented Interfaces:
Serializable,PathOps<PathJson.Step,PathJson>
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfromString(String rawJsonStr) Deserialize a string into a pathstatic PathOpsJsonget()The path segment to navigate to the parent, such as '..'To token for a path to refer to itself, such as '.'newPath(boolean isAbsolute, List<PathJson.Step> segments) Create a new absolute or relative path based on the given segmentsstatic com.google.gson.JsonArraytoJsonArray(Path<PathJson.Step> path) Serialize a path as a stringtoStringRaw(Object path) upcast(Path<PathJson.Step> path) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.aksw.commons.path.core.PathOps
create, newAbsolutePath, newAbsolutePath, newAbsolutePath, newRelativePath, newRelativePath, newRelativePath
-
Field Details
-
SELF_TOKEN
-
PARENT_TOKEN
-
-
Constructor Details
-
PathOpsJson
public PathOpsJson()
-
-
Method Details
-
get
-
upcast
- Specified by:
upcastin interfacePathOps<PathJson.Step,PathJson>
-
getBasePathSegments
- Specified by:
getBasePathSegmentsin interfacePathOps<PathJson.Step,PathJson>
-
getComparator
- Specified by:
getComparatorin interfacePathOps<PathJson.Step,PathJson>
-
newPath
Description copied from interface:PathOpsCreate a new absolute or relative path based on the given segments- Specified by:
newPathin interfacePathOps<PathJson.Step,PathJson>
-
getSelfToken
Description copied from interface:PathOpsTo token for a path to refer to itself, such as '.'- Specified by:
getSelfTokenin interfacePathOps<PathJson.Step,PathJson>
-
getParentToken
Description copied from interface:PathOpsThe path segment to navigate to the parent, such as '..'- Specified by:
getParentTokenin interfacePathOps<PathJson.Step,PathJson>
-
toJsonArray
-
toString
Description copied from interface:PathOpsSerialize a path as a string- Specified by:
toStringin interfacePathOps<PathJson.Step,PathJson>
-
toStringRaw
- Specified by:
toStringRawin interfacePathOps<PathJson.Step,PathJson>
-
fromString
Description copied from interface:PathOpsDeserialize a string into a path- Specified by:
fromStringin interfacePathOps<PathJson.Step,PathJson>
-