public class LazyURIEncoder extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
SEP |
static String |
USE_INDEXED_FRAGMENTS_BINDING |
static String |
XTEXT_LINK |
| Constructor and Description |
|---|
LazyURIEncoder() |
| Modifier and Type | Method and Description |
|---|---|
void |
appendShortFragment(org.eclipse.emf.ecore.EObject obj,
StringBuilder target) |
Triple<org.eclipse.emf.ecore.EObject,org.eclipse.emf.ecore.EReference,INode> |
decode(org.eclipse.emf.ecore.resource.Resource res,
String uriFragment)
decodes the uriFragment
|
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,
String shortForm) |
int |
getIndex(String uriFragment) |
protected String |
getIndexFragment(org.eclipse.emf.ecore.EObject obj,
org.eclipse.emf.ecore.EReference ref,
INode node) |
protected Triple<org.eclipse.emf.ecore.EObject,org.eclipse.emf.ecore.EReference,INode> |
getLazyProxyInformation(org.eclipse.emf.ecore.resource.Resource res,
String uriFragment) |
INode |
getNode(org.eclipse.emf.ecore.EObject object,
String fragment) |
INode |
getNode(INode node,
String path)
ONLY public to be testable
|
void |
getRelativePath(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,
String s) |
boolean |
isUseIndexFragment(org.eclipse.emf.ecore.resource.Resource context) |
org.eclipse.emf.ecore.EObject |
resolveShortFragment(org.eclipse.emf.ecore.resource.Resource res,
String shortFragment) |
String |
toShortExternalForm(org.eclipse.emf.ecore.EClass clazz,
org.eclipse.emf.ecore.EReference ref) |
public static final String XTEXT_LINK
isCrossLinkFragment(Resource, String) insteadpublic static final String SEP
public static final String USE_INDEXED_FRAGMENTS_BINDING
public boolean isUseIndexFragment(org.eclipse.emf.ecore.resource.Resource context)
public 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 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,
StringBuilder target)
public String toShortExternalForm(org.eclipse.emf.ecore.EClass clazz, org.eclipse.emf.ecore.EReference ref)
public Triple<org.eclipse.emf.ecore.EObject,org.eclipse.emf.ecore.EReference,INode> decode(org.eclipse.emf.ecore.resource.Resource res, String uriFragment)
res - the resource that contains the feature holderuriFragment - the fragment that should be decodedencode(EObject, EReference, INode)protected Triple<org.eclipse.emf.ecore.EObject,org.eclipse.emf.ecore.EReference,INode> getLazyProxyInformation(org.eclipse.emf.ecore.resource.Resource res, String uriFragment)
public int getIndex(String uriFragment)
public org.eclipse.emf.ecore.EObject resolveShortFragment(org.eclipse.emf.ecore.resource.Resource res,
String shortFragment)
public org.eclipse.emf.ecore.EReference fromShortExternalForm(org.eclipse.emf.ecore.EClass clazz,
String shortForm)
public void getRelativePath(StringBuilder result, INode parserNode, INode node)
public boolean isCrossLinkFragment(org.eclipse.emf.ecore.resource.Resource res,
String s)
Copyright © 2015. All Rights Reserved.