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 booleanisAnchorFragment(String fragmentString) Determine if the string is an anchor fragment.static booleanisDocumentFragment(String fragmentString) Determine if the string is a fragment referencing the document.static booleanisFragment(String fragmentString) Determine if the string is a fragment.static booleanisJsonPointerFragment(String fragmentString) Determine if the string is a JSON Pointer fragment.static NodePathParses 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
-