Package com.networknt.schema
Class SchemaLocation.Fragment
java.lang.Object
com.networknt.schema.SchemaLocation.Fragment
- Enclosing class:
SchemaLocation
The fragment can be a JSON pointer to the document or an anchor.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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
Parses a string representing a fragment.
-
Constructor Details
-
Fragment
public Fragment()
-
-
Method Details
-
of
Parses a string representing a fragment.- Parameters:
fragmentString
- the fragment- Returns:
- the path
-
isFragment
Determine if the string is a fragment.- Parameters:
fragmentString
- to evaluate- Returns:
- true if it is a fragment
-
isJsonPointerFragment
Determine if the string is a JSON Pointer fragment.- Parameters:
fragmentString
- to evaluate- Returns:
- true if it is a JSON Pointer fragment
-
isAnchorFragment
Determine if the string is an anchor fragment.- Parameters:
fragmentString
- to evaluate- Returns:
- true if it is an anchor fragment
-
isDocumentFragment
Determine if the string is a fragment referencing the document.- Parameters:
fragmentString
- to evaluate- Returns:
- true if it is a fragment
-