Class SchemaLocation.Fragment

  • Enclosing class:
    SchemaLocation

    public static class SchemaLocation.Fragment
    extends java.lang.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​(java.lang.String fragmentString)
      Determine if the string is an anchor fragment.
      static boolean isDocumentFragment​(java.lang.String fragmentString)
      Determine if the string is a fragment referencing the document.
      static boolean isFragment​(java.lang.String fragmentString)
      Determine if the string is a fragment.
      static boolean isJsonPointerFragment​(java.lang.String fragmentString)
      Determine if the string is a JSON Pointer fragment.
      static JsonNodePath of​(java.lang.String fragmentString)
      Parses a string representing a fragment.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Fragment

        public Fragment()
    • Method Detail

      • of

        public static JsonNodePath of​(java.lang.String fragmentString)
        Parses a string representing a fragment.
        Parameters:
        fragmentString - the fragment
        Returns:
        the path
      • isFragment

        public static boolean isFragment​(java.lang.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​(java.lang.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​(java.lang.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​(java.lang.String fragmentString)
        Determine if the string is a fragment referencing the document.
        Parameters:
        fragmentString - to evaluate
        Returns:
        true if it is a fragment