[Teneo / JPOX] Spaces with type string [message #88132] |
Thu, 05 July 2007 08:47  |
Eclipse User |
|
|
|
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 #88283 is a reply to message #88253] |
Thu, 05 July 2007 10:30  |
Eclipse User |
|
|
|
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 09:05  |
Eclipse User |
|
|
|
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 09:33  |
Eclipse User |
|
|
|
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 09:46  |
Eclipse User |
|
|
|
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 09:58  |
Eclipse User |
|
|
|
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 10:10  |
Eclipse User |
|
|
|
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 10:30  |
Eclipse User |
|
|
|
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
>>>>>
>>>>>
>>>
>>>
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.05283 seconds