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 Details

    • Fragment

      public Fragment()
  • Method Details

    • 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