Class Reference


  • public class Reference
    extends java.lang.Object
    resolved $ref.
    • $ref string must be an uri.
    • fragment of $ref is a json pointer ('~' encoded as '~0', '/' encoded as '~1').
    • Constructor Detail

      • Reference

        public Reference​(Ref ref,
                         RefValue value)
    • Method Detail

      • getDocumentUri

        public java.net.URI getDocumentUri()
        the uri of the referenced document.
        Returns:
        the referenced document.
      • getAbsoluteRefUri

        public java.net.URI getAbsoluteRefUri()
        get full ref uri with scope and json pointer.
        Returns:
        the full ref uri
      • getRefValue

        public java.lang.String getRefValue()
        the value of the reference.
        Returns:
        $ref value
      • getValueScope

        public Scope getValueScope()
        the scope at the reference value.
        Returns:
        scope of $ref
      • getRawValue

        public @Nullable java.lang.Object getRawValue()
        the raw value of the reference. Maybe a simple value, array or map.
        Returns:
        the raw value.
      • getValue

        public <T> @Nullable T getValue()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object