[Teneo / JPOX] Spaces with type string [message #88132] |
Thu, 05 July 2007 12: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 #88195 is a reply to message #88151] |
Thu, 05 July 2007 13: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 #88238 is a reply to message #88210] |
Thu, 05 July 2007 13: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 #88283 is a reply to message #88253] |
Thu, 05 July 2007 14: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 #608644 is a reply to message #88151] |
Thu, 05 July 2007 13: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 #608647 is a reply to message #88210] |
Thu, 05 July 2007 13: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 #608650 is a reply to message #88253] |
Thu, 05 July 2007 14: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.03423 seconds