Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » What is "java:/" in an URI ?([URI schemas])
What is "java:/" in an URI ? [message #1711729] Mon, 19 October 2015 13:01 Go to next message
aurel pestell is currently offline aurel pestellFriend
Messages: 90
Registered: October 2013
Location: Sweden
Member
Hi,

I can't find documentation about the meaning of URIs that start with:
"java:/Objects"

I get the URI of the EObjects that way:
"EcoreUtil.getURI(eObject)"

The EObjects are loaded from a Xtextresource.

Normally the start of URIs look like that:
"platform:/resource"

Anybody knows where I could find documentation about that ?

Thank you !
Re: What is "java:/" in an URI ? [message #1711769 is a reply to message #1711729] Mon, 19 October 2015 14:37 Go to previous messageGo to next message
Ed Merks is currently offline Ed MerksFriend
Messages: 33140
Registered: July 2009
Senior Member
Aurel,

Comments below.

On 19/10/2015 3:01 PM, aurel pestell wrote:
> Hi,
>
> I can't find documentation about the meaning of URIs that start with:
> "java:/Objects"
This sounds like an Xtext concept...
>
> I get the URI of the EObjects that way:
> "EcoreUtil.getURI(eObject)"
Yes, that's the general mechanism.
>
> The EObjects are loaded from a Xtextresource.
>
> Normally the start of URIs look like that:
> "platform:/resource"
That's for resources located in the workspace of the running
IDE/application.
>
> Anybody knows where I could find documentation about that ?
A URI is just a syntactic thing. Context gives it meaning. If you
have specific questions about what "java" scheme means, you'll be better
of asking in Xtext's forum. They generally use this scheme to represent
classes available on the classpath, encoding in the URI the name of the
class because that's how classes are found on the classpath...
>
> Thank you !


Ed Merks
Professional Support: https://www.macromodeling.com/
Re: What is "java:/" in an URI ? [message #1711782 is a reply to message #1711769] Mon, 19 October 2015 15:27 Go to previous messageGo to next message
aurel pestell is currently offline aurel pestellFriend
Messages: 90
Registered: October 2013
Location: Sweden
Member
Ok I see, thank you for the explanation, I will head to Xtext forum to ask more about it !
Re: What is "java:/" in an URI ? [message #1711785 is a reply to message #1711769] Mon, 19 October 2015 15:47 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

On 19/10/2015 15:37, Ed Merks wrote:
>>
>> I can't find documentation about the meaning of URIs that start with:
>> "java:/Objects"
> This sounds like an Xtext concept...
Not always.

EMF may uses java: in its schema locations for genmodeled code.

e.g.

xsi:schemaLocation="http://www.eclipse.org/qvt/0.9/QVTtemplate
java://org.eclipse.qvtd.pivot.qvttemplate.QVTtemplatePackage"

Regards

Ed Willink
Previous Topic:problem when instantiating in emf
Next Topic:Auto-completion for EMF Item property
Goto Forum:
  


Current Time: Thu Apr 25 04:42:50 GMT 2024

Powered by FUDForum. Page generated in 0.03444 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top