Class ReferenceRegistry


  • public class ReferenceRegistry
    extends java.lang.Object
    holds all resolved references of a document.
    • Constructor Detail

      • ReferenceRegistry

        public ReferenceRegistry()
    • Method Detail

      • isEmpty

        public boolean isEmpty()
      • hasReference

        public boolean hasReference​(java.net.URI absoluteRef)
        check if absoluteRef is resolved. If the ref has an empty fragment (#) it checks with and without the empty fragment.
        Parameters:
        absoluteRef - absolute ref uri
        Returns:
        true if the ref is resolved, otherwise false.
      • getReference

        public Reference getReference​(java.net.URI absoluteRef)
        get a static reference.
        Parameters:
        absoluteRef - absolute ref uri
        Returns:
        the reference
      • getDynamicReference

        public Reference getDynamicReference​(java.net.URI absoluteRef)
        get a dynamic reference.
        Parameters:
        absoluteRef - absolute ref uri
        Returns:
        the reference
      • addReference

        public void addReference​(Ref ref,
                                 Scope valueScope,
                                 java.lang.Object document)
      • addDynamicReference

        public void addDynamicReference​(Ref ref,
                                        Scope valueScope,
                                        java.lang.Object document)
      • hasDynamicReference

        public boolean hasDynamicReference​(java.net.URI uri)