public class LazyURIEncoder
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
SEP |
static java.lang.String |
USE_INDEXED_FRAGMENTS_BINDING |
static java.lang.String |
XTEXT_LINK |
| Constructor and Description |
|---|
LazyURIEncoder() |
| Modifier and Type | Method and Description |
|---|---|
void |
appendShortFragment(org.eclipse.emf.ecore.EObject obj,
java.lang.StringBuilder target) |
org.eclipse.xtext.util.Triple<org.eclipse.emf.ecore.EObject,org.eclipse.emf.ecore.EReference,INode> |
decode(org.eclipse.emf.ecore.resource.Resource res,
java.lang.String uriFragment)
decodes the uriFragment
|
java.lang.String |
encode(org.eclipse.emf.ecore.EObject obj,
org.eclipse.emf.ecore.EReference ref,
INode node)
encodes the given three parameters into a string, so that they can be
retrieved from a resource using
decode(Resource, String) |
org.eclipse.emf.ecore.EReference |
fromShortExternalForm(org.eclipse.emf.ecore.EClass clazz,
java.lang.String shortForm) |
int |
getIndex(java.lang.String uriFragment) |
protected java.lang.String |
getIndexFragment(org.eclipse.emf.ecore.EObject obj,
org.eclipse.emf.ecore.EReference ref,
INode node) |
protected org.eclipse.xtext.util.Triple<org.eclipse.emf.ecore.EObject,org.eclipse.emf.ecore.EReference,INode> |
getLazyProxyInformation(org.eclipse.emf.ecore.resource.Resource res,
java.lang.String uriFragment) |
INode |
getNode(org.eclipse.emf.ecore.EObject object,
java.lang.String fragment) |
INode |
getNode(INode node,
java.lang.String path)
ONLY public to be testable
|
void |
getRelativePath(java.lang.StringBuilder result,
INode parserNode,
INode node)
ONLY public to be testable
|
protected boolean |
isAncestor(INode parent,
INode child) |
boolean |
isCrossLinkFragment(org.eclipse.emf.ecore.resource.Resource res,
java.lang.String s) |
boolean |
isUseIndexFragment(org.eclipse.emf.ecore.resource.Resource context) |
org.eclipse.emf.ecore.EObject |
resolveShortFragment(org.eclipse.emf.ecore.resource.Resource res,
java.lang.String shortFragment) |
java.lang.String |
toShortExternalForm(org.eclipse.emf.ecore.EClass clazz,
org.eclipse.emf.ecore.EReference ref) |
public static final java.lang.String XTEXT_LINK
isCrossLinkFragment(Resource, String) insteadpublic static final java.lang.String SEP
public static final java.lang.String USE_INDEXED_FRAGMENTS_BINDING
public boolean isUseIndexFragment(org.eclipse.emf.ecore.resource.Resource context)
public java.lang.String encode(org.eclipse.emf.ecore.EObject obj,
org.eclipse.emf.ecore.EReference ref,
INode node)
decode(Resource, String)obj - the feature holderref - the cross referencenode - the node that provided the value for the referencefragmentprotected java.lang.String getIndexFragment(org.eclipse.emf.ecore.EObject obj,
org.eclipse.emf.ecore.EReference ref,
INode node)
public void appendShortFragment(org.eclipse.emf.ecore.EObject obj,
java.lang.StringBuilder target)
public java.lang.String toShortExternalForm(org.eclipse.emf.ecore.EClass clazz,
org.eclipse.emf.ecore.EReference ref)
public org.eclipse.xtext.util.Triple<org.eclipse.emf.ecore.EObject,org.eclipse.emf.ecore.EReference,INode> decode(org.eclipse.emf.ecore.resource.Resource res, java.lang.String uriFragment)
res - the resource that contains the feature holderuriFragment - the fragment that should be decodedencode(EObject, EReference, INode)protected org.eclipse.xtext.util.Triple<org.eclipse.emf.ecore.EObject,org.eclipse.emf.ecore.EReference,INode> getLazyProxyInformation(org.eclipse.emf.ecore.resource.Resource res, java.lang.String uriFragment)
public int getIndex(java.lang.String uriFragment)
public org.eclipse.emf.ecore.EObject resolveShortFragment(org.eclipse.emf.ecore.resource.Resource res,
java.lang.String shortFragment)
public org.eclipse.emf.ecore.EReference fromShortExternalForm(org.eclipse.emf.ecore.EClass clazz,
java.lang.String shortForm)
public void getRelativePath(java.lang.StringBuilder result,
INode parserNode,
INode node)
public INode getNode(org.eclipse.emf.ecore.EObject object, java.lang.String fragment)
public boolean isCrossLinkFragment(org.eclipse.emf.ecore.resource.Resource res,
java.lang.String s)