Package com.networknt.schema
Class SchemaLocation.Fragment
- java.lang.Object
-
- com.networknt.schema.SchemaLocation.Fragment
-
- Enclosing class:
- SchemaLocation
public static class SchemaLocation.Fragment extends Object
The fragment can be a JSON pointer to the document or an anchor.
-
-
Constructor Summary
Constructors Constructor Description Fragment()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
isAnchorFragment(String fragmentString)
Determine if the string is an anchor fragment.static boolean
isDocumentFragment(String fragmentString)
Determine if the string is a fragment referencing the document.static boolean
isFragment(String fragmentString)
Determine if the string is a fragment.static boolean
isJsonPointerFragment(String fragmentString)
Determine if the string is a JSON Pointer fragment.static JsonNodePath
of(String fragmentString)
Parses a string representing a fragment.
-
-
-
Method Detail
-
of
public static JsonNodePath of(String fragmentString)
Parses a string representing a fragment.- Parameters:
fragmentString
- the fragment- Returns:
- the path
-
isFragment
public static boolean isFragment(String fragmentString)
Determine if the string is a fragment.- Parameters:
fragmentString
- to evaluate- Returns:
- true if it is a fragment
-
isJsonPointerFragment
public static boolean isJsonPointerFragment(String fragmentString)
Determine if the string is a JSON Pointer fragment.- Parameters:
fragmentString
- to evaluate- Returns:
- true if it is a JSON Pointer fragment
-
isAnchorFragment
public static boolean isAnchorFragment(String fragmentString)
Determine if the string is an anchor fragment.- Parameters:
fragmentString
- to evaluate- Returns:
- true if it is an anchor fragment
-
isDocumentFragment
public static boolean isDocumentFragment(String fragmentString)
Determine if the string is a fragment referencing the document.- Parameters:
fragmentString
- to evaluate- Returns:
- true if it is a fragment
-
-