Class BslLazyUriEncoder


  • public class BslLazyUriEncoder
    extends org.eclipse.xtext.linking.lazy.LazyURIEncoder
    Specific to Bsl implementation of LazyURIEncoder.
    • Field Summary

      • Fields inherited from class org.eclipse.xtext.linking.lazy.LazyURIEncoder

        SEP, USE_INDEXED_FRAGMENTS_BINDING, XTEXT_LINK
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void appendShortFragment​(org.eclipse.emf.ecore.EObject obj, StringBuilder target)  
      org.eclipse.xtext.util.Triple<org.eclipse.emf.ecore.EObject,​org.eclipse.emf.ecore.EReference,​org.eclipse.xtext.nodemodel.INode> decode​(org.eclipse.emf.ecore.resource.Resource res, String uriFragment)
      Could return null if resolveShortFragment(Resource, String) returned null
      String encode​(org.eclipse.emf.ecore.EObject obj, org.eclipse.emf.ecore.EReference ref, org.eclipse.xtext.nodemodel.INode node)  
      org.eclipse.xtext.nodemodel.INode getNode​(org.eclipse.emf.ecore.EObject object, String fragment)
      Could return null if decode(Resource, String) returned null
      org.eclipse.emf.ecore.EObject resolveShortFragment​(org.eclipse.emf.ecore.resource.Resource res, String shortFragment)
      Could return null if short fragment wasn't resolved
      • Methods inherited from class org.eclipse.xtext.linking.lazy.LazyURIEncoder

        fromShortExternalForm, getIndex, getIndexFragment, getLazyProxyInformation, getNode, getRelativePath, isAncestor, isCrossLinkFragment, isUseIndexFragment, toShortExternalForm
    • Constructor Detail

      • BslLazyUriEncoder

        public BslLazyUriEncoder()
    • Method Detail

      • encode

        public String encode​(org.eclipse.emf.ecore.EObject obj,
                             org.eclipse.emf.ecore.EReference ref,
                             org.eclipse.xtext.nodemodel.INode node)
        Overrides:
        encode in class org.eclipse.xtext.linking.lazy.LazyURIEncoder
      • decode

        public org.eclipse.xtext.util.Triple<org.eclipse.emf.ecore.EObject,​org.eclipse.emf.ecore.EReference,​org.eclipse.xtext.nodemodel.INode> decode​(org.eclipse.emf.ecore.resource.Resource res,
                                                                                                                                                                  String uriFragment)
        Could return null if resolveShortFragment(Resource, String) returned null
        Overrides:
        decode in class org.eclipse.xtext.linking.lazy.LazyURIEncoder
      • resolveShortFragment

        public org.eclipse.emf.ecore.EObject resolveShortFragment​(org.eclipse.emf.ecore.resource.Resource res,
                                                                  String shortFragment)
        Could return null if short fragment wasn't resolved
        Overrides:
        resolveShortFragment in class org.eclipse.xtext.linking.lazy.LazyURIEncoder
      • getNode

        public org.eclipse.xtext.nodemodel.INode getNode​(org.eclipse.emf.ecore.EObject object,
                                                         String fragment)
        Could return null if decode(Resource, String) returned null
        Overrides:
        getNode in class org.eclipse.xtext.linking.lazy.LazyURIEncoder
      • appendShortFragment

        public void appendShortFragment​(org.eclipse.emf.ecore.EObject obj,
                                        StringBuilder target)
        Overrides:
        appendShortFragment in class org.eclipse.xtext.linking.lazy.LazyURIEncoder