Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [Teneo / JPOX] Spaces with type string
[Teneo / JPOX] Spaces with type string [message #88132] Thu, 05 July 2007 12:47 Go to next message
Eclipse UserFriend
Originally posted by: fc_supercanard.yahoo.fr

How to put spaces in element of type string using Teneo ?
If there is a space it throws a
org.eclipse.emf.teneo.StoreValidationException and complains that
"The feature 'uniqueName' of ... contains a bad value

Regards,

Quentin
Re: [Teneo / JPOX] Spaces with type string [message #88151 is a reply to message #88132] Thu, 05 July 2007 13:05 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
I would need the stack trace to comment on this.

gr. Martin

french.cancan wrote:
> How to put spaces in element of type string using Teneo ?
> If there is a space it throws a
> org.eclipse.emf.teneo.StoreValidationException and complains that
> "The feature 'uniqueName' of ... contains a bad value
>
> Regards,
>
> Quentin


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: [Teneo / JPOX] Spaces with type string [message #88195 is a reply to message #88151] Thu, 05 July 2007 13:33 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: fc_supercanard.yahoo.fr

sure :

org.eclipse.emf.teneo.StoreValidationException: Diagnosis of
MyClassImpl@5d985d98{jpox://?dsname=MyPMF&query1=select from
MyRootElementImpl#db space[OID]MyClassImpl}
The feature 'uniqueName' of
'MyClassImpl@5d985d98{jpox://?dsname=MyPMF&query1=select from
MyRootElementImpl#db space[OID]MyClassImpl}' contains a bad value
at
org.eclipse.emf.teneo.resource.StoreResource.validateContent s(StoreResource.java:426)
at org.eclipse.emf.teneo.resource.StoreResource.save(StoreResou rce.java:360)
CallingClass.save(CallingClass.java:80)


Martin Taal wrote:
> I would need the stack trace to comment on this.
>
> gr. Martin
>
> french.cancan wrote:
>> How to put spaces in element of type string using Teneo ?
>> If there is a space it throws a
>> org.eclipse.emf.teneo.StoreValidationException and complains that
>> "The feature 'uniqueName' of ... contains a bad value
>>
>> Regards,
>>
>> Quentin
>
>
Re: [Teneo / JPOX] Spaces with type string [message #88210 is a reply to message #88195] Thu, 05 July 2007 13:46 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
This is not a Teneo issue. The value of the uniqueName feature is not according to its type defined
in the ecore model. This is validated by emf.

gr. Martin

french.cancan wrote:
> sure :
>
> org.eclipse.emf.teneo.StoreValidationException: Diagnosis of
> MyClassImpl@5d985d98{jpox://?dsname=MyPMF&query1=select from
> MyRootElementImpl#db space[OID]MyClassImpl}
> The feature 'uniqueName' of
> 'MyClassImpl@5d985d98{jpox://?dsname=MyPMF&query1=select from
> MyRootElementImpl#db space[OID]MyClassImpl}' contains a bad value
> at
> org.eclipse.emf.teneo.resource.StoreResource.validateContent s(StoreResource.java:426)
>
> at
> org.eclipse.emf.teneo.resource.StoreResource.save(StoreResou rce.java:360)
> CallingClass.save(CallingClass.java:80)
>
>
> Martin Taal wrote:
>> I would need the stack trace to comment on this.
>>
>> gr. Martin
>>
>> french.cancan wrote:
>>> How to put spaces in element of type string using Teneo ?
>>> If there is a space it throws a
>>> org.eclipse.emf.teneo.StoreValidationException and complains that
>>> "The feature 'uniqueName' of ... contains a bad value
>>>
>>> Regards,
>>>
>>> Quentin
>>
>>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: [Teneo / JPOX] Spaces with type string [message #88238 is a reply to message #88210] Thu, 05 July 2007 13:58 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: fc_supercanard.yahoo.fr

But the type of uniqueName is xs:String. Containing a space in it is not
considered as a bad value from emf... Why Teneo says that it is a bad value?

Martin Taal wrote:
> This is not a Teneo issue. The value of the uniqueName feature is not
> according to its type defined in the ecore model. This is validated by emf.
>
> gr. Martin
>
> french.cancan wrote:
>> sure :
>>
>> org.eclipse.emf.teneo.StoreValidationException: Diagnosis of
>> MyClassImpl@5d985d98{jpox://?dsname=MyPMF&query1=select from
>> MyRootElementImpl#db space[OID]MyClassImpl}
>> The feature 'uniqueName' of
>> 'MyClassImpl@5d985d98{jpox://?dsname=MyPMF&query1=select from
>> MyRootElementImpl#db space[OID]MyClassImpl}' contains a bad value
>> at
>> org.eclipse.emf.teneo.resource.StoreResource.validateContent s(StoreResource.java:426)
>>
>> at
>> org.eclipse.emf.teneo.resource.StoreResource.save(StoreResou rce.java:360)
>> CallingClass.save(CallingClass.java:80)
>>
>>
>> Martin Taal wrote:
>>> I would need the stack trace to comment on this.
>>>
>>> gr. Martin
>>>
>>> french.cancan wrote:
>>>> How to put spaces in element of type string using Teneo ?
>>>> If there is a space it throws a
>>>> org.eclipse.emf.teneo.StoreValidationException and complains that
>>>> "The feature 'uniqueName' of ... contains a bad value
>>>>
>>>> Regards,
>>>>
>>>> Quentin
>>>
>>>
>
>
Re: [Teneo / JPOX] Spaces with type string [message #88253 is a reply to message #88238] Thu, 05 July 2007 14:10 Go to previous messageGo to next message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
It is actually not Teneo who says that it is a wrong value but it is the emf validation. Before
saving the resource Teneo validates its content using a BasicDiagnostic.

See the methods StoreResource.validateContents and StoreResource.validateObject. The
StoreValidationException has a method getDiagnostics which returns all diagnosed errors in the values.

I would also check the specific feature in the ecore model to see if it has any additional constraints.

gr. Martin

french.cancan wrote:
> But the type of uniqueName is xs:String. Containing a space in it is not
> considered as a bad value from emf... Why Teneo says that it is a bad
> value?
>
> Martin Taal wrote:
>> This is not a Teneo issue. The value of the uniqueName feature is not
>> according to its type defined in the ecore model. This is validated by
>> emf.
>>
>> gr. Martin
>>
>> french.cancan wrote:
>>> sure :
>>>
>>> org.eclipse.emf.teneo.StoreValidationException: Diagnosis of
>>> MyClassImpl@5d985d98{jpox://?dsname=MyPMF&query1=select from
>>> MyRootElementImpl#db space[OID]MyClassImpl}
>>> The feature 'uniqueName' of
>>> 'MyClassImpl@5d985d98{jpox://?dsname=MyPMF&query1=select from
>>> MyRootElementImpl#db space[OID]MyClassImpl}' contains a bad value
>>> at
>>> org.eclipse.emf.teneo.resource.StoreResource.validateContent s(StoreResource.java:426)
>>>
>>> at
>>> org.eclipse.emf.teneo.resource.StoreResource.save(StoreResou rce.java:360)
>>>
>>> CallingClass.save(CallingClass.java:80)
>>>
>>>
>>> Martin Taal wrote:
>>>> I would need the stack trace to comment on this.
>>>>
>>>> gr. Martin
>>>>
>>>> french.cancan wrote:
>>>>> How to put spaces in element of type string using Teneo ?
>>>>> If there is a space it throws a
>>>>> org.eclipse.emf.teneo.StoreValidationException and complains that
>>>>> "The feature 'uniqueName' of ... contains a bad value
>>>>>
>>>>> Regards,
>>>>>
>>>>> Quentin
>>>>
>>>>
>>
>>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: [Teneo / JPOX] Spaces with type string [message #88283 is a reply to message #88253] Thu, 05 July 2007 14:30 Go to previous message
Eclipse UserFriend
Originally posted by: fc_supercanard.yahoo.fr

You are right, sorry, it is my mistake... In fact the element is of type
xs:ID.
Thanks for help!

Martin Taal wrote:
> It is actually not Teneo who says that it is a wrong value but it is the
> emf validation. Before saving the resource Teneo validates its content
> using a BasicDiagnostic.
>
> See the methods StoreResource.validateContents and
> StoreResource.validateObject. The StoreValidationException has a method
> getDiagnostics which returns all diagnosed errors in the values.
>
> I would also check the specific feature in the ecore model to see if it
> has any additional constraints.
>
> gr. Martin
>
> french.cancan wrote:
>> But the type of uniqueName is xs:String. Containing a space in it is
>> not considered as a bad value from emf... Why Teneo says that it is a
>> bad value?
>>
>> Martin Taal wrote:
>>> This is not a Teneo issue. The value of the uniqueName feature is not
>>> according to its type defined in the ecore model. This is validated
>>> by emf.
>>>
>>> gr. Martin
>>>
>>> french.cancan wrote:
>>>> sure :
>>>>
>>>> org.eclipse.emf.teneo.StoreValidationException: Diagnosis of
>>>> MyClassImpl@5d985d98{jpox://?dsname=MyPMF&query1=select from
>>>> MyRootElementImpl#db space[OID]MyClassImpl}
>>>> The feature 'uniqueName' of
>>>> 'MyClassImpl@5d985d98{jpox://?dsname=MyPMF&query1=select from
>>>> MyRootElementImpl#db space[OID]MyClassImpl}' contains a bad value
>>>> at
>>>> org.eclipse.emf.teneo.resource.StoreResource.validateContent s(StoreResource.java:426)
>>>>
>>>> at
>>>> org.eclipse.emf.teneo.resource.StoreResource.save(StoreResou rce.java:360)
>>>>
>>>> CallingClass.save(CallingClass.java:80)
>>>>
>>>>
>>>> Martin Taal wrote:
>>>>> I would need the stack trace to comment on this.
>>>>>
>>>>> gr. Martin
>>>>>
>>>>> french.cancan wrote:
>>>>>> How to put spaces in element of type string using Teneo ?
>>>>>> If there is a space it throws a
>>>>>> org.eclipse.emf.teneo.StoreValidationException and complains that
>>>>>> "The feature 'uniqueName' of ... contains a bad value
>>>>>>
>>>>>> Regards,
>>>>>>
>>>>>> Quentin
>>>>>
>>>>>
>>>
>>>
>
>
Re: [Teneo / JPOX] Spaces with type string [message #608641 is a reply to message #88132] Thu, 05 July 2007 13:05 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
I would need the stack trace to comment on this.

gr. Martin

french.cancan wrote:
> How to put spaces in element of type string using Teneo ?
> If there is a space it throws a
> org.eclipse.emf.teneo.StoreValidationException and complains that
> "The feature 'uniqueName' of ... contains a bad value
>
> Regards,
>
> Quentin


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: [Teneo / JPOX] Spaces with type string [message #608644 is a reply to message #88151] Thu, 05 July 2007 13:33 Go to previous message
Eclipse UserFriend
Originally posted by: fc_supercanard.yahoo.fr

sure :

org.eclipse.emf.teneo.StoreValidationException: Diagnosis of
MyClassImpl@5d985d98{jpox://?dsname=MyPMF&query1=select from
MyRootElementImpl#db space[OID]MyClassImpl}
The feature 'uniqueName' of
'MyClassImpl@5d985d98{jpox://?dsname=MyPMF&query1=select from
MyRootElementImpl#db space[OID]MyClassImpl}' contains a bad value
at
org.eclipse.emf.teneo.resource.StoreResource.validateContent s(StoreResource.java:426)
at org.eclipse.emf.teneo.resource.StoreResource.save(StoreResou rce.java:360)
CallingClass.save(CallingClass.java:80)


Martin Taal wrote:
> I would need the stack trace to comment on this.
>
> gr. Martin
>
> french.cancan wrote:
>> How to put spaces in element of type string using Teneo ?
>> If there is a space it throws a
>> org.eclipse.emf.teneo.StoreValidationException and complains that
>> "The feature 'uniqueName' of ... contains a bad value
>>
>> Regards,
>>
>> Quentin
>
>
Re: [Teneo / JPOX] Spaces with type string [message #608645 is a reply to message #88195] Thu, 05 July 2007 13:46 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
This is not a Teneo issue. The value of the uniqueName feature is not according to its type defined
in the ecore model. This is validated by emf.

gr. Martin

french.cancan wrote:
> sure :
>
> org.eclipse.emf.teneo.StoreValidationException: Diagnosis of
> MyClassImpl@5d985d98{jpox://?dsname=MyPMF&query1=select from
> MyRootElementImpl#db space[OID]MyClassImpl}
> The feature 'uniqueName' of
> 'MyClassImpl@5d985d98{jpox://?dsname=MyPMF&query1=select from
> MyRootElementImpl#db space[OID]MyClassImpl}' contains a bad value
> at
> org.eclipse.emf.teneo.resource.StoreResource.validateContent s(StoreResource.java:426)
>
> at
> org.eclipse.emf.teneo.resource.StoreResource.save(StoreResou rce.java:360)
> CallingClass.save(CallingClass.java:80)
>
>
> Martin Taal wrote:
>> I would need the stack trace to comment on this.
>>
>> gr. Martin
>>
>> french.cancan wrote:
>>> How to put spaces in element of type string using Teneo ?
>>> If there is a space it throws a
>>> org.eclipse.emf.teneo.StoreValidationException and complains that
>>> "The feature 'uniqueName' of ... contains a bad value
>>>
>>> Regards,
>>>
>>> Quentin
>>
>>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: [Teneo / JPOX] Spaces with type string [message #608647 is a reply to message #88210] Thu, 05 July 2007 13:58 Go to previous message
Eclipse UserFriend
Originally posted by: fc_supercanard.yahoo.fr

But the type of uniqueName is xs:String. Containing a space in it is not
considered as a bad value from emf... Why Teneo says that it is a bad value?

Martin Taal wrote:
> This is not a Teneo issue. The value of the uniqueName feature is not
> according to its type defined in the ecore model. This is validated by emf.
>
> gr. Martin
>
> french.cancan wrote:
>> sure :
>>
>> org.eclipse.emf.teneo.StoreValidationException: Diagnosis of
>> MyClassImpl@5d985d98{jpox://?dsname=MyPMF&query1=select from
>> MyRootElementImpl#db space[OID]MyClassImpl}
>> The feature 'uniqueName' of
>> 'MyClassImpl@5d985d98{jpox://?dsname=MyPMF&query1=select from
>> MyRootElementImpl#db space[OID]MyClassImpl}' contains a bad value
>> at
>> org.eclipse.emf.teneo.resource.StoreResource.validateContent s(StoreResource.java:426)
>>
>> at
>> org.eclipse.emf.teneo.resource.StoreResource.save(StoreResou rce.java:360)
>> CallingClass.save(CallingClass.java:80)
>>
>>
>> Martin Taal wrote:
>>> I would need the stack trace to comment on this.
>>>
>>> gr. Martin
>>>
>>> french.cancan wrote:
>>>> How to put spaces in element of type string using Teneo ?
>>>> If there is a space it throws a
>>>> org.eclipse.emf.teneo.StoreValidationException and complains that
>>>> "The feature 'uniqueName' of ... contains a bad value
>>>>
>>>> Regards,
>>>>
>>>> Quentin
>>>
>>>
>
>
Re: [Teneo / JPOX] Spaces with type string [message #608648 is a reply to message #88238] Thu, 05 July 2007 14:10 Go to previous message
Martin Taal is currently offline Martin TaalFriend
Messages: 5468
Registered: July 2009
Senior Member
It is actually not Teneo who says that it is a wrong value but it is the emf validation. Before
saving the resource Teneo validates its content using a BasicDiagnostic.

See the methods StoreResource.validateContents and StoreResource.validateObject. The
StoreValidationException has a method getDiagnostics which returns all diagnosed errors in the values.

I would also check the specific feature in the ecore model to see if it has any additional constraints.

gr. Martin

french.cancan wrote:
> But the type of uniqueName is xs:String. Containing a space in it is not
> considered as a bad value from emf... Why Teneo says that it is a bad
> value?
>
> Martin Taal wrote:
>> This is not a Teneo issue. The value of the uniqueName feature is not
>> according to its type defined in the ecore model. This is validated by
>> emf.
>>
>> gr. Martin
>>
>> french.cancan wrote:
>>> sure :
>>>
>>> org.eclipse.emf.teneo.StoreValidationException: Diagnosis of
>>> MyClassImpl@5d985d98{jpox://?dsname=MyPMF&query1=select from
>>> MyRootElementImpl#db space[OID]MyClassImpl}
>>> The feature 'uniqueName' of
>>> 'MyClassImpl@5d985d98{jpox://?dsname=MyPMF&query1=select from
>>> MyRootElementImpl#db space[OID]MyClassImpl}' contains a bad value
>>> at
>>> org.eclipse.emf.teneo.resource.StoreResource.validateContent s(StoreResource.java:426)
>>>
>>> at
>>> org.eclipse.emf.teneo.resource.StoreResource.save(StoreResou rce.java:360)
>>>
>>> CallingClass.save(CallingClass.java:80)
>>>
>>>
>>> Martin Taal wrote:
>>>> I would need the stack trace to comment on this.
>>>>
>>>> gr. Martin
>>>>
>>>> french.cancan wrote:
>>>>> How to put spaces in element of type string using Teneo ?
>>>>> If there is a space it throws a
>>>>> org.eclipse.emf.teneo.StoreValidationException and complains that
>>>>> "The feature 'uniqueName' of ... contains a bad value
>>>>>
>>>>> Regards,
>>>>>
>>>>> Quentin
>>>>
>>>>
>>
>>


--

With Regards, Martin Taal

Springsite/Elver.org
Office: Hardwareweg 4, 3821 BV Amersfoort
Postal: Nassaulaan 7, 3941 EC Doorn
The Netherlands
Tel: +31 (0)84 420 2397
Fax: +31 (0)84 225 9307
Mail: mtaal@springsite.com - mtaal@elver.org
Web: www.springsite.com - www.elver.org
Re: [Teneo / JPOX] Spaces with type string [message #608650 is a reply to message #88253] Thu, 05 July 2007 14:30 Go to previous message
Eclipse UserFriend
Originally posted by: fc_supercanard.yahoo.fr

You are right, sorry, it is my mistake... In fact the element is of type
xs:ID.
Thanks for help!

Martin Taal wrote:
> It is actually not Teneo who says that it is a wrong value but it is the
> emf validation. Before saving the resource Teneo validates its content
> using a BasicDiagnostic.
>
> See the methods StoreResource.validateContents and
> StoreResource.validateObject. The StoreValidationException has a method
> getDiagnostics which returns all diagnosed errors in the values.
>
> I would also check the specific feature in the ecore model to see if it
> has any additional constraints.
>
> gr. Martin
>
> french.cancan wrote:
>> But the type of uniqueName is xs:String. Containing a space in it is
>> not considered as a bad value from emf... Why Teneo says that it is a
>> bad value?
>>
>> Martin Taal wrote:
>>> This is not a Teneo issue. The value of the uniqueName feature is not
>>> according to its type defined in the ecore model. This is validated
>>> by emf.
>>>
>>> gr. Martin
>>>
>>> french.cancan wrote:
>>>> sure :
>>>>
>>>> org.eclipse.emf.teneo.StoreValidationException: Diagnosis of
>>>> MyClassImpl@5d985d98{jpox://?dsname=MyPMF&query1=select from
>>>> MyRootElementImpl#db space[OID]MyClassImpl}
>>>> The feature 'uniqueName' of
>>>> 'MyClassImpl@5d985d98{jpox://?dsname=MyPMF&query1=select from
>>>> MyRootElementImpl#db space[OID]MyClassImpl}' contains a bad value
>>>> at
>>>> org.eclipse.emf.teneo.resource.StoreResource.validateContent s(StoreResource.java:426)
>>>>
>>>> at
>>>> org.eclipse.emf.teneo.resource.StoreResource.save(StoreResou rce.java:360)
>>>>
>>>> CallingClass.save(CallingClass.java:80)
>>>>
>>>>
>>>> Martin Taal wrote:
>>>>> I would need the stack trace to comment on this.
>>>>>
>>>>> gr. Martin
>>>>>
>>>>> french.cancan wrote:
>>>>>> How to put spaces in element of type string using Teneo ?
>>>>>> If there is a space it throws a
>>>>>> org.eclipse.emf.teneo.StoreValidationException and complains that
>>>>>> "The feature 'uniqueName' of ... contains a bad value
>>>>>>
>>>>>> Regards,
>>>>>>
>>>>>> Quentin
>>>>>
>>>>>
>>>
>>>
>
>
Previous Topic:invoke template from java with string return?
Next Topic:Live validation as default
Goto Forum:
  


Current Time: Thu Aug 11 15:55:11 GMT 2022

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

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

Back to the top